143 Commits (ecd4e9de5afab6a5d75a6fa7ebfb62804ba69264)

Author SHA1 Message Date
Raymond Hettinger fe889f3c62 Factor away a redundant clear() function. 21 years ago
Raymond Hettinger a580c47c6d * Improve a variable name: entry0 --> table. 21 years ago
Raymond Hettinger a9d9936d10 * Move copyright notice to top and indicate derivation from sets.py and 21 years ago
Raymond Hettinger 67962ab1bb Model set.pop() after dict.popitem(). 21 years ago
Raymond Hettinger d794666048 * Improve code for the empty frozenset singleton: 21 years ago
Hye-Shik Chang e295676c87 Fix build on gcc: PySetIter_Type should be static in definition 21 years ago
Raymond Hettinger 06d8cf8ceb Improve variable names. 21 years ago
Raymond Hettinger 9dcb17cb1a Fix frozenset() ref count and a comment typo. 21 years ago
Raymond Hettinger 934d63eb40 Comment on the set_swap_bodies() helper function. 21 years ago
Raymond Hettinger 9f1a6796eb Revised the set() and frozenset() implementaion to use its own internal 21 years ago
Raymond Hettinger bb999b5925 SF patch #1200018: Restore GC support to set objects 21 years ago
Raymond Hettinger 15056a5202 SF 1062353: set pickling problems 21 years ago
Raymond Hettinger 6429a4727e Use Py_CLEAR(). Add unrelated test. 22 years ago
Nicholas Bastin 9ba301e589 Moved SunPro warning suppression into pyport.h and out of individual 22 years ago
Nicholas Bastin 1ce9e4cfc1 Fixed end-of-loop code not reached warning when using SunPro C 22 years ago
Raymond Hettinger 148a63f1fc Remove a function no longer in use. 22 years ago
Raymond Hettinger 47edb4b09c Remove unnecessary GC support. Sets cannot have cycles. 22 years ago
Raymond Hettinger c978633ec6 Futher improvements to frozenset hashing (based on Yitz Gale's battery of 22 years ago
Raymond Hettinger 27e403ebe9 Fixups to the hash function for frozensets. 22 years ago
Raymond Hettinger 691d80532b Make sets and deques weak referencable. 22 years ago
Raymond Hettinger 3fd500b4a5 The copy module now handles sets directly. The __copy__ methods are no 22 years ago
Raymond Hettinger a3b11e7fb3 * Simplify and speedup logic for tp_print. 22 years ago
Raymond Hettinger 81ad32e435 Speedup set.update by using the override mode for PyDict_Merge(). 22 years ago
Raymond Hettinger fb4e33a8e2 Improve algorithm for set.difference when the input is not a set. 22 years ago
Raymond Hettinger 438e02dfc8 * Refactor set.__contains__() 22 years ago
Raymond Hettinger 0deab62704 Refactor set.discard() and set.remove(). 22 years ago
Raymond Hettinger dc5ae11abf Use dictionary specific looping idiom where possible. 22 years ago
Raymond Hettinger 8f5cdaa784 * Added a new method flag, METH_COEXIST. 22 years ago
Raymond Hettinger bc0f2ab9bb Expose dict_contains() and PyDict_Contains() with is about 10% faster 22 years ago
Raymond Hettinger a38123e2fa Factor out more duplicate code. 22 years ago
Guido van Rossum 5f4e45d66f Stop GCC warning about int literal that's so long that it becomes an 22 years ago
Raymond Hettinger f5f41bf087 * Checkin remaining documentation 22 years ago
Raymond Hettinger 49ba4c39c4 * Simplify hash function and add test to show effectiveness of the hash 22 years ago
Raymond Hettinger bfd334a42d Extend temporary hashability to remove() and discard(). 22 years ago
Raymond Hettinger 19c2d77842 Allow temporary hashability for the __contains__ test. 22 years ago
Raymond Hettinger 3fbec701ca issubset() and issuperset() to work with general iterables 22 years ago
Raymond Hettinger 82d73dd459 Three minor performance improvements: 22 years ago
Guido van Rossum b61982bacb Implement straightforward suggestions from gcc warnings (remove unused 22 years ago
Raymond Hettinger 1b92fd5bca Use PySequence_Contains() instead of direct access macro. 22 years ago
Raymond Hettinger 50a4bb325c Various fixups (most suggested by Armin Rigo). 22 years ago
Raymond Hettinger e2c277a69f Fix output spacing typo 22 years ago
Raymond Hettinger a690a9967e * Migrate set() and frozenset() from the sandbox. 22 years ago