summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Basic dependency checking. setup() has two new optional argumentsAnthony Baxter2004-03-225-3/+144
| | | | | | | | | | | | | | | | | | | | | | | requires and provides. requires is a sequence of strings, of the form 'packagename-version'. The dependency checking so far merely does an '__import__(packagename)' and checks for packagename.__version__ You can also leave off the version, and any version of the package will be installed. There's a special case for the package 'python' - sys.version_info is used, so requires= ( 'python-2.3', ) just works. Provides is of the same format as requires - but if it's not supplied, a provides is generated by adding the version to each entry in packages, or modules if packages isn't there. Provides is currently only used in the PKG-INFO file. Shortly, PyPI will grow the ability to accept these lines, and register will be updated to send them. There's a new command 'checkdep' command that runs these checks. For this version, only greater-than-or-equal checking is done. We'll add the ability to specify an optional operator later.
* Patch #911176: Move test function into __main__Martin v. Löwis2004-03-221-12/+12
|
* Added global runctx function to profile to fix SF Bug #716587Nicholas Bastin2004-03-223-6/+37
|
* The fix in ceval.c 2.386 allows iteration-by-iteration line tracing even inArmin Rigo2004-03-221-0/+23
| | | | single-line loops.
* Fix (really) for tight loop line eventsNicholas Bastin2004-03-221-1/+2
|
* Test for tight loop line event fix, SF bug #765624Nicholas Bastin2004-03-221-0/+25
|
* Test for lack of implicit return line eventNicholas Bastin2004-03-221-9/+27
|
* New parser. Next up, making the current parser use this parserAnthony Baxter2004-03-221-0/+362
|
* SF bug 847019 datetime.datetime initialization needs more strict checkingTim Peters2004-03-211-0/+20
| | | | | | | | | It's possible to create insane datetime objects by using the constructor "backdoor" inserted for fast unpickling. Doing extensive range checking would eliminate the backdoor's purpose (speed), but at least a little checking can stop honest mistakes. Bugfix candidate.
* Change parse_qsl() to accept control-name's with no equal sign (e.g., "name")Brett Cannon2004-03-211-1/+5
| | | | when keep_blank_values is true.
* Normalized files in test_unicode_file to eliminate failure on OSXNicholas Bastin2004-03-211-9/+29
|
* [Part of patch #909005] Added map parameter for file_dispatcher and ↵Andrew M. Kuchling2004-03-211-4/+4
| | | | dispatcher_with_send
* [Part of patch #909005] Repeating exception changed from 'raise ↵Andrew M. Kuchling2004-03-211-5/+5
| | | | socket.error, why' to just raise. Make use of connect_ex() raise socket.error with 2-tuple instead of just error code
* [Part of patch #909005] Remove Mac code for writableAndrew M. Kuchling2004-03-211-8/+2
|
* [Part of patch #909005] Set initial poll flagsAndrew M. Kuchling2004-03-211-2/+2
|
* [Part of patch #909005] Use True/FalseAndrew M. Kuchling2004-03-211-13/+13
|
* [Patch #900071] Be case-insensitive when removing 'usage:' stringAndrew M. Kuchling2004-03-211-1/+1
|
* [Part of patch #909005] Handle POLLPRI flag, and various errors cases. ↵Andrew M. Kuchling2004-03-211-1/+3
| | | | Fixes bug #887279
* SF bug 917108: warnings.py does not define _test().Tim Peters2004-03-211-8/+3
| | | | Removed the entire __name__ == '__main__' block.
* Patch #853488: Add hlist entry_configure and entry_cget methods.Martin v. Löwis2004-03-211-0/+11
|
* Remove unused instance attributes.Neil Schemenauer2004-03-211-2/+0
|
* Back out last patch that removed an entry from sys.path if it was not anBrett Cannon2004-03-211-1/+1
| | | | | existent path. Pointed out by jvr that entries could be non-file items for custom importers.
* Deal with case of when locale time values has characters that can be mistakenBrett Cannon2004-03-201-2/+14
| | | | | for regex syntax. Fixes bug #883604 .
* Limit the nesting depth of a tuple passed as the second argument toBrett Cannon2004-03-201-1/+18
| | | | isinstance() or issubclass() to the recursion limit of the interpreter.
* Fix for SF 777848.Guido van Rossum2004-03-201-6/+5
| | | | | | I've been bitten by this myself in the past half year. I hope this fix is right. I'll backport this to 2.3.
* SF patch 508730 CGIHTTPServer execfile should save cwdTim Peters2004-03-201-1/+3
| | | | | | | | | | | UNTESTED!!! This simple two-line patch has been sitting on SF for more than 2 years. I'm guessing it's because nobody knows how to test it -- I sure don't. It doesn't look like you can get to this part of the code on Unixish or Windows systems, so the "how to test it?" puzzle has more than one part. OTOH, if this is dead code, it doesn't matter either if I just broke it <wink>.
* Remove non-existent paths.Brett Cannon2004-03-201-1/+1
|
* Fix how line endings were handled when iterating over a .pth file by strippingBrett Cannon2004-03-201-2/+1
| | | | all whitespace at the end of the path line.
* test_email: comment out two fail-test cases that no longer fail with the newThomas Wouters2004-03-201-25/+27
| | | | | parser -- for now. Failure behaviour of the new parser(s) will change in any case, so this will be revisited later anyway.
* Speed HMAC.copy() by installing a secret backdoor argument toTim Peters2004-03-201-1/+11
| | | | | | HMAC.__init__(). Adapted from SF patch 895445 "hmac.HMAC.copy() speedup" by Trevor Perrin, who reported that this approach increased throughput of his hmac-intensive app by 30%.
* Merge in Anthony's new parser code, from the anthony-parser-branch:Thomas Wouters2004-03-201-128/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > ---------------------------- > revision 1.20.4.4 > date: 2003/06/12 09:14:17; author: anthonybaxter; state: Exp; lines: +13 -6 > preamble is None when missing, not ''. > Handle a couple of bogus formatted messages - now parses my main testsuite. > Handle message/external-body. > ---------------------------- > revision 1.20.4.3 > date: 2003/06/12 07:16:40; author: anthonybaxter; state: Exp; lines: +6 -4 > epilogue-processing is now the same as the old parser - the newline at the > end of the line with the --endboundary-- is included as part of the epilogue. > Note that any whitespace after the boundary is _not_ part of the epilogue. > ---------------------------- > revision 1.20.4.2 > date: 2003/06/12 06:39:09; author: anthonybaxter; state: Exp; lines: +6 -4 > message/delivery-status fixed. > HeaderParser fixed. > ---------------------------- > revision 1.20.4.1 > date: 2003/06/12 06:08:56; author: anthonybaxter; state: Exp; lines: +163 -129 > A work-in-progress snapshot of the new parser. A couple of known problems: > > - first (blank) line of MIME epilogues is being consumed > - message/delivery-status isn't quite right > > It still needs a lot of cleanup, but right now it parses a whole lot of > badness that the old parser failed on. I also need to think about adding > back the old 'strict' flag in some way. > =============================================================================
* commit the portion of PyXML patch #919008 that is relevant to theFred Drake2004-03-202-2/+42
| | | | | | | standard library: str() of xml.sax.SAXParseException should not fail if the line and/or column number returned by the locator are None (tests added)
* Add a new unicode codec: ptcp154 (Kazakh)Hye-Shik Chang2004-03-192-0/+168
|
* * supply a more useful error message when append() is called on theGregory P. Smith2004-03-161-2/+8
| | | | | wrong type of database in dbshelve. * fix a typo in the exception name when checking args
* bugfix for people executing test_all to run the test suite. (call theGregory P. Smith2004-03-161-1/+1
| | | | correct function)
* 1. Make builtin foreground Royal Purple instead of Barney Purple.Kurt B. Kaiser2004-03-162-27/+32
| | | | | | | 2. Touch up help.txt M config-highlight.def M help.txt
* Port test_binascii.py to PyUnit and enhance tests.Walter Dörwald2004-03-152-152/+149
| | | | | Code coverage for binascii.c is at 92%. From SF patch #736962.
* 1. Bug in Patch 805830 fixed by Nigel RoweKurt B. Kaiser2004-03-152-22/+26
| | | | | | | | 2. Convert 1/0 to True/False 3. Fix a couple of long lines M ColorDelegator.py M NEWS.txt
* Add missing docstrings.Raymond Hettinger2004-03-141-0/+67
|
* SF feature request #686323: Minor array module enhancementsRaymond Hettinger2004-03-141-0/+7
| | | | | | | array.extend() now accepts iterable arguments implements as a series of appends. Besides being a user convenience and matching the behavior for lists, this the saves memory and cycles that would be used to create a temporary array object.
* Two issues spotted by Ronald OUssoren:Jack Jansen2004-03-134-3/+2234
| | | | | | - there were no accessor functions for the global per-database fields - packages and their dependencies were installed in order in stead of in reverse order.
* Don't use "dict" as a variable, it shadows the builtin. Spotted byJack Jansen2004-03-131-13/+13
| | | | Bob Ippolito.
* Force option should be applied to a single package, not recursivelyJack Jansen2004-03-131-1/+1
| | | | to its dependencies. Fixes #733819.
* SF patch #911431: robot.txt must be robots.txtRaymond Hettinger2004-03-131-2/+2
| | | | (Contributed by George Yoshida.)
* SF bug #910986: copy.copy fails for array.arrayRaymond Hettinger2004-03-131-0/+7
| | | | Added support for the copy module.
* - Added a downloader using urllib2 in stead of curl, based on codeJack Jansen2004-03-111-51/+137
| | | | | | | donated by Kevin Ollivier. This is now the default downloader. - Added a watcher mechanism, whereby downloaders and unpackers (and, later builders) can give status feedback to the user. When running pimp as a command line tool in verbose mode print this output.
* Make test_coercion.py less sensitive to platform fp quirks. ClosesNeil Schemenauer2004-03-102-333/+348
| | | | SF bug #678265.
* Tidied up the implementations of reversed (including the custom onesRaymond Hettinger2004-03-101-2/+2
| | | | | | | | | | | | | | | | | for xrange and list objects). * list.__reversed__ now checks the length of the sequence object before calling PyList_GET_ITEM() because the mutable could have changed length. * all three implementations are now tranparent with respect to length and maintain the invariant len(it) == len(list(it)) even when the underlying sequence mutates. * __builtin__.reversed() now frees the underlying sequence as soon as the iterator is exhausted. * the code paths were rearranged so that the most common paths do not require a jump.
* Eliminate the double reverse option. It's only use caseRaymond Hettinger2004-03-101-4/+1
| | | | was academic and it was potentially confusing to use.
* Remove calls to currentThread() in _Condition methods that were side-effect.Brett Cannon2004-03-081-2/+0
| | | | | | | | | Side-effects were deemed unnecessary and were causing problems at shutdown time when threads were catching exceptions at start time and then triggering exceptions trying to call currentThread() after gc'ed. Masked the initial exception which was deemed bad. Fixes bug #754449 .