- 21 Aug, 2005 5 commits
-
-
Raymond Hettinger authored
sequences ==> iterables
-
Raymond Hettinger authored
Minor clarification.
-
Raymond Hettinger authored
Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple().
-
Georg Brandl authored
-
Raymond Hettinger authored
-
- 20 Aug, 2005 1 commit
-
-
Raymond Hettinger authored
-
- 19 Aug, 2005 1 commit
-
-
Raymond Hettinger authored
-
- 18 Aug, 2005 3 commits
-
-
Andrew M. Kuchling authored
-
Raymond Hettinger authored
-
Walter Dörwald authored
-
- 17 Aug, 2005 5 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
* set_merge() cannot assume that the table doesn't resize during iteration. * convert some unnecessary tests to asserts -- they were necessary in dictobject.c because PyDict_Next() is a public function. The same is not true for set_next(). * re-arrange the order of functions to more closely match the order in dictobject.c. This makes it must easier to compare the two and ought to simplify any issues of maintaining both.
-
- 16 Aug, 2005 3 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 15 Aug, 2005 1 commit
-
-
Barry Warsaw authored
hotshot.stats.load.
-
- 14 Aug, 2005 1 commit
-
-
Martin v. Löwis authored
-
- 13 Aug, 2005 5 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
* Use set_next() for looping in issubset() and frozenset_hash(). * Re-order the presentation of cmp and hash functions.
-
Phillip J. Eby authored
was never called during interpreter shutdown GC, so the f_back!=NULL assertion was correct. Now that generators get close()d during GC, the assertion was being triggered because the generator close() was being called as the top-level frame. However, nothing actually is broken by this; it's just that the condition was unexpected in previous Python versions.
-
Raymond Hettinger authored
-
Neil Schemenauer authored
-
- 12 Aug, 2005 4 commits
-
-
Raymond Hettinger authored
a frozenset conversion when the initial search attempt fails with a TypeError and the key is some type of set. Add a testcase. * Eliminate a duplicate if-stmt.
-
Raymond Hettinger authored
a frozenset conversion when the initial search attempt fails with a TypeError and the key is some type of set. Add a testcase. * Eliminate a duplicate if-stmt.
-
Neil Schemenauer authored
unicode instance if the argument is not an instance of basestring and calling __str__ on the argument returns a unicode instance.
-
Andrew M. Kuchling authored
-
- 11 Aug, 2005 1 commit
-
-
Raymond Hettinger authored
s|=s, s&=s, s-=s, or s^=s). Add related tests. * Improve names for several variables and functions. * Provide alternate table access functions (next, contains, add, and discard) that work with an entry argument instead of just a key. This improves set-vs-set operations because we already have a hash value for each key and can avoid unnecessary calls to PyObject_Hash(). Provides a 5% to 20% speed-up for quick hashing elements like strings and integers. Provides much more substantial improvements for slow hashing elements like tuples or objects defining a custom __hash__() function. * Have difference operations resize() when 1/5 of the elements are dummies. Formerly, it was 1/6. The new ratio triggers less frequently and only in cases that it can resize quicker and with greater benefit. The right answer is probably either 1/4, 1/5, or 1/6. Picked the middle value for an even trade-off between resize time and the space/time costs of dummy entries.
-
- 09 Aug, 2005 2 commits
-
-
Fred Drake authored
-
Martin v. Löwis authored
add st_gen, st_birthtime.
-
- 07 Aug, 2005 6 commits
-
-
Martin v. Löwis authored
Backported to 2.4.
-
Martin v. Löwis authored
Backported to 2.4.
-
Raymond Hettinger authored
* Bring in free list from dictionary code. * Improve several comments. * Differencing can leave many dummy entries. If more than 1/6 are dummies, then resize them away. * Factor-out common code with new macro, PyAnySet_CheckExact.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
-
- 06 Aug, 2005 2 commits
-
-
Raymond Hettinger authored
* Have issubset() control its own loop instead of using set_next_internal().
-
Raymond Hettinger authored
has already done the job. * Use a macro form of PyErr_Occurred() inside the set_lookkey() function.
-