Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
334b5b20f284ff4b44cfe3a035e1654b23390028
/
Objects
/
setobject.c
334b5b2
Tighten an overbroad and misleading assertion. (Reported by Jim Jewett.)
by Raymond Hettinger
· 18 years ago
8c49c82
Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions.
by Neal Norwitz
· 18 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
· 20 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