Re:Thoughts on Python 3
by DasIch on Wednesday December 07, 2011 @02:53PM
(#3325593)
That's not just simple operator overloading. What mitsuhiko refers to is that iter() can iterate over an object not just when you implement __iter__() but also when you implement __getitem__() and __len__(), bool() has similar semantics as do several other functions and operators.
[ Parent
| on HN ]
There are no comments on this comment yet.