summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Whitespace normalization.Tim Peters2002-11-097-296/+296
|
* Comment out the test docstrings so we can at least tell which tests areTim Peters2002-11-091-28/+28
| | | | failing.
* Whitespace normalization.Tim Peters2002-11-097-28/+27
|
* Open at least one binary file in binary mode. This allows a few of theTim Peters2002-11-091-1/+1
| | | | bz2 tests to pass on Windows; most are still failing.
* Another attempt at making the set constructor both safe and fast. [SFGuido van Rossum2002-11-081-18/+24
| | | | bug 628246]
* [Bug #233259] Ugly traceback for DistutilsPlatformErrorAndrew M. Kuchling2002-11-081-3/+1
| | | | | | Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode.
* Fix comment typoAndrew M. Kuchling2002-11-081-1/+1
|
* This is Richie Hindle's patch:Michael W. Hudson2002-11-081-6/+31
| | | | | | | [ 631276 ] Exceptions raised by line trace function It conflicted with the patches from Armin I just checked it, so I had to so some bits by hand.
* Make strip behave as documented. Will backport to 2.2.3.Martin v. Löwis2002-11-081-2/+2
|
* _update(): Commented the new obscurity. Materialized into a tupleTim Peters2002-11-081-2/+8
| | | | | | instead of into a list for a bit of speed/space savings. Reopened the bug report too (628246), as I'm unclear on why we don't sort out the cause of the TypeError instead.
* Closes SF bug #628246.Raymond Hettinger2002-11-082-0/+27
| | | | | | | | The _update method detected mutable elements by trapping TypeErrors. Unfortunately, this masked useful TypeErrors raised by the iterable itself. For cases where it is possible for an iterable to raise a TypeError, the iterable is pre-converted to a list outside the try/except so that any TypeErrors propagate through.