Message51397
well, i liked it better refactored, i.e., each piece of code
taking care of one logical part (i.e., one section for __bool__,
another for __len__, and another for the default.
now it's back to the spaghetti it was.
> return PyErr_Occurred() ? -1 : 1;
i hate the trinary expression, but that's all about style :)
anyway, as long as it works, i don't have any complaints.
you just have to make sure it's written as optimized as possible,
because it gets invoked many times behind the scenes. |
|
Date |
User |
Action |
Args |
2007-08-23 15:55:24 | admin | link | issue1600346 messages |
2007-08-23 15:55:24 | admin | create | |
|