Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types.
__bool__() and __len__() are just the same as __neg__() or __invert__(),
and require efficient dispatching implementation (not requiring search/lookup).
type->unary_op() is just the right choice for this short of adding
standalone virtual method(s) to already big mp_obj_type_t structure.
2014-01-30 04:37:19 +02:00
..
2014-01-28 18:21:05 +01:00
2014-01-20 20:37:01 +02:00
2014-01-24 22:54:09 +00:00
2014-01-15 22:14:03 +00:00
2014-01-28 19:52:04 +01:00
2014-01-19 01:40:47 +02:00
2014-01-27 12:25:23 +02:00
2014-01-27 12:25:23 +02:00
2014-01-25 00:25:32 +00:00
2014-01-22 23:18:50 +00:00