summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-1937-1/+78
| | | | suggested by PEP 291.
* Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.Martin v. Löwis2002-11-197-0/+1638
|
* Add __mod__ method to UserString.Neil Schemenauer2002-11-181-0/+2
|
* check for str.__mod__Neil Schemenauer2002-11-181-0/+3
|
* check for unicode.__mod__Neil Schemenauer2002-11-181-0/+1
|
* Improve comments. Clarify docs.Raymond Hettinger2002-11-181-15/+14
| | | | | Replace "type(0)" with "int". Replace "while 1" with "while True"
* Improve DictMixin.Raymond Hettinger2002-11-182-29/+43
| | | | | | | | | | | Replaced docstring with comments. Prevents subclass contamination. Added the missing __cmp__() method and a test for __cmp__(). Used try/except style in preference to has_key() followed by a look-up. Used iteritem() where possible to save creating a long key list and to save redundant lookups. Expanded .update() to look for the most helpful methods first and gradually work down to a mininum expected interface. Expanded documentation to be more clear on how to use the class.
* Guard against error if .netrc is missing.Eric S. Raymond2002-11-171-7/+10
|
* SF Patch #638825Neal Norwitz2002-11-151-4/+7
| | | | | Fix pychecker warnings, port arg was unused (it was always the default) Need a global statement for _listener
* SF Patch #638825 logging moduleNeal Norwitz2002-11-151-3/+3
| | | | Fix pychecker warnings, remove unused imports and rename root
* Style guide reformats. I saw this test fail on a very heavily loadedTim Peters2002-11-151-6/+9
| | | | | | Win98SE box, but whatever the cause, it had scrolled off the DOS box. (There was just the "test_queue failed" summary at the end of the regrtest run.)
* SF patch #520382: Expand shelve.py to have a full dictionary interfaceRaymond Hettinger2002-11-151-0/+98
| | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
* SF patch #520382: Expand shelve.py to have a full dictionary interfaceRaymond Hettinger2002-11-152-1/+67
| | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
* Checking in Greg Ward's Optik, as optparse.py. This is the mostGuido van Rossum2002-11-141-0/+1384
| | | | | | | recent version from Greg's CVS. I've changed the module docstring, added a copyright notice, and renamed OptikError to OptParseError. Still to do are documentation and unit tests.
* Fix or disable some tests that were affected by the new C3 MROGuido van Rossum2002-11-141-20/+79
| | | | algorithm, and add some new tests for the C3 algorithm.
* This uses only one temp file at a time, so use test_support.TESTFN asTim Peters2002-11-141-2/+2
| | | | | the name instead of enduring nanny "security warnings" from tempfile.mktemp().
* From SF patch 638299 [by Vinaj]: fileConfig() now takes an optionalGuido van Rossum2002-11-141-2/+2
| | | | defaults dictionary parameter which is passed to ConfigParser.
* Update the docstring to match the code. Will backport.Neal Norwitz2002-11-141-1/+3
|
* Sync Tix from Mike Clarkson, a maintainerNeal Norwitz2002-11-141-55/+114
|
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-1434-72/+1
| | | | is often out of date
* Fix typo in commentNeal Norwitz2002-11-141-1/+1
|
* Fix docstring typo; remove 'created' lineAndrew M. Kuchling2002-11-141-3/+1
|
* [Bug #550364] Use sysconfig.get_python_version()Andrew M. Kuchling2002-11-142-3/+3
|
* [Bug #550364] Add get_python_version()Andrew M. Kuchling2002-11-141-1/+9
|
* [Bug #599248] ext module generation problemAndrew M. Kuchling2002-11-141-2/+2
| | | | | | | | | | If you have source files srcdir1/foo.c and srcdir2/foo.c, the temporary .o for both files is written to build/temp.<platform>/foo.o. This patch sets strip_dir to false for both calls to object_filename, so now the object files are written to temp.<platform>/srcdir1/foo.o and .../srcdir2/foo.o. 2.2 bugfix candidate
* Make nntplib aware of ~/.netrc credentials; now they get used if they areEric S. Raymond2002-11-131-7/+23
| | | | | | | | | | | | present and the caller has not specified a name/password pair. This change makes it less likely that a lazy coder will expose sensitive information in a word-readable script. Also, make the test a bit smarter. If NNTPSERVER is defined in the environment it will go talk to that server rather than look for a possibly nonexistent local one named 'news'. Maybe the osession initializer ought to look at NNTPSERVER rather than requiring a host arg? Must look around and see how universal this convention is first.
* Add some simple tests of the persistence hooks.Jeremy Hylton2002-11-131-0/+35
|
* Remove inst_persistent_id() WANNI (we ain't never needed it).Jeremy Hylton2002-11-132-16/+29
| | | | Add some simple tests of the persistence hooks.
* remove debugging printJeremy Hylton2002-11-131-2/+0
|
* Allow unknown keyword arguments to the Extension class, and warn about them.Andrew M. Kuchling2002-11-131-1/+14
|
* Add getstate and setstate implementation to concrete set classes.Jeremy Hylton2002-11-132-1/+21
|
* Remove some test code.Jeremy Hylton2002-11-131-33/+0
| | | | | The buggy yahoo server was fixed, and the opalgroup test files are gone.
* Fix SF bug #637789: Handle Proxy-Connection header.Jeremy Hylton2002-11-131-15/+25
| | | | Also, remove unused local variable noted by pychecker.
* Back out part of rev. 1.53, restoring the use of the string module.Andrew M. Kuchling2002-11-131-4/+6
| | | | | | The two long lines have been reflowed differently; hopefully someone on BeOS can test them. Rev. 1.53 also converted string.atoi() to int(); I've left that alone.
* Get rid of #! lines, references to usage as __main__, README.txt, andGuido van Rossum2002-11-133-36/+4
| | | | http://www.red-dove.com/python_logging.html.
* Adding Vinay Sajip's logging package.Guido van Rossum2002-11-133-0/+2190
|
* Improved clarity and thoroughness of docstring.Raymond Hettinger2002-11-131-20/+41
| | | | | | | | Added design notes in comments. Used better variable names. Eliminated the unsavory "pool[-k:]" which was an aspiring bug (for k==0). Used if/else to show the two algorithms in parallel style. Added one more test assertion.
* Fix typo in comment.Fred Drake2002-11-131-2/+2
|
* Update fileAndrew M. Kuchling2002-11-131-10/+14
|
* Docstring typo fixAndrew M. Kuchling2002-11-131-1/+1
|
* Fix SF # 635969, No error "not all arguments converted"Neal Norwitz2002-11-121-0/+8
| | | | | | | | | When mwh added extended slicing, strings and unicode became mappings. Thus, dict was set which prevented an error when doing: newstr = 'format without a percent' % string_value This fix raises an exception again when there are no formats and % with a string value.
* SF patch 637176: list.sort crasherTim Peters2002-11-122-2/+31
| | | | | | | | | | | Armin Rigo's Draconian but effective fix for SF bug 453523: list.sort crasher slightly fiddled to catch more cases of list mutation. The dreaded internal "immutable list type" is gone! OTOH, if you look at a list *while* it's being sorted now, it will appear to be empty. Better than a core dump.
* SF patch 629637: Add sample(population, k) method to the random module.Raymond Hettinger2002-11-121-2/+56
| | | | Used for random sampling without replacement.
* Allow both string and Unicode objects in levels.Martin v. Löwis2002-11-091-2/+2
|
* Don't try to convert the test filename to Unicode with -U.Martin v. Löwis2002-11-091-1/+6
|
* Search for tix subdirectories. Fixes #564729. Will backport to 2.2.Martin v. Löwis2002-11-091-9/+14
|
* I already forgot what I changed -- it wasn't important <wink>.Tim Peters2002-11-091-2/+0
|
* OK -- all tests pass on Windows now. The rest were due to 3 moreTim Peters2002-11-091-22/+5
| | | | binary-vs-text-mode screwups.
* More tests run on Windows now. Something is still wrong here, but noTim Peters2002-11-091-27/+34
| | | | idea what. Added liberal XXX explanations for the next guy.
* Many changes to get this to pass on Windows, and to make it easier toTim Peters2002-11-091-11/+45
| | | | | | | | figure out what the code was doing. The fixes were a combination of closing open files before deletion, opening files in binary mode, and plain skipping things that can't work on Windows (BaseTest.decompress uses a process gimmick that doesn't exist on Windows, and, even if it did, assumes a "bunzip2" executable is on PATH).