summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-1037-37/+37
|
* Avoid a linker warning: MSVC 7 doesn't support /pdb:None, the debugThomas Heller2004-11-101-3/+8
| | | | info will always be in a .pdb file.
* SF patch #1062279: deque pickling problemsRaymond Hettinger2004-11-091-4/+36
| | | | | | | (Contributed by Dima Dorfman.) * Support pickling of dictionaries in instances of deque subclasses. * Support pickling of recursive deques.
* SF 1062353: set pickling problemsRaymond Hettinger2004-11-091-3/+9
| | | | Support automatic pickling of dictionaries in instance of set subclasses.
* And delete a useless comment.Tim Peters2004-11-081-1/+0
|
* _OutputRedirectingPdb.trace_dispatch(): Return the base class'sTim Peters2004-11-081-4/+5
| | | | trace_dispatch() result in a more obvious, and more robust way.
* test_doctest.py test_pdb_set_trace_nested(): A new test from Jim FultonTim Peters2004-11-082-6/+92
| | | | | | | | | showing that doctest's pdb.set_trace() support was dramatically broken. doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace function instead of (implicitly) None. Else interaction with pdb was bizarre, noticing only 'call' events. Amazingly, the existing set_trace() tests didn't care.
* test for fixedness of bug #1057835.Michael W. Hudson2004-11-081-0/+2
| | | | (thanks to Raymond for the prod).
* Fix bugMichael W. Hudson2004-11-081-2/+2
| | | | [ 1057835 ] compiler.transformer, "from module import *"
* SF #1062190. Removed an assertion that rendered trace.py unnecessarilyRaymond Hettinger2004-11-081-1/+0
| | | | inflexibile.
* Stop printing listdir bytestring output, as the precise list of stringsMartin v. Löwis2004-11-072-3/+2
| | | | returned depends on the filesystem encoding.
* Try a different filename if the Latin-1 file name cannotMartin v. Löwis2004-11-071-0/+17
| | | | be represented in the file system. Fixes #989338.
* Patch #1061931 / bug #971872: factor out part of spillproperties, soJohannes Gijsbers2004-11-071-30/+55
| | | | | properties are also documented if help(Class.<property>) is called instead of help(Class).
* Fix for SF bug 988120 via patch 1061941.Jeremy Hylton2004-11-071-2/+4
| | | | If read() returned less than the number of bytes request, the full amount was subtracted from length instead of the actually read amount.
* Patch #1061904 / bug #878275: give a nicer error message when someoneJohannes Gijsbers2004-11-071-0/+2
| | | | accidentally derives from TestSuite instead of TestCase.
* When using shell=True on Windows, don't display a shell window by default. ↵Peter Astrand2004-11-071-11/+14
| | | | Fixes #1057061.
* Bug #1055168: calling pdb.set_trace() calls Bdb.set_trace, which madeJohannes Gijsbers2004-11-072-4/+8
| | | | | | | the debugger enter inside pdb.set_trace. Patch #1061767: make pdb.set_trace enter enter at the stack frame calling pdb.set_trace().
* Whitespace normalization.Tim Peters2004-11-071-1/+1
|
* Essentially SF patch 1061679: add missing __all__ to pickletools.py.Tim Peters2004-11-062-0/+5
| | | | Harmless.
* Don't choke on modes like rb or wb.Raymond Hettinger2004-11-061-1/+1
|
* get_boundary(): Fix for SF bug #1060941. RFC 2046 says boundaries may beginBarry Warsaw2004-11-061-1/+2
| | | | | | -- but not end -- with whitespace. I will backport to Python 2.3.
* test_boundary_with_leading_space(): Test case for SF bug #1060941. RFC 2046Barry Warsaw2004-11-061-0/+19
| | | | | | says boundaries may begin -- but not end -- with whitespace. I will backport to Python 2.3.
* post-releaseAnthony Baxter2004-11-041-0/+5
|
* Fix bug 1052242. Also includes rewrite of test case using unittest andSkip Montanaro2004-11-042-54/+100
| | | | avoiding use of popen.
* release shenanigansAnthony Baxter2004-11-032-2/+2
|
* Maintain peepholer's cumlc invariant by updating the running totalRaymond Hettinger2004-11-021-3/+5
| | | | | | everytime a LOAD_CONSTANT is encountered, created, or overwritten. Added two tests to cover cases affected by the patch.
* * Bumped up the sleep() delay to four seconds so this test will runRaymond Hettinger2004-11-011-6/+9
| | | | | | reliably on WinME with FAT32. * Native speaker rewrite of the comment block. * Removed unnecessary backslashes from the multi-line function defintions.
* Add error checks for the bz2, cStringIO and operator modules.Walter Dörwald2004-11-013-0/+108
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* Bug #1057993: Use sleep() always instead of os.utime() possibly brokenHye-Shik Chang2004-11-011-9/+5
| | | | in some platforms.
* SF patch #1056967, changes the semantics of Template.safe_substitute() to notBarry Warsaw2004-11-012-11/+10
| | | | raise a ValueError for dangling delimiters (the delimiter itself is returned).
* test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME.Tim Peters2004-11-011-7/+13
|
* Bug #1048941: shutil.rmtree error handling was always brokenJohannes Gijsbers2004-10-312-30/+61
| | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this.
* SF 1055820: weakref callback vs gc vs threadsTim Peters2004-10-301-0/+199
| | | | | | | | In cyclic gc, clear weakrefs to unreachable objects before allowing any Python code (weakref callbacks or __del__ methods) to run. This is a critical bugfix, affecting all versions of Python since weakrefs were introduced. I'll backport to 2.3.
* Wrote down the invariants of some common objects whose structure isArmin Rigo2004-10-281-2/+11
| | | | | | | | | | exposed in header files. Fixed a few comments in these headers. As we might have expected, writing down invariants systematically exposed a (minor) bug. In this case, function objects have a writeable func_code attribute, which could be set to code objects with the wrong number of free variables. Calling the resulting function segfaulted the interpreter. Added a corresponding test.
* Trigger a few error cases in Modules/_codecsmodule.c.Walter Dörwald2004-10-281-0/+14
|
* Fix bug of implementation of algorithm for calculating the date from year, weekBrett Cannon2004-10-282-13/+30
| | | | | | | | of the year, and day of the week. Was not taking into consideration properly the issue of when %U is used for the week of the year but the year starts on Monday. Closes bug #1045381 again.
* Fix [1055540 ] bdist_wininst broken for pure Python distributionsMark Hammond2004-10-271-14/+15
|
* SF patch #1053375.Raymond Hettinger2004-10-271-63/+18
| | | | | | | | (Contributed by Facundo Batista.) Code simplification by eliminating the unnecessary and error-prone convolutions for the previously weird sign convention in _WorkRep(). Makes the code more understandable, more reliable, and a bit faster.
* Add a comment explains why we should modify mtime here.Hye-Shik Chang2004-10-271-2/+4
|
* Removed newly redundant embedded import.Tim Peters2004-10-271-1/+0
|
* Whitespace normalization.Tim Peters2004-10-272-5/+5
|
* Paper over bug 1054615 by passing sane values to os.utime().Tim Peters2004-10-271-2/+5
| | | | | | | | | | The underlying bug still exists, but also existed in 2.3.4: import.c's load_source_module() returns NULL if PyOS_GetLastModificationTime() returns -1, but PyOS_GetLastModificationTime() doesn't set any exception when it returns -1, and neither does load_source_module() when it gets back -1. This leads to "SystemError: NULL result without error in PyObject_Call" on an import that fails in this way.
* Update optparse module and test suite to Optik 1.5a2.Greg Ward2004-10-272-210/+237
|
* Very few little improvements.Facundo Batista2004-10-261-10/+8
|
* - Added tests for the string load/dump function.Just van Rossum2004-10-261-14/+113
| | | | | | - Added a chunk of plist data as generated by Cocoa's NSDictionary and verify we output the same (including formatting) - Changed the "literal" plist code to match the raw test data
* Made <data> output match Apple's exactly. To do that I had to add a customJust van Rossum2004-10-261-6/+21
| | | | | version of base64.encodestring() so I could control the line length of the base64 output.
* also escape '>', to closer match Apple's plist outputJust van Rossum2004-10-261-0/+1
|
* SF #737473: Show up-to-date source code in tracebacks always.Hye-Shik Chang2004-10-263-2/+54
| | | | | And add an optional argument 'filename' to linecache.checkcache() to enable checking caches per-file.
* SF bug #1053819: Segfault in tuple_of_constantsRaymond Hettinger2004-10-261-0/+17
| | | | | | | Peepholer could be fooled into misidentifying a tuple_of_constants. Added code to count consecutive occurrences of LOAD_CONST. Use the count to weed out the misidentified cases. Added a unittest.
* Deprecating Dict class; going through a few hoops to get the warnings right.Just van Rossum2004-10-261-20/+29
|