Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove a function no longer in use. | Raymond Hettinger | 2004-06-14 | 1 | -8/+0 |
| | |||||
* | Teach pythoncore project about new pystrtod.c for VC7.1. This was done | Tim Peters | 2004-06-14 | 1 | -0/+3 |
| | | | | a long time ago for VC6. | ||||
* | SF bug #970042, lockf() signature uses len, doc refers to length (use ↵ | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | | | | length, same as docstring) | ||||
* | SF patch #969180, hotshot incorrectly computes elapsed time by Jason | Neal Norwitz | 2004-06-13 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | | Beardsley. If the seconds are different, we still need to calculate the differences between milliseconds. Also, on a Gentoo Linux (2.6.5) dual Athlon MP box with glibc 2.3, time can go backwards. This probably happens when the process switches the CPU it's running on. Time can also go backwards when running NTP. If we detect a negative time delta (ie, time went backwards), return a delta of 0. This prevents an illegal array access elsewhere. I think it's safest to *not* update prev_timeofday in this case, so we return without updating. Backport candidate. | ||||
* | Remove compiler warning | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | |||||
* | Make private function static | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | |||||
* | Remove warning (static not being first) when building with -W | Neal Norwitz | 2004-06-13 | 1 | -2/+2 |
| | |||||
* | Remove warning about implicit declaration of strcmp() | Neal Norwitz | 2004-06-13 | 1 | -0/+1 |
| | |||||
* | Fixup error exits in nlargest() and nsmallest(). | Raymond Hettinger | 2004-06-13 | 1 | -8/+16 |
| | |||||
* | Apply heapq.nlargest() to find best matches. | Raymond Hettinger | 2004-06-13 | 1 | -2/+4 |
| | |||||
* | Remove unnecessary GC support. Sets cannot have cycles. | Raymond Hettinger | 2004-06-13 | 1 | -16/+7 |
| | |||||
* | Add heapq to list of __all__ checks. | Raymond Hettinger | 2004-06-13 | 1 | -0/+1 |
| | |||||
* | Install C version of heapq.nsmallest(). | Raymond Hettinger | 2004-06-13 | 4 | -17/+182 |
| | |||||
* | Install C version of heapq.nlargest(). | Raymond Hettinger | 2004-06-12 | 1 | -0/+76 |
| | | | | Maxheap version of heapq.smallest() is forthcoming. | ||||
* | note a really bad test (no time to fix now) | Michael W. Hudson | 2004-06-12 | 1 | -0/+1 |
| | |||||
* | Improve the memory performance and speed of heapq.nsmallest() by using | Raymond Hettinger | 2004-06-12 | 2 | -0/+24 |
| | | | | | an alternate algorithm when the number of selected items is small relative to the full iterable. | ||||
* | Minor wording and spacing nits. | Raymond Hettinger | 2004-06-12 | 2 | -11/+7 |
| | |||||
* | Complete the list of weakreferencable objects. | Raymond Hettinger | 2004-06-12 | 1 | -0/+1 |
| | |||||
* | * Factor out PyObject_SelfIter(). | Raymond Hettinger | 2004-06-12 | 1 | -9/+3 |
| | | | | * Change a XDECREF to DECREF (adding an assertion just to be sure). | ||||
* | Add support for package data. | Fred Drake | 2004-06-11 | 3 | -0/+101 |
| | | | | | | | This is basically the support for package data from Phillip Eby's setuptools package. I've changed it only to fit it into the core implementation rather than to live in subclasses, and added documentation. | ||||
* | lightly modified version of my patch | Michael W. Hudson | 2004-06-11 | 1 | -24/+31 |
| | | | | | | [ 971323 ] make test_signal less annoying after some comments on IRC from a highly opinionated australian who wishes to remain anonymous. | ||||
* | Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora ↵ | Anthony Baxter | 2004-06-11 | 2 | -2/+10 |
| | | | | | | | | | | releases. Ignore it, rather than breaking. Will backport. (and r1.1000 for Misc/NEWS!) | ||||
* | fix a poorly worded error message | Anthony Baxter | 2004-06-11 | 1 | -1/+1 |
| | |||||
* | Fix for bug #966623 - classes created with type() in an exec(, {}) don't | Anthony Baxter | 2004-06-11 | 2 | -0/+8 |
| | | | | | | have a __module__. Test for this case. Bugfix candidate, will backport. | ||||
* | dump HAVE_FOPENRF stuff - obsolete | Skip Montanaro | 2004-06-11 | 1 | -26/+19 |
| | |||||
* | Respect a module's __all__ attribute. Closes #969938. | Skip Montanaro | 2004-06-11 | 1 | -8/+21 |
| | |||||
* | Futher improvements to frozenset hashing (based on Yitz Gale's battery of | Raymond Hettinger | 2004-06-10 | 1 | -8/+10 |
| | | | | | | | | | | | | | tests which nicely highly highlight weaknesses). * Initial value is now a large prime. * Pre-multiply by the set length to add one more basis of differentiation. * Work a bit harder inside the loop to scatter bits from sources that may have closely spaced hash values. All of this is necessary to make up for keep the hash function commutative. Fortunately, the hash value is cached so the call to frozenset_hash() will only occur once per set. | ||||
* | Fixups to the hash function for frozensets. | Raymond Hettinger | 2004-06-10 | 1 | -1/+4 |
| | | | | | | * Non-zero initial value so that hash(frozenset()) != hash(0). * Final permutation to differentiate nested sets. * Add logic to make sure that -1 is not a possible hash value. | ||||
* | Add a final permutation step to the tuple hash function. | Raymond Hettinger | 2004-06-10 | 2 | -0/+2 |
| | | | | | Prevents a collision pattern that occurs with nested tuples. (Yitz Gale provided code that repeatably demonstrated the weakness.) | ||||
* | Convert test_heapq.py to unittests. | Raymond Hettinger | 2004-06-10 | 1 | -86/+90 |
| | |||||
* | SF patch #969791: Add nlargest() and nsmallest() to heapq. | Raymond Hettinger | 2004-06-10 | 5 | -5/+75 |
| | |||||
* | Defining Py_GCC_ATTRIBUTE finds even some more undocumented functions. | Thomas Heller | 2004-06-09 | 1 | -1/+1 |
| | |||||
* | Public Python functions are nowadays marked PyAPI_FUNC, not DL_IMPORT. | Thomas Heller | 2004-06-09 | 1 | -1/+1 |
| | |||||
* | make a reference to the SimpleHTTPServer module a hyperlink to the | Fred Drake | 2004-06-09 | 1 | -1/+1 |
| | | | | docs | ||||
* | Ensure path is initialized to prevent freeing random memory | Neal Norwitz | 2004-06-09 | 1 | -4/+2 |
| | | | | | (reported by Thomas Heller). If have_unicode_filename is set, path looks like it will not be used, so there's no need to free it. | ||||
* | test_devnull(): Use assertEqual() instead of an assert stmt. | Tim Peters | 2004-06-08 | 1 | -1/+1 |
| | |||||
* | Teach MSVC 6 about pystrtod.c. | Tim Peters | 2004-06-08 | 1 | -0/+4 |
| | |||||
* | Patch #774665: Make Python LC_NUMERIC agnostic. | Martin v. Löwis | 2004-06-08 | 14 | -103/+317 |
| | |||||
* | Removed test_sitepackages test. Skip discovered that it only passed if Python | Brett Cannon | 2004-06-08 | 1 | -8/+0 |
| | | | | had already been installed previously. | ||||
* | - markup fix | Fred Drake | 2004-06-08 | 1 | -3/+3 |
| | | | | | - explain Python/ceval.c from what; lots of people don't use a source distro any more | ||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 8 | -6/+31 |
| | |||||
* | Patch #510695: Add TSC profiling for the VM. | Martin v. Löwis | 2004-06-08 | 10 | -3/+243 |
| | |||||
* | Note that memory returned by PyBuffer_New is not specifically aligned. | Neil Schemenauer | 2004-06-08 | 1 | -1/+3 |
| | | | | Closes SF bug #472568. | ||||
* | SF 952807: Unpickling pickled instances of subclasses of datetime.date, | Tim Peters | 2004-06-07 | 3 | -6/+41 |
| | | | | | | | datetime.datetime and datetime.time could yield insane objects. Thanks to Jiwon Seo for the fix. Bugfix candidate. I'll backport it to 2.3. | ||||
* | Add genexps to the glossary. | Raymond Hettinger | 2004-06-07 | 1 | -0/+12 |
| | |||||
* | Fix a refcount bug in an obscure code corner. | Thomas Heller | 2004-06-07 | 1 | -0/+2 |
| | |||||
* | Fix a refcount bug in an obscure code corner. | Thomas Heller | 2004-06-07 | 1 | -0/+1 |
| | | | | Already backported. | ||||
* | Another nit found by Neal Norwitz using pychecker. This was caused by a | Skip Montanaro | 2004-06-07 | 1 | -2/+1 |
| | | | | | too-mechanical translation when converting html() to text() (simply stripped strong() where it appeared). | ||||
* | Cleanup: the in operator already returns a bool, no need to bool() it again | Neal Norwitz | 2004-06-07 | 1 | -4/+4 |
| | | | | | Cleanup: use condition to be consistent with code above CookieJar is in cookielib | ||||
* | There is no reason to have an underscore after self | Neal Norwitz | 2004-06-07 | 1 | -1/+1 |
| |