[issue19359] reversed() does not work with weakref.proxy of sequences

Antoine Pitrou report at bugs.python.org
Fri Mar 14 11:04:53 CET 2014


Antoine Pitrou added the comment:

I suppose Benjamin's commit is afd62eb1692e.

Claudiu, that doesn't look like the best approach to me. Instead of hardcoding a weakref.proxy check in reversed(), why not implement __reversed__ on weakref.proxy?

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19359>
_______________________________________


More information about the Python-bugs-list mailing list