Commit Graph

129 Commits

Author SHA1 Message Date
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
Robert Schuppenies
9be2ec109b Added additional __sizeof__ implementations and addressed comments made in
Issue3122.
2008-07-10 15:24:04 +00:00
Raymond Hettinger
4267be6478 Multi-arg form for set.difference() and set.difference_update(). 2008-06-11 10:30:54 +00:00
Raymond Hettinger
610a93ea26 Handle the case with zero arguments. 2008-06-11 00:44:47 +00:00
Raymond Hettinger
5c4d3d0e4c Let set.intersection() and set.intersection_update() take multiple input arguments. 2008-06-09 13:07:27 +00:00
Raymond Hettinger
ee4bcad68e Let set.union() and set.update() accept multiple inputs. 2008-06-09 08:33:37 +00:00
Gregory P. Smith
dd96db63f6 This reverts r63675 based on the discussion in this thread:
http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase.  The PyBytes_* names
in the spirit of 3.0 are available via a #define only.  See the email thread.
2008-06-09 04:58:54 +00:00