summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
Commit message (Collapse)AuthorAgeFilesLines
* 00147-add-debug-malloc-stats.patchFedora Python maintainers2020-09-291-0/+10
| | | | | | | 00147 # Add a sys._debugmallocstats() function Based on patch 202 from RHEL 5's python.spec, with updates from rhbz#737198 Sent upstream as http://bugs.python.org/issue14785
* bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)Miss Islington (bot)2018-05-021-1/+3
| | | | | (cherry picked from commit 491bbedc209fea314a04cb3015da68fb0aa63238) Co-authored-by: lekma <lekmalek@gmail.com>
* consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563)Benjamin Peterson2017-09-141-4/+4
| | | This no-op change makes 2.7 more consistent with 3.x to ease comparison and backports.
* bpo-31095: Fix potential crash during GC (GH-3197)INADA Naoki2017-09-041-0/+3
| | | (cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c)
* Issue #27125: Remove duplicated words from documentation and commentsMartin Panter2016-05-301-1/+1
|
* Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-1/+1
| | | | | Affected classes are generic sequence iterators, iterators of bytearray, list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
* remove some copyright notices supserseded by the toplevel onesBenjamin Peterson2016-01-011-3/+0
|
* Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka2015-12-191-1/+1
| | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
* Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-301-4/+13
| | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
* Issue 8743: Improve interoperability between sets and the collections.Set ↵Raymond Hettinger2014-05-261-6/+2
| | | | abstract base class.
* Silence compiler warning for unused declaration.Raymond Hettinger2013-08-051-1/+0
|
* remove unused variableBenjamin Peterson2011-10-301-1/+1
|
* Fix the return value of set_discard (issue #10519)Petri Lehtinen2011-10-301-2/+3
|
* Avoid unnecessary recursive function calls (closes #10519)Petri Lehtinen2011-10-301-2/+2
|
* Fix obscure set crashers (#4420). Backport of d56b3cafb1e6, reviewed by ↵Éric Araujo2011-03-221-10/+23
| | | | Raymond.
* Revert r86726. Sorry about interfering with the rc.Armin Rigo2010-11-241-1/+1
|
* A no-op change. It looks like this call was not meant to be a recursiveArmin Rigo2010-11-241-1/+1
| | | | call, but just call the helper (which the recursive call ends up doing).
* Issue8757: Implicit set-to-frozenset conversion not thread-safe.Raymond Hettinger2010-08-061-9/+3
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-1823/+1823
|
* Issue 8436: set.__init__ accepts keyword argsRaymond Hettinger2010-04-181-0/+2
|
* Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.Victor Stinner2010-03-131-1/+15
|
* The set types can also be called without arguments.Georg Brandl2010-02-281-2/+4
|
* #8030: make builtin type docstrings more consistent: use "iterable" instead ↵Georg Brandl2010-02-281-2/+2
| | | | of "seq(uence)", use "new" to show that set() always returns a new object.
* Issue 7263: Fix set.intersection() docstring.Raymond Hettinger2009-11-181-2/+2
|
* Issue 6573: Fix set.union() for cases where self is in the argument chain.Raymond Hettinger2009-07-271-1/+1
|
* Issue #3680: Reference cycles created through a dict, set or deque iterator ↵Antoine Pitrou2009-01-011-4/+12
| | | | did not get collected.
* #4069: aSet.remove(otherSet) would always report the empty frozenset([]) as ↵Amaury Forgeot d'Arc2008-10-071-4/+7
| | | | | | | | the missing key. Now it correctly refers to the initial otherset. Reviewed by Raymond. Will backport to 2.6.
* Mention exception in docstringAndrew M. Kuchling2008-10-031-1/+2
|
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-151-1/+1
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies2008-07-101-0/+16
| | | | Issue3122.
* Multi-arg form for set.difference() and set.difference_update().Raymond Hettinger2008-06-111-14/+39
|
* Handle the case with zero arguments.Raymond Hettinger2008-06-111-0/+3
|
* Let set.intersection() and set.intersection_update() take multiple input ↵Raymond Hettinger2008-06-091-3/+36
| | | | arguments.
* Let set.union() and set.update() accept multiple inputs.Raymond Hettinger2008-06-091-15/+38
|
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-15/+15
| | | | | | | 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.
* Issue 2855: Fix obscure crasher by slowing down the entire module. Mimics ↵Raymond Hettinger2008-05-301-0/+4
| | | | what was done to dictionaries in r59223.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-15/+15
|
* Frozensets do not benefit from autoconversion.Raymond Hettinger2008-05-081-3/+3
|
* dict.copy() rises from the ashes. Revert r60687.Raymond Hettinger2008-02-121-15/+1
|
* Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵Raymond Hettinger2008-02-091-1/+15
| | | | away in Py3.x
* Unified naming convention for free lists and their limits. All free listsChristian Heimes2008-02-061-10/+12
| | | | | | | | in Object/ are named ``free_list``, the counter ``numfree`` and the upper limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block. The chances should make it easier to adjust Python for platforms with less memory, e.g. mobile phones.
* Ensure that PySet_Add() operates on a newly created frozenset, like ↵Amaury Forgeot d'Arc2008-02-031-1/+6
| | | | | | | | PyTuple_SetItem does. Add PyFrozenSet_Check(), which was not needed before; The list of Py*Set_Check* macros seems to be complete now. Add missing NEWS entries about all this.
* Factor-out common code with a new macroRaymond Hettinger2008-01-281-4/+4
|
* Make PySet_Add() work with frozensets.Raymond Hettinger2008-01-281-15/+4
| | | | | Works like PyTuple_SetItem() to build-up values in a brand new frozenset. Also, PyFrozenSet_New() is now guaranteed to produce a distinct new frozenset.
* Revert PySet_Add() changes.Raymond Hettinger2008-01-261-0/+5
|
* Update test code for change to PySet_Add().Raymond Hettinger2008-01-261-1/+0
|
* Make PySet_Add() work with frozensets. Works like PyTuple_SetItem() to ↵Raymond Hettinger2008-01-261-4/+0
| | | | build-up values in a brand new frozenset.
* Changes 54857 and 54840 broke code and were reverted in Py2.5 just beforeRaymond Hettinger2008-01-251-7/+7
| | | | it was released, but that reversion never made it to the Py2.6 head.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-16/+16
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Backport of _abccoll.py by Benjamin Arangueren, issue 1383.Guido van Rossum2007-11-221-8/+1
| | | | With some changes of my own thrown in (e.g. backport of r58107).