Message257063
> This sounds good. Also, reversed() could then be modified to produce a
better error.
Should `iter` also be modified to produce a better error if `__iter__` is None?
Also, should this be documented? Maybe a sentence in the "Special method names" section of the "Data model" chapter, like this:
> To indicate that some syntax is not supported, set the corresponding special method name to None. For example, if __iter__ is None, the class is not iterable, so iter() will not look for __getitem__. |
|
Date |
User |
Action |
Args |
2015-12-27 02:37:07 | abarnert | set | recipients:
+ abarnert, gvanrossum, rhettinger, terry.reedy, r.david.murray, serhiy.storchaka, abarry, curioswati |
2015-12-27 02:37:07 | abarnert | set | messageid: <1451183827.68.0.178864548785.issue25864@psf.upfronthosting.co.za> |
2015-12-27 02:37:07 | abarnert | link | issue25864 messages |
2015-12-27 02:37:07 | abarnert | create | |
|