summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Make the fieldnames argument optional in the DictReader. If self.fieldnamesSkip Montanaro2003-10-032-2/+15
| | | | | | | | | is None, the next row read is used as the fieldnames. In the common case, this means the programmer doesn't need to know the fieldnames ahead of time. The first row of the file will be used. In the uncommon case, this means the programmer can set the reader's fieldnames attribute to None at any time and have the next row read as the next set of fieldnames, so a csv file can contain several "sections", each with different fieldnames.
* bsddb3 4.2.2, adds DBCursor.get_current_size() method to return the lengthGregory P. Smith2003-10-011-36/+36
| | | | of the current value without reading the value itself.
* Removed redundant 'return' statement. (Issue 813159)Steve Purcell2003-09-301-2/+1
|
* Use a threadsafe private DBEnv for each bsddb compatibility interfaceGregory P. Smith2003-09-271-3/+10
| | | | | | | db that is opened. DB_THREAD and DB_INIT_LOCK allow for multithreaded access. DB_PRIVATE prevents the DBEnv from using the filesystem (making it only usable by this process; and in this implementation using one DBEnv per bsddb database)
* Fix typo in the comments.Raymond Hettinger2003-09-241-1/+1
|
* Add more identity tests.Raymond Hettinger2003-09-241-0/+11
|
* Let IDLE use the HTMLHelp docs on Windows, if found.Thomas Heller2003-09-231-2/+6
| | | | Already 'backported' to release23-maint.
* Added codec for bz2 compression.Raymond Hettinger2003-09-232-0/+67
|
* Topical change: use 'startswith()' to identify test methods with aSteve Purcell2003-09-231-2/+2
| | | | given prefix rather than comparing a slice.
* PlaySoundTest.test_alias_nofallback(): Simplified the coding by usingTim Peters2003-09-221-7/+2
| | | | | | assertRaises. NOT a bugfix candidate.
* PlaySoundTest.test_alias_fallback(): Disabled this test, and explainedTim Peters2003-09-221-1/+12
| | | | | | | | | | why in a new comment. My home Win98SE box is one of the "real systems" alluded to (my system "default sound" appears to have vanished sometime in the last month, that's certainly not a Python bug, and the MS PlaySound docs are correct in their explanation of what happens then). Bugfix candidate. If someone can still sneak it into 2.3.1, that would be good.
* Avoid list as a variable name.Walter Dörwald2003-09-221-10/+10
|
* - Fixed loading of tests by name when name refers to unboundSteve Purcell2003-09-221-40/+58
| | | | | | | | | | | | method (PyUnit issue 563882, thanks to Alexandre Fayolle) - Ignore non-callable attributes of classes when searching for test method names (PyUnit issue 769338, thanks to Seth Falcon) - New assertTrue and assertFalse aliases for comfort of JUnit users - Automatically discover 'runTest()' test methods (PyUnit issue 469444, thanks to Roeland Rengelink) - Dropped Python 1.5.2 compatibility, merged appropriate shortcuts from Python CVS; should work with Python >= 2.1. - Removed all references to string module by using string methods instead
* Improve and expand identity tests.Raymond Hettinger2003-09-211-11/+18
|
* Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; newGregory P. Smith2003-09-2120-66/+70
| | | | | | | | | | features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface has not yet been wrapped in an object. Adds support for building and installing bsddb3 in python2.3 that has an older version of this module installed as bsddb without conflicts. The pybsddb.sf.net build/packaged version of the module uses a dynamicly loadable module called _pybsddb rather than _bsddb.
* Maintain backwards compatibility with python < 2.3 by dynamicallyGregory P. Smith2003-09-201-18/+30
| | | | adding the iterator interface for python >= 2.3.
* SF patch 809915: Fix bogus address to hopefully always break.Tim Peters2003-09-201-1/+8
| | | | | | | test_bad_address(): Recover from that VeriSign thought it would boost its corporate coffers to start resolving http://www.sadflkjsasadf.com/. Bugfix candidate -- although the bug is more VeriSign's than Python's!
* test__locale (two underscores) can't pass on Windows: RADIXCHAR doesn'tTim Peters2003-09-201-0/+1
| | | | | exist, and neither do any of the specific 5-letter locale names the test is looking for.
* Patch #707167: Pass dircache exceptions to the caller. Fixes #682813.Martin v. Löwis2003-09-202-9/+3
| | | | Not backported because of behaviour change.
* Patch #808362: Fix typos.Martin v. Löwis2003-09-201-1/+1
|
* Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3.Martin v. Löwis2003-09-201-1/+1
|
* Patch #805976: Add DOTBOX and UNDERLINE.Martin v. Löwis2003-09-201-0/+5
|
* SF patch #806246: use basestring where possibleRaymond Hettinger2003-09-173-3/+3
| | | | (Contributed by George Yoshida.)
* Test __all__ for unittest.pyRaymond Hettinger2003-09-161-1/+2
|
* Explicitly define public symbols via __all__: see discussion with RaymondSteve Purcell2003-09-151-0/+10
| | | | | Hettinger in comments for issue 804115 https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
* * Converted test to unittest format.Raymond Hettinger2003-09-131-85/+158
| | | | * Expanded coverage.
* The previous change works much faster (one lookup per key) whenRaymond Hettinger2003-09-131-0/+9
| | | | iteritems() is defined.
* SF bug #804115: bad argument handling(unittest.py)Raymond Hettinger2003-09-131-2/+2
|
* Simplify doctest of tee().Raymond Hettinger2003-09-131-6/+2
|
* Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632.Martin v. Löwis2003-09-121-0/+3
| | | | Backported to 2.3.
* Patch #790000: Allow os.access to handle Unicode file name.Martin v. Löwis2003-09-121-0/+1
|
* SF #662923Raymond Hettinger2003-09-122-7/+28
| | | | | | Add support for the iterator and mapping protocols. For Py2.3, this was done for shelve, dumbdbm and other mapping objects, but not for bsddb and dbhash which were inadvertently missed.
* Oops. Really fix the indentation problem this time.Jeremy Hylton2003-09-101-13/+13
|
* Fix inconsistent mix of tabs and spaces that caused test to fail.Jeremy Hylton2003-09-101-5/+4
|
* display link to module docs when it looks like the object module is a coreSkip Montanaro2003-09-101-1/+47
| | | | module
* Python Bug 775061Kurt B. Kaiser2003-09-103-97/+2
| | | | | | 1. Remove "idle" script, it lives in Tools/scripts/ now. 2. Remove shebang from idle.py, should be called explicitly. 3. Remove obsolete test code from rpc.py; needs unit test.
* Add an example to address a common question of how to split iterators.Raymond Hettinger2003-09-081-4/+30
|
* Set the warnings stacklevel to two.Raymond Hettinger2003-09-081-2/+2
|
* SF bug 801631: file.truncate fault on windows.Tim Peters2003-09-071-0/+28
| | | | | | | | | | | | | | | | | file_truncate(): C doesn't define what fflush(fp) does if fp is open for update, and the preceding I/O operation on fp was input. On Windows, fflush() actually changes the current file position then. Because Windows doesn't support ftruncate() directly, this not only caused Python's file.truncate() to change the file position (contra our docs), it also caused the file not to change size. Repaired by getting the initial file position at the start, restoring it at the end, and tossing all the complicated micro-efficiency checks trying to avoid "provably unnecessary" seeks. file.truncate() can't be a frequent operation, and seeking to the current file position has got to be cheap anyway. Bugfix candidate.
* **kwds arg was missing from __init__ for Dict{Reader,Writer} classes.Skip Montanaro2003-09-062-4/+11
| | | | will backport.
* SF bug #801342: Bug (documentation or real, your choice) in random.sample.Raymond Hettinger2003-09-062-0/+14
| | | | | | | | | | | | random.sample() uses one of two algorithms depending on the ratio of the sample size to the population size. One of the algorithms accepted any iterable population argument so long as it defined __len__(). The other had a stronger requirement that the population argument be indexable. While it met the documentation specifications which insisted that the population argument be a sequence, it made random.sample() less usable with sets. So, the second algorithm was modified to coerce non-indexable iterables and dictionaries into a tuple before proceeding.
* SF bug #800796: Difference between hash() and __hash__()Raymond Hettinger2003-09-051-0/+5
| | | | slice(5).__hash__() now raises a TypeError.
* Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).Martin v. Löwis2003-09-041-0/+34
| | | | Will backport to 2.3.
* Catch locale.error as well. Fixes #788378. Will backport to 2.3.Martin v. Löwis2003-09-031-1/+1
|
* test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.Barry Warsaw2003-09-031-0/+7
| | | | Backport candidate.
* A fix for parsing parameters when there are semicolons inside theBarry Warsaw2003-09-031-1/+18
| | | | | | | | | | | quotes. Fixes SF bug #794466, with the essential patch provided by Stuart D. Gathman. Specifically, _parseparam(), _get_params_preserve(): Use the parsing function that takes quotes into account, as given (essentially) in the bug report's test program. Backport candidate.
* use the long names for re compilation options; this makes it easier toFred Drake2003-09-021-1/+1
| | | | figure out what the code is doing
* Modernize code a bit: use isinstance instead of type(); return True/FalseAndrew M. Kuchling2003-09-021-4/+7
|
* [Patch #759208] Fix has_key emulation to not raise KeyErrorAndrew M. Kuchling2003-09-021-1/+3
|
* Only apply case-insensitivity test on appropriate platforms.' test_filecmp.pyRaymond Hettinger2003-09-021-2/+6
|