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

2009-01-12 Thread Jaroslaw Rosiek
New submission from Jaroslaw Rosiek : 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

[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 : -- keywords: +patch Added file: http://bugs.python.org/file12701/_abcoll.patch ___ Python tracker <http://bugs.python.org/issue4

[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 : Added file: http://bugs.python.org/file12700/example2.py ___ Python tracker <http://bugs.python.org/issue4920> ___ ___ Python-bugs-list mailin

[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 : Removed file: http://bugs.python.org/file12699/example2.py ___ Python tracker <http://bugs.python.org/issue4920> ___ ___ Python-bugs-list m

[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 : Added file: http://bugs.python.org/file12699/example2.py ___ Python tracker <http://bugs.python.org/issue4920> ___ ___ Python-bugs-list mailin

[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 : 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 to collections.Iterator that falls ba