summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Treat None as a constant.Raymond Hettinger2004-07-161-0/+2
|
* Summarized changes: threading.local, Py_CLEAR, Py_VISIT, improved typeJim Fulton2004-07-141-0/+26
| | | | tutorial.
* install test/decimaltestdata as wellAnthony Baxter2004-07-121-0/+3
|
* Bug #788520: Queue class has logic error when non-blockingTim Peters2004-07-121-0/+11
| | | | | | | | | | | | | | | | | | | | I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
* SF patch 986010: add missing doc for datetime C API, fromTim Peters2004-07-111-9/+12
| | | | | | | | | | Anthony Tuininga. This is a derived patch, taking the opportunity to add some organization to the now-large pile of datetime-related macros, and to factor out tedious repeated text. Also improved some clumsy wording in NEWS.
* SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon2004-07-101-0/+4
| | | | | | that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
* Debug output is now printed to sys.stderr .Brett Cannon2004-07-101-0/+2
| | | | Closes bug #980938.
* posixpath.realpath() now detects symlink loops and returns the path just beforeBrett Cannon2004-07-101-0/+4
| | | | | | the loop starts. Closes bug #930024. Thanks AM Kuchling.
* Add PyArg_VaParseTupleAndKeywords(). Document this function andBrett Cannon2004-07-101-0/+3
| | | | | | PyArg_VaParse(). Closes patch #550732. Thanks Greg Chapman.
* Add itemAndrew M. Kuchling2004-07-102-0/+4
|
* Make ntpath compress multiple slashes between drive letter and the rest of theBrett Cannon2004-07-101-0/+4
| | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
* Add note about closing of bug #679953 and add Jimmy Burgett for helping out toBrett Cannon2004-07-102-0/+5
| | | | Misc/ACKS.
* Add an itemAndrew M. Kuchling2004-07-101-0/+3
|
* Added note about new codecs module APIs.Marc-André Lemburg2004-07-101-0/+4
|
* Fix typo.Raymond Hettinger2004-07-101-1/+1
|
* Module and tests:Raymond Hettinger2004-07-091-0/+3
| | | | | | | | | | | | * Map conditions to related signals. * Make contexts unhashable. * Eliminate used "default" attribute in exception definitions. * Eliminate the _filterfunc in favor of a straight list. Docs: * Eliminate documented references to conditions that are not signals. * Eliminate parenthetical notes such as "1/0 --> Inf" which are no longer true with the new defaults.
* post-release funAnthony Baxter2004-07-091-9/+45
|
* 2.4a1Anthony Baxter2004-07-081-1/+1
|
* release datesAnthony Baxter2004-07-081-1/+1
|
* This closes patch:Michael W. Hudson2004-07-071-0/+1
| | | | | | | | | | | | | | | | | [ 960406 ] unblock signals in threads although the changes do not correspond exactly to any patch attached to that report. Non-main threads no longer have all signals masked. A different interface to readline is used. The handling of signals inside calls to PyOS_Readline is now rather different. These changes are all a bit scary! Review and cross-platform testing much appreciated.
* Made the explanation more accurate; trimmed trailing whitespace; fixedTim Peters2004-07-071-16/+22
| | | | a typo.
* Add msg for bug #981530 (shutil.rmtree). Somehow that got missed inGuido van Rossum2004-07-061-0/+4
| | | | the checkin.
* Typo fixesAndrew M. Kuchling2004-07-041-6/+6
|
* Clarify last added comment (bug #754449).Brett Cannon2004-07-031-2/+3
|
* threading.Thread objects will now print a traceback for an exception raisedBrett Cannon2004-07-031-0/+3
| | | | | | | during interpreter shutdown instead of masking it with another traceback about accessing a NoneType when trying to print the exception out in the first place. Closes bug #754449 (using patch #954922).
* Make weak references subclassable:Fred Drake2004-07-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019.
* SF #951851 fixed.Thomas Heller2004-07-021-0/+3
|
* SF Bug #215126: Over restricted type checking on eval() functionRaymond Hettinger2004-07-021-0/+2
| | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+2
|
* tyopMichael W. Hudson2004-06-301-1/+1
|
* restore NEWS entry for 957240Michael W. Hudson2004-06-301-0/+3
|
* [Patch #974633] Check PyObject_MALLOC return for errorAndrew M. Kuchling2004-06-291-0/+1
|
* Fix stupid mistake of forgetting to mention that the fix for bug #981299Brett Cannon2004-06-291-2/+2
| | | | entailed editing the urlparse module.
* rsync is now a recognized protocol that uses "netloc" (i.e. specifies a networkBrett Cannon2004-06-291-0/+3
| | | | | | location) in its addressing. Closes bug #981299.
* Added socket.getservbyport(), and make its second argument and that ofBarry Warsaw2004-06-281-0/+3
| | | | getservbyname() optional. Update the tests and the docs.
* Patch #923098: Share interned strings in marshal.Martin v. Löwis2004-06-271-0/+3
|
* Modules/getpath.c now compiles properly under OS X when using theBrett Cannon2004-06-261-0/+3
| | | | | | | --disable-framework build; header file was protected in an #if using the wrong macro to check. Closes bug #978645.
* Make distutils "install --home" support all platforms.Fred Drake2004-06-251-0/+3
|
* Fix leak found by Eric Huss.Raymond Hettinger2004-06-251-0/+1
|
* SF patch 876130: add C API to datetime module, from Anthony Tuininga.Tim Peters2004-06-202-0/+5
| | | | | | The LaTeX is untested (well, so is the new API, for that matter). Note that I also changed NULL to get spelled consistently in concrete.tex. If that was a wrong thing to do, Fred should yell at me.
* Bug 975996: Add _PyTime_DoubleToTimet to C APITim Peters2004-06-201-3/+12
| | | | | | | | | | | New include file timefuncs.h exports private API function _PyTime_DoubleToTimet() from timemodule.c. timemodule should export some other functions too (look for painful bits in datetimemodule.c). Added insane-argument checking to datetime's assorted fromtimestamp() and utcfromtimestamp() methods. Added insane-argument tests of these to test_datetime, and insane-argument tests for ctime(), localtime() and gmtime() to test_time.
* shutil.move() will raise an exception when trying to move a directory intoBrett Cannon2004-06-192-0/+4
| | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers.
* Add news item about raising ValueError when timemodule.c code that usesBrett Cannon2004-06-191-0/+4
| | | | timestamps will lose precision thanks to time_t < double (bug #919012).
* pydoc.stripid() is now case-insensitive for its regex to support platforms thatBrett Cannon2004-06-192-1/+4
| | | | | | have pointer addresses in uppercase. Closes bug #934282. Thanks Robin Becker.
* allow developers to more easily build a profiling version of the interpreterSkip Montanaro2004-06-181-0/+3
| | | | and modules by configuring with the --enable-profiling flag.
* Patch #826074: cmath.log optional base argument, fixes #823209Raymond Hettinger2004-06-141-0/+3
| | | | (Contributed by Andrew Gaul.)
* Back out #957240.Martin v. Löwis2004-06-141-2/+0
|
* Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora ↵Anthony Baxter2004-06-111-1/+4
| | | | | | | | | | releases. Ignore it, rather than breaking. Will backport. (and r1.1000 for Misc/NEWS!)
* Fix for bug #966623 - classes created with type() in an exec(, {}) don'tAnthony Baxter2004-06-111-0/+4
| | | | | | have a __module__. Test for this case. Bugfix candidate, will backport.
* Add a final permutation step to the tuple hash function.Raymond Hettinger2004-06-101-0/+1
| | | | | Prevents a collision pattern that occurs with nested tuples. (Yitz Gale provided code that repeatably demonstrated the weakness.)