c45y | oh event is always a subclass | 00:00 |
---|---|---|
c45y | if hasattr('opts', event) ? | 00:00 |
c45y | I guess even uid, however other object can have that | 00:01 |
prologic | yeah type checking won’t work I don’t think | 00:04 |
prologic | because the type could be str | 00:04 |
prologic | or Event instnace | 00:04 |
prologic | so hence the if x and (x or (y and z)): | 00:05 |
prologic | the condition checks it’s instnace type and does an identity comparision of the event you’re interested in iif it is an instance of Event | 00:06 |
prologic | otherwise assumes you didn’t care about which particular instnace just the named event | 00:06 |
prologic | at least I’m trying to do this :) | 00:06 |
prologic | Osso, c45y, spaceone: I’ve got it :) http://codepad.org/QoWJOHh4 | 00:22 |
prologic | Perfect :) | 00:22 |
prologic | The tests passes and is correct | 00:22 |
prologic | Without the required change the test fails almost every single time | 00:22 |
prologic | paralell processing is by design inherently unordered :) | 00:22 |
prologic | Osso: https://bitbucket.org/circuits/circuits/pull-request/33/allow-support-for-using-wait-to-wait-for-a/diff | 00:33 |
*** c45y has quit IRC | 07:05 | |
*** c45y has joined #circuits | 07:06 | |
Osso | prologic: I would just write | 07:51 |
Osso | (event_object is None or event is event_object) | 07:51 |
prologic | oh? | 07:53 |
prologic | hmm | 07:53 |
prologic | I think you're right | 07:53 |
*** Ossoleil has joined #circuits | 08:29 | |
*** Ossoleil has quit IRC | 16:02 | |
*** qwebirc46471 has joined #circuits | 16:08 | |
*** qwebirc46471 has left #circuits () | 16:08 | |
*** Romster has joined #circuits | 18:53 | |
prologic | mroning all | 21:43 |
c45y | hey man | 21:43 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!