Commit Graph

135 Commits

Author SHA1 Message Date
Martin Panter
200a615774 Issue #27125: Remove duplicated words from documentation and comments 2016-05-30 04:04:50 +00:00
Serhiy Storchaka
14a7d6389f Issue #26494: Fixed crash on iterating exhausting iterators.
Affected classes are generic sequence iterators, iterators of bytearray,
list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
2016-03-30 20:43:06 +03:00
Benjamin Peterson
f30bad284b remove some copyright notices supserseded by the toplevel ones 2016-01-01 11:53:47 -06:00
Serhiy Storchaka
c06a6d0958 Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:07:48 +02:00
Serhiy Storchaka
5127ed727c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:12 +03:00
Raymond Hettinger
f643b9a9c7 Issue 8743: Improve interoperability between sets and the collections.Set abstract base class. 2014-05-25 22:13:41 -07:00
Raymond Hettinger
007684a701 Silence compiler warning for unused declaration. 2013-08-04 22:35:37 -07:00
Benjamin Peterson
e3b5eda8be remove unused variable 2011-10-30 14:24:44 -04:00
Petri Lehtinen
a39de111a5 Fix the return value of set_discard (issue #10519) 2011-10-30 14:33:09 +02:00
Petri Lehtinen
5f4d870668 Avoid unnecessary recursive function calls (closes #10519) 2011-10-30 13:55:56 +02:00
Éric Araujo
f079c9bfbf Fix obscure set crashers (#4420). Backport of d56b3cafb1e6, reviewed by Raymond. 2011-03-22 23:47:32 +01:00
Armin Rigo
39e32a7e81 Revert r86726. Sorry about interfering with the rc. 2010-11-24 13:17:48 +00:00
Armin Rigo
442e4477fe A no-op change. It looks like this call was not meant to be a recursive
call, but just call the helper (which the recursive call ends up doing).
2010-11-24 10:39:23 +00:00
Raymond Hettinger
3ad323ecaf Issue8757: Implicit set-to-frozenset conversion not thread-safe. 2010-08-06 10:18:56 +00:00
Antoine Pitrou
c83ea137d7 Untabify C files. Will watch buildbots. 2010-05-09 14:46:46 +00:00
Raymond Hettinger
35b76027f9 Issue 8436: set.__init__ accepts keyword args 2010-04-18 22:57:57 +00:00
Victor Stinner
17d905449d Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set. 2010-03-13 00:13:22 +00:00
Georg Brandl
b36e63a5ee The set types can also be called without arguments. 2010-02-28 18:26:37 +00:00
Georg Brandl
bca1169e94 #8030: make builtin type docstrings more consistent: use "iterable" instead of "seq(uence)", use "new" to show that set() always returns a new object. 2010-02-28 18:19:17 +00:00
Raymond Hettinger
79628d311f Issue 7263: Fix set.intersection() docstring. 2009-11-18 20:28:22 +00:00
Raymond Hettinger
c2b9e1a134 Issue 6573: Fix set.union() for cases where self is in the argument chain. 2009-07-27 20:32:04 +00:00
Antoine Pitrou
aa687902f2 Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected. 2009-01-01 14:11:22 +00:00
Amaury Forgeot d'Arc
d78b9dcbc3 #4069: aSet.remove(otherSet) would always report the empty frozenset([]) as the missing key.
Now it correctly refers to the initial otherset.

Reviewed by Raymond. Will backport to 2.6.
2008-10-07 20:32:10 +00:00
Andrew M. Kuchling
d7b7dde98e Mention exception in docstring 2008-10-03 16:29:19 +00:00
Nick Coghlan
53663a695e Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00