- 12 Aug, 2005 2 commits
-
-
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 3 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.
-
Raymond Hettinger authored
-
- 05 Aug, 2005 3 commits
-
-
Georg Brandl authored
-
Raymond Hettinger authored
* Give set_lookkey_string() a fast alternate path when no dummy entries are present. * Have set_swap_bodies() reset the hash field to -1 whenever either of bodies is not a frozenset. Maintains the invariant of regular sets always having -1 in the hash field; otherwise, any mutation would make the hash value invalid. * Use an entry pointer to simplify the code in frozenset_hash().
-
Raymond Hettinger authored
dictobject.c. * Have frozenset_hash() use entry->hash instead of re-computing each individual hash with PyObject_Hash(o); * Finalize the dummy entry before a system exit.
-
- 03 Aug, 2005 4 commits
-
-
Tim Peters authored
-
Walter Dörwald authored
Unicode support.
-
Georg Brandl authored
-
Georg Brandl authored
-
- 02 Aug, 2005 7 commits
-
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Georg Brandl authored
-
Raymond Hettinger authored
-
Skip Montanaro authored
'quotation mark', so I decided to use it instead of 'double-quote'.
-
Skip Montanaro authored
manual. Closes #1243553.
-
Phillip J. Eby authored
method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
-
- 01 Aug, 2005 2 commits
-
-
Raymond Hettinger authored
- Handle both frozenset() and frozenset([]). - Do not use singleton for frozenset subclasses. - Finalize the singleton. - Add test cases. * Factor-out set_update_internal() from set_update(). Simplifies the code for several internal callers. * Factor constant expressions out of loop in set_merge_internal(). * Minor comment touch-ups.
-
Hye-Shik Chang authored
part also.
-
- 31 Jul, 2005 4 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
data structure instead of using dictionaries. Reduces memory consumption by 1/3 and provides modest speed-ups for most set operations.
-
- 29 Jul, 2005 3 commits
-
-
Fred Drake authored
(closes SF bug #1238210)
-
Fred Drake authored
-
Vinay Sajip authored
Documentation added about changes in 2.4 to basicConfig(), including documentation of the keyword arguments. A version change note was also added to the basic example.
-
- 28 Jul, 2005 2 commits
-
-
Walter Dörwald authored
-
Hye-Shik Chang authored
-
- 27 Jul, 2005 1 commit
-
-
Michael W. Hudson authored
[ 1231069 ] ioctl has problem with -ive request codes by using the 'I' not the 'i' format code to PyArg_ParseTuple(). Backport candidate? Maybe...
-