[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-12 Thread Jaroslaw Rosiek
New submission from Jaroslaw Rosiek jaroslaw.ros...@interia.pl: 1. collections.MutableSet refers to __next__() slot instead of next() buildin. 2. collection.Iterator is not compatible with 2.6's iterators which should have next() slot. Proposed solution: add a next() method

[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-12 Thread Jaroslaw Rosiek
Changes by Jaroslaw Rosiek jaroslaw.ros...@interia.pl: Removed file: http://bugs.python.org/file12699/example2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4920

[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-12 Thread Jaroslaw Rosiek
Changes by Jaroslaw Rosiek jaroslaw.ros...@interia.pl: Added file: http://bugs.python.org/file12700/example2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4920

[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-12 Thread Jaroslaw Rosiek
Changes by Jaroslaw Rosiek jaroslaw.ros...@interia.pl: -- keywords: +patch Added file: http://bugs.python.org/file12701/_abcoll.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4920

[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-12 Thread Jaroslaw Rosiek
Changes by Jaroslaw Rosiek jaroslaw.ros...@interia.pl: Added file: http://bugs.python.org/file12699/example2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4920

[issue4922] set.add and set.discard are not conformant to collections.MutableSet interface

2009-01-12 Thread Jaroslaw Rosiek
New submission from Jaroslaw Rosiek jaroslaw.ros...@interia.pl: Methods set.add and set.discard should return boolean values according to collections.MutableSet but they are not. print set().add(5) None print set().discard(5) None -- components: Library (Lib) messages: 79665 nosy