summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Updated documentation to:Jim Fulton2004-07-144-45/+201
| | | | | | | | | - point out the importance of reassigning data members before assigning thier values - correct my missconception about return values from visitprocs. Sigh. - mention the labor saving Py_VISIT and Py_CLEAR macros.
* Ported some features from zope:Jim Fulton2004-07-141-101/+214
| | | | | - Fixed the display of tests in verbose output - Allow setUp and tearDown functions to be provided for DocTestSuites.
* * Hide a loop induction variable that was inadvertantly being picked upRaymond Hettinger2004-07-142-39/+2
| | | | | | | by the locals() call in the context constructor. * Remove unnecessary properties for int, exp, and sign which duplicated information returned by as_tuple().
* * Rename "Signals" to "_signals" making it non-public.Raymond Hettinger2004-07-142-8/+13
| | | | | * Context.create_decimal can take a zero default just like Decimal(). * Fix typo in comment.
* Recompiled after source file changes.Thomas Heller2004-07-142-0/+0
|
* Ignore some more build products.Thomas Heller2004-07-141-0/+4
|
* Add a warning so that it isn't forgotten to recreate the binaries ANDThomas Heller2004-07-145-0/+45
| | | | CHECK INTO CVS if these files are changed.
* Don't complain that non-existant registry entries cannot be deleted.Thomas Heller2004-07-141-2/+2
|
* This is Pete Shinners' patch from his bug reportMichael W. Hudson2004-07-141-10/+30
| | | | | | | | [ 984722 ] Py_BuildValue loses reference counts on error I'm ever-so-slightly uneasy at the amount of work this can do with an exception pending, but I don't think that this can result in anything more serious than a strange error message.
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-142-1/+2
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-0/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* It helps when doing checks if something is in a tuple of strings that if youBrett Cannon2004-07-141-1/+1
| | | | put everything in the tuple in caps to use str.upper() instead of str.lower().
* clarify where \versionadded and \versionchanged should be placed whenFred Drake2004-07-131-20/+28
| | | | they are used
* Claifications: visit procs are supplied by the core, users aren'tTim Peters2004-07-131-3/+6
| | | | | | | expected to write their own. A NULL "object" must not be passed to the visit callback. A non-zero return from a visit proc isn't necessarily an error return (and it doesn't matter to the tp_traverse code *what* it might signify, their only job is to return it).
* generalize a bit; no need to mention my user id directlyFred Drake2004-07-131-1/+1
|
* WordsmithingAndrew M. Kuchling2004-07-131-15/+15
|
* Fixes a bug in testing code handling .pth files that did not restore the ↵Brett Cannon2004-07-131-29/+26
| | | | | | | | | | | | | | | | original module that is removed for testing "import" lines. Originally deleted the entry from sys.modules and then just let other code that needed it to import it again. Problem with this solution is that it lead to code that had already imported the module in question to have their own reference to a new copy of the module in question that new code couldn't reach. This lead to a failure in test_strptime since it monkey-patched the 'time' module it had a reference to while _strptime had its own reference to another copy of 'time' from being imported by test___all__ that it was using for a calculation. Also moved the testing code out of the PthFile class and into the actual test class. This was to stop using 'assert' which is useless with a -O execution.
* Add another point in the "Restrictions" section about how the handling of FTPBrett Cannon2004-07-131-0/+17
| | | | | | | URLs will seemingly succeed to read a URL that points to a file whose permissions you do not have to read. Backport candidate once everyone agrees with the wording.
* Using repr() generates entries that the current stats package can'tNicholas Bastin2004-07-122-7/+7
| | | | collate, so setting it back to the function name
* Updated my email address to something that works <wink>.Barry Warsaw2004-07-121-1/+1
|
* Fix test case for when time.tzname[0] is either UTC or GMT. Also have testBrett Cannon2004-07-121-2/+7
| | | | output more telling details when there is a failure.
* Fixed minor bugs in the example configuration fileVinay Sajip2004-07-121-4/+4
|
* Fix SF Bug #989066Nicholas Bastin2004-07-121-4/+4
|
* Use set() instead of sets.Set()Raymond Hettinger2004-07-121-3/+2
|
* Small elaboration and typo fixes.Raymond Hettinger2004-07-121-5/+19
|
* Add more known macros.Raymond Hettinger2004-07-121-0/+1
|
* this is patchMichael W. Hudson2004-07-122-1/+38
| | | | | | | | [ 988698 ] compiler.transformer fix for (a, b) = 1, 2 fixing bug [ 988613 ] compiler.transformer and tuple unpacking
* Fix markup.Raymond Hettinger2004-07-121-9/+10
|
* FreeBSD's services file contains an additional echo service entry, withAndrew MacIntyre2004-07-121-1/+7
| | | | | | | | | | | a non-standard protocol and on a lower port than the tcp/udp entries, which breaks the assumption that there will only be one service by a given name on a given port when no protocol is specified. Previous versions of this code have had other problems as a result of different service definitions amongst common platforms. As this platform has an extra, unexpected, service entry, I've special cased the platform rather than re-order the list of services checked to highlight the pitfall.
* install test/decimaltestdata as wellAnthony Baxter2004-07-121-0/+3
|
* install test/decimaltestdata as wellAnthony Baxter2004-07-121-0/+1
|
* Removed debugging print statements from TimedRotatingFileHandler, and sorted ↵Vinay Sajip2004-07-121-3/+4
| | | | list returned by glob.glob() (SF #987166)
* another note for amkAnthony Baxter2004-07-121-0/+2
|
* Simplified the new get/get_nowait/put/put_nowait implementations a bit.Tim Peters2004-07-121-27/+12
|
* Bug #788520: Queue class has logic error when non-blockingTim Peters2004-07-123-88/+76
| | | | | | | | | | | | | | | | | | | | 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-112-24/+97
| | | | | | | | | | 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.
* Remove tabs introduced in last commit.Brett Cannon2004-07-111-4/+4
|
* Patch [ 972332 ] urllib2 FTPHandler bugs / John J. LeeKurt B. Kaiser2004-07-112-12/+11
| | | | | Modified Files: urllib2.py test/test_urllib2.py
* Add FAQ on non-GNU make error. Update copyright date to 2004.Kurt B. Kaiser2004-07-111-1/+8
|
* Added documentation for the "smtpd" module.Fred Drake2004-07-113-0/+65
| | | | Closes SF bug #450803.
* Style nit.Raymond Hettinger2004-07-111-2/+2
|
* Fix decimal write-up nits.Raymond Hettinger2004-07-111-7/+7
|
* Minor improvements, fixups and wording changes everywhere.Raymond Hettinger2004-07-111-163/+169
|
* Clarify requirement for GNU makeKurt B. Kaiser2004-07-111-0/+2
|
* Patch 851752 (fixes bug 820583)Kurt B. Kaiser2004-07-111-3/+10
| | | | | | | | | | | | Patch by John J Lee Reviewed by Jeff Epler / KBK Doc built OK. urlopen() may return None if no handler handles the request. Also clarify what install_opener does. M liburllib2.tex
* SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon2004-07-103-0/+13
| | | | | | that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
* [Patch #947352 from Jason Andryuk] Add support for AF_PACKET hardware addressesAndrew M. Kuchling2004-07-101-6/+15
|
* Debug output is now printed to sys.stderr .Brett Cannon2004-07-102-9/+12
| | | | Closes bug #980938.
* Fix minor error in example.Brett Cannon2004-07-101-1/+1
|
* posixpath.realpath() now detects symlink loops and returns the path just beforeBrett Cannon2004-07-102-6/+34
| | | | | | the loop starts. Closes bug #930024. Thanks AM Kuchling.