[py-dev] py.execnet example bug
Ondrej Certik
ondrej at certik.cz
Thu Aug 10 16:04:24 CEST 2006
> Your replacement above is fine, but the "error" handling
> is a bit rough: just swallowing all exceptions makes it
> somewhat hard to detect for the other side to notice
> (and make sense out of) the error. It's probably better to
> have a "try:except:" within the for-loop block and send
> back a tuple encoding error information. (You cannot send
> "user" objects, only marshallable objects, i.e. dicts, tuples,
> lists, of strings/ints/dicts/tuples/lists...)
Thanks. Yes, it was just a rough quickfix to make it work somehow.
Ondrej
More information about the Pytest-dev
mailing list