summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove a function no longer in use.Raymond Hettinger2004-06-141-8/+0
|
* Teach pythoncore project about new pystrtod.c for VC7.1. This was doneTim Peters2004-06-141-0/+3
| | | | a long time ago for VC6.
* SF bug #970042, lockf() signature uses len, doc refers to length (use ↵Neal Norwitz2004-06-131-1/+1
| | | | length, same as docstring)
* SF patch #969180, hotshot incorrectly computes elapsed time by JasonNeal Norwitz2004-06-131-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 warningNeal Norwitz2004-06-131-1/+1
|
* Make private function staticNeal Norwitz2004-06-131-1/+1
|
* Remove warning (static not being first) when building with -WNeal Norwitz2004-06-131-2/+2
|
* Remove warning about implicit declaration of strcmp()Neal Norwitz2004-06-131-0/+1
|
* Fixup error exits in nlargest() and nsmallest().Raymond Hettinger2004-06-131-8/+16
|
* Apply heapq.nlargest() to find best matches.Raymond Hettinger2004-06-131-2/+4
|
* Remove unnecessary GC support. Sets cannot have cycles.Raymond Hettinger2004-06-131-16/+7
|
* Add heapq to list of __all__ checks.Raymond Hettinger2004-06-131-0/+1
|
* Install C version of heapq.nsmallest().Raymond Hettinger2004-06-134-17/+182
|
* Install C version of heapq.nlargest().Raymond Hettinger2004-06-121-0/+76
| | | | Maxheap version of heapq.smallest() is forthcoming.
* note a really bad test (no time to fix now)Michael W. Hudson2004-06-121-0/+1
|
* Improve the memory performance and speed of heapq.nsmallest() by usingRaymond Hettinger2004-06-122-0/+24
| | | | | an alternate algorithm when the number of selected items is small relative to the full iterable.
* Minor wording and spacing nits.Raymond Hettinger2004-06-122-11/+7
|
* Complete the list of weakreferencable objects.Raymond Hettinger2004-06-121-0/+1
|
* * Factor out PyObject_SelfIter().Raymond Hettinger2004-06-121-9/+3
| | | | * Change a XDECREF to DECREF (adding an assertion just to be sure).
* Add support for package data.Fred Drake2004-06-113-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 patchMichael W. Hudson2004-06-111-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 Baxter2004-06-112-2/+10
| | | | | | | | | | releases. Ignore it, rather than breaking. Will backport. (and r1.1000 for Misc/NEWS!)
* fix a poorly worded error messageAnthony Baxter2004-06-111-1/+1
|
* Fix for bug #966623 - classes created with type() in an exec(, {}) don'tAnthony Baxter2004-06-112-0/+8
| | | | | | have a __module__. Test for this case. Bugfix candidate, will backport.
* dump HAVE_FOPENRF stuff - obsoleteSkip Montanaro2004-06-111-26/+19
|
* Respect a module's __all__ attribute. Closes #969938.Skip Montanaro2004-06-111-8/+21
|
* Futher improvements to frozenset hashing (based on Yitz Gale's battery ofRaymond Hettinger2004-06-101-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 Hettinger2004-06-101-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 Hettinger2004-06-102-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 Hettinger2004-06-101-86/+90
|
* SF patch #969791: Add nlargest() and nsmallest() to heapq.Raymond Hettinger2004-06-105-5/+75
|
* Defining Py_GCC_ATTRIBUTE finds even some more undocumented functions.Thomas Heller2004-06-091-1/+1
|
* Public Python functions are nowadays marked PyAPI_FUNC, not DL_IMPORT.Thomas Heller2004-06-091-1/+1
|
* make a reference to the SimpleHTTPServer module a hyperlink to theFred Drake2004-06-091-1/+1
| | | | docs
* Ensure path is initialized to prevent freeing random memoryNeal Norwitz2004-06-091-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 Peters2004-06-081-1/+1
|
* Teach MSVC 6 about pystrtod.c.Tim Peters2004-06-081-0/+4
|
* Patch #774665: Make Python LC_NUMERIC agnostic.Martin v. Löwis2004-06-0814-103/+317
|
* Removed test_sitepackages test. Skip discovered that it only passed if PythonBrett Cannon2004-06-081-8/+0
| | | | had already been installed previously.
* - markup fixFred Drake2004-06-081-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öwis2004-06-088-6/+31
|
* Patch #510695: Add TSC profiling for the VM.Martin v. Löwis2004-06-0810-3/+243
|
* Note that memory returned by PyBuffer_New is not specifically aligned.Neil Schemenauer2004-06-081-1/+3
| | | | Closes SF bug #472568.
* SF 952807: Unpickling pickled instances of subclasses of datetime.date,Tim Peters2004-06-073-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 Hettinger2004-06-071-0/+12
|
* Fix a refcount bug in an obscure code corner.Thomas Heller2004-06-071-0/+2
|
* Fix a refcount bug in an obscure code corner.Thomas Heller2004-06-071-0/+1
| | | | Already backported.
* Another nit found by Neal Norwitz using pychecker. This was caused by aSkip Montanaro2004-06-071-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 againNeal Norwitz2004-06-071-4/+4
| | | | | Cleanup: use condition to be consistent with code above CookieJar is in cookielib
* There is no reason to have an underscore after selfNeal Norwitz2004-06-071-1/+1
|