Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
4f0db6e4a1fa2cd4f564192d687c9e1725129e03
/
Objects
/
setobject.c
cf297e4
Merged revisions 53623-53858 via svnmerge from
by Thomas Wouters
· 18 years ago
9fe394c
Merged revisions 53538-53622 via svnmerge from
by Thomas Wouters
· 18 years ago
fc7bb8c
Merged revisions 53304-53433,53435-53450 via svnmerge from
by Thomas Wouters
· 18 years ago
902d6eb
Merged revisions 53005-53303 via svnmerge from
by Thomas Wouters
· 18 years ago
89f507f
Four months of trunk changes (including a few releases...)
by Thomas Wouters
· 18 years ago
4dafcc4
- patch #1600346 submitted by Tomer Filiba
by Jack Diederich
· 18 years ago
c4996ba
Fix str() and repr() of empty sets.
by Georg Brandl
· 18 years ago
86e58e2
SF patch 1547796 by Georg Brandl -- set literals.
by Guido van Rossum
· 18 years ago
50e9fb9
Completely get rid of PyClass and PyInstance.
by Guido van Rossum
· 18 years ago
0e3f591
Merged revisions 46753-51188 via svnmerge from
by Thomas Wouters
· 18 years ago
3cf5b1e
Get rid of most of the flags (in tp_flags) that keep track of various
by Guido van Rossum
· 18 years ago
49fd7fa
Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
by Thomas Wouters
· 19 years ago
bcc0db8
Get rid of remnants of integer division
by Neal Norwitz
· 19 years ago
8c49c82
Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions.
by Neal Norwitz
· 19 years ago
18e1655
Merge ssize_t branch.
by Martin v. Löwis
· 19 years ago
f5b3e36
Renamed _length_cue() to __length_hint__(). See:
by Armin Rigo
· 19 years ago
0c6e2f1
Remove some shadowed variables
by Neal Norwitz
· 19 years ago
6576bd8
Prevent name pollution by making lots of internal functions static.
by Neal Norwitz
· 19 years ago
6b27cda
Convert iterator __len__() methods to a private API.
by Raymond Hettinger
· 19 years ago
9bda1d6
No longer ignore exceptions raised by comparisons during key lookup.
by Raymond Hettinger
· 19 years ago
02c4287
Disallow keyword arguments for type constructors that don't use them.
by Georg Brandl
· 19 years ago
9c1491f
* Add a fast equality check path for frozensets where the hash value has
by Raymond Hettinger
· 19 years ago
d8e1338
Add shortcuts for a|a and a&a.
by Raymond Hettinger
· 19 years ago
f408ddf
Results of a line-by-line comparison back to dictobject.c.
by Raymond Hettinger
· 19 years ago
c47e01d
Numerous fix-ups to C API and docs. Added tests for C API.
by Raymond Hettinger
· 19 years ago
994c2c1
DECREF --> XDECREF
by Raymond Hettinger
· 19 years ago
beb3101
Add a C API for sets and frozensets.
by Raymond Hettinger
· 19 years ago
ce8185e
More function re-ordering (placing like functions together).
by Raymond Hettinger
· 19 years ago
ed6c1ef
* Bring lookkey() and lookkey_string() closer to dict version.
by Raymond Hettinger
· 19 years ago
b02c35e
* Fix SF #1257731. Make __contains__(), remove(), and discard() only do
by Raymond Hettinger
· 19 years ago
c991db2
* Add short-circuit code for in-place operations with self (such as
by Raymond Hettinger
· 19 years ago
bc841a1
* Bring in INIT_NONZERO_SET_SLOTS macro from dictionary code.
by Raymond Hettinger
· 19 years ago
99220fa
* Removed checked_error flag which no longer provides any benefit.
by Raymond Hettinger
· 19 years ago
5ba0cbe
* set_new() doesn't need to zero the structure a second time after tp_alloc
by Raymond Hettinger
· 19 years ago
fe889f3
Factor away a redundant clear() function.
by Raymond Hettinger
· 19 years ago
a580c47
* Improve a variable name: entry0 --> table.
by Raymond Hettinger
· 19 years ago
a9d9936
* Move copyright notice to top and indicate derivation from sets.py and
by Raymond Hettinger
· 19 years ago
67962ab
Model set.pop() after dict.popitem().
by Raymond Hettinger
· 19 years ago
d794666
* Improve code for the empty frozenset singleton:
by Raymond Hettinger
· 19 years ago
e295676
Fix build on gcc: PySetIter_Type should be static in definition part also.
by Hye-Shik Chang
· 19 years ago
06d8cf8
Improve variable names.
by Raymond Hettinger
· 19 years ago
9dcb17c
Fix frozenset() ref count and a comment typo.
by Raymond Hettinger
· 19 years ago
934d63e
Comment on the set_swap_bodies() helper function.
by Raymond Hettinger
· 19 years ago
9f1a679
Revised the set() and frozenset() implementaion to use its own internal
by Raymond Hettinger
· 19 years ago
bb999b5
SF patch #1200018: Restore GC support to set objects
by Raymond Hettinger
· 19 years ago
15056a5
SF 1062353: set pickling problems
by Raymond Hettinger
· 20 years ago
6429a47
Use Py_CLEAR(). Add unrelated test.
by Raymond Hettinger
· 20 years ago
9ba301e
Moved SunPro warning suppression into pyport.h and out of individual
by Nicholas Bastin
· 20 years ago
1ce9e4c
Fixed end-of-loop code not reached warning when using SunPro C
by Nicholas Bastin
· 20 years ago
148a63f
Remove a function no longer in use.
by Raymond Hettinger
· 20 years ago
47edb4b
Remove unnecessary GC support. Sets cannot have cycles.
by Raymond Hettinger
· 20 years ago
c978633
Futher improvements to frozenset hashing (based on Yitz Gale's battery of
by Raymond Hettinger
· 20 years ago
27e403e
Fixups to the hash function for frozensets.
by Raymond Hettinger
· 20 years ago
691d805
Make sets and deques weak referencable.
by Raymond Hettinger
· 20 years ago
3fd500b
The copy module now handles sets directly. The __copy__ methods are no
by Raymond Hettinger
· 21 years ago
a3b11e7
* Simplify and speedup logic for tp_print.
by Raymond Hettinger
· 21 years ago
81ad32e
Speedup set.update by using the override mode for PyDict_Merge().
by Raymond Hettinger
· 21 years ago
fb4e33a
Improve algorithm for set.difference when the input is not a set.
by Raymond Hettinger
· 21 years ago
438e02d
* Refactor set.__contains__()
by Raymond Hettinger
· 21 years ago
0deab62
Refactor set.discard() and set.remove().
by Raymond Hettinger
· 21 years ago
dc5ae11
Use dictionary specific looping idiom where possible.
by Raymond Hettinger
· 21 years ago
8f5cdaa
* Added a new method flag, METH_COEXIST.
by Raymond Hettinger
· 21 years ago
bc0f2ab
Expose dict_contains() and PyDict_Contains() with is about 10% faster
by Raymond Hettinger
· 21 years ago
a38123e
Factor out more duplicate code.
by Raymond Hettinger
· 21 years ago
5f4e45d
Stop GCC warning about int literal that's so long that it becomes an
by Guido van Rossum
· 21 years ago
f5f41bf
* Checkin remaining documentation
by Raymond Hettinger
· 21 years ago
49ba4c3
* Simplify hash function and add test to show effectiveness of the hash
by Raymond Hettinger
· 21 years ago
bfd334a
Extend temporary hashability to remove() and discard().
by Raymond Hettinger
· 21 years ago
19c2d77
Allow temporary hashability for the __contains__ test.
by Raymond Hettinger
· 21 years ago
3fbec70
issubset() and issuperset() to work with general iterables
by Raymond Hettinger
· 21 years ago
82d73dd
Three minor performance improvements:
by Raymond Hettinger
· 21 years ago
b61982b
Implement straightforward suggestions from gcc warnings (remove unused
by Guido van Rossum
· 21 years ago
1b92fd5
Use PySequence_Contains() instead of direct access macro.
by Raymond Hettinger
· 21 years ago
50a4bb3
Various fixups (most suggested by Armin Rigo).
by Raymond Hettinger
· 21 years ago
e2c277a
Fix output spacing typo
by Raymond Hettinger
· 21 years ago
a690a99
* Migrate set() and frozenset() from the sandbox.
by Raymond Hettinger
· 21 years ago