summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* elaborate package data test to make sure get_outputs() gives the rightFred Drake2004-07-211-1/+7
| | | | | | results when byte-code compilation is requested (in particular, make sure that package data doesn't get a bogus byte-code listing generated)
* Thread.__delete: Discussion of internal obscurities belongs in commentsTim Peters2004-07-211-31/+28
| | | | | | | | rather than in docstrings. Rewrote so that _active_limbo_lock is released no matter what happens (it could have been left locked if _sys got None'd out). Use "in" in preference to has_key() for dict lookup. Don't bother looking for 'dummy_threading' in sys.modules unless KeyError is raised. Since the heart of the method is the del, do that in only one place.
* EditorWindow.py was not finding the .chm help file on Windows. TypoKurt B. Kaiser2004-07-211-1/+2
| | | | at Rev 1.54. Python Bug 990954
* Fix bug where a KeyError was raised if -O was being used for the interpreterBrett Cannon2004-07-211-1/+33
| | | | | | | | | and Thread.__delete() was called after a Thread instance was created. Problem resulted from a currentThread() call in an 'assert' statement being optimized out and dummy_thread.get_ident() always returning -1 and thus overwriting the entry for the _MainThread() instance created in 'threading' at import time. Closes bug #993394.
* Remove unused variablesNeal Norwitz2004-07-201-2/+0
|
* SF #918101, allow files >= 8 GB using GNU extensionNeal Norwitz2004-07-201-6/+32
|
* SF #857297 and 916874, improve handling of hard links when extractingNeal Norwitz2004-07-202-1/+27
|
* SF #846659, fix bufsize violation and GNU longname/longlink extensionsNeal Norwitz2004-07-202-2/+93
|
* Fix bug in addsitedir() to properly handle the lack of a second argument.Brett Cannon2004-07-201-3/+3
| | | | | | Fixed to keep backwards-compatibility for the undocumented function. Closes bug #986795.
* Check the type of values returned by __int__, __float__, __long__,Neil Schemenauer2004-07-191-27/+80
| | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-193-2/+34
| | | | Fixes SF bug #990307.
* The binary layout of cfgdata has changed, so the magic number has toThomas Heller2004-07-192-0/+0
| | | | | change as well. Recompiled binaries after this change.
* The binary layout of cfgdata has changed, so the magic number has toThomas Heller2004-07-191-1/+7
| | | | change as well. Add a comment explaining this.
* test_codecmaps_hk is also expected to be skipped when a mapping fileHye-Shik Chang2004-07-191-1/+2
| | | | isn't available. (Spotted by Raymond Hettinger)
* Don't try to create the directory if it already exists, otherwise the test failsNeal Norwitz2004-07-191-1/+2
|
* Record that FCNTL.py has gone away; remove FCNTL hack in tempfile.py;Tim Peters2004-07-181-7/+5
| | | | | another hack remains in test___all__.py, but the problem that one addresses is more general than *just* FCNTL, so leaving it alone.
* Remove FCNTL.py, following python-dev discussionAndrew M. Kuchling2004-07-181-14/+0
|
* test_sf_950057's gen1() used an assert statement, which caused the testTim Peters2004-07-181-1/+1
| | | | to fail when running with -O. Changed to raise AssertionError instead.
* Repair bizarre generated Python.Tim Peters2004-07-182-2/+2
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-18179-5419/+5387
|
* Bring CJKCodecs 1.1 into trunk. This completely reorganizes sourceHye-Shik Chang2004-07-1838-138/+339
| | | | | | and installed layouts to make maintenance simple and easy. And it also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004 and iso2022-jp-2004.
* Oops! Restored the pickle test to test_pyclbr, but changed types.py soTim Peters2004-07-182-4/+4
| | | | | that pyclbr doesn't need to special-case modules that do "from types import *".
* The Darwin-specific getproxies_internetconfig() was added to urllib,Tim Peters2004-07-181-2/+2
| | | | | | | | causing test_pyclbr to fail on all other platforms. Added that routine to the urllib "ignore" list. Removed the special case for "g" in the pickle module. types.py deletes "g" from its namespace; maybe it didn't always. Whatever, the special case isn't needed today.
* Upgrade None assignment SyntaxWarning to a SyntaxError.Raymond Hettinger2004-07-171-0/+15
|
* The new distutils features justify a new version number, imo.Thomas Heller2004-07-161-1/+1
| | | | | If someone has other ideas for the numbering scheme, please change to something else (1.1.0 ?).
* Fix for #779167: use InternetConfig proxy settings on MacOSX (in additionJack Jansen2004-07-161-2/+5
| | | | to unix-style).
* [Patch #982681] Apply this patch correctly; makes set_reuse_addr() work on ↵Andrew M. Kuchling2004-07-151-3/+9
| | | | Windows
* Allow overriding of bgen pathnames in an optional module bgenlocationcustomize.Jack Jansen2004-07-151-0/+8
| | | | Editing of bgenlocations.py isn't easy if your Python was supplied by Apple.
* Typo fixesAndrew M. Kuchling2004-07-151-4/+4
|
* Checking sys.platform for substring 'win' was breaking IDLE docs on MacKurt B. Kaiser2004-07-154-23/+39
| | | | | | | | | (darwin). Also, Mac Safari browser requires full file:// URIs. SF 900580 M EditorWindow.py M NEWS.txt M configHelpSourceEdit.py M idlever.py
* Use threading.local() instead of threading.currentThread().Raymond Hettinger2004-07-141-21/+57
|
* Factor out two unnecessary global variables.Raymond Hettinger2004-07-141-11/+4
|
* Implemented thread-local data as proposed on python-dev:Jim Fulton2004-07-144-1/+292
| | | | http://mail.python.org/pipermail/python-dev/2004-June/045785.html
* 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
|
* - 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???]
* - 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().
* 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.
* 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.
* Fix SF Bug #989066Nicholas Bastin2004-07-121-4/+4
|
* 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
* 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.
* Removed debugging print statements from TimedRotatingFileHandler, and sorted ↵Vinay Sajip2004-07-121-3/+4
| | | | list returned by glob.glob() (SF #987166)
* 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-121-85/+62
| | | | | | | | | | | | | | | | | | | | 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.