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

2009-01-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4922 ___ ___ Python-bugs-list

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

2009-01-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Ported to py3k in r68630 and 3.0 in r68631. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4922 ___

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

2009-01-13 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4922 ___ ___

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

2009-01-13 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The comments were incorrect. Mutating methods always return None. Fixed in r68570. Needs to be ported to 2.6, 3.0, and 3.1. -- assignee: rhettinger - georg.brandl keywords: +26backport nosy: +georg.brandl resolution:

[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: