summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix markup in "title" attribute for \citetitle{}Fred Drake2004-11-041-1/+2
| | | | (closes SF patch #1054715; backporting to release23-maint branch)
* This commit was manufactured by cvs2svn to create tag 'r24b2'.v2.4b2cvs2svn2004-11-031-0/+1
|
* release shenanigansAnthony Baxter2004-11-034-4/+4
|
* Exclude badsyntax from compileall; adjust options to what Makefile.pre.in does.Martin v. Löwis2004-11-021-2/+3
| | | | Fixes #1049003.
* Bump buildno for 2.4b2.Martin v. Löwis2004-11-022-3/+5
|
* fix accidental commitFred Drake2004-11-021-1/+0
|
* clarify discussion of iteration in the section on the "for" statementFred Drake2004-11-021-2/+4
| | | | (SF bug #829073)
* clarify discussion of iteration in the section on the "for" statementFred Drake2004-11-021-1/+2
| | | | (SF bug #829073)
* clarify trailing comma in function argument listFred Drake2004-11-022-6/+6
| | | | (SF bug #798652)
* - show how to use file.write() with a non-string valueFred Drake2004-11-021-1/+10
| | | | | (closes SF bug #621057) - add missing whitespace around assignment operator
* release bitAnthony Baxter2004-11-021-2/+2
|
* Maintain peepholer's cumlc invariant by updating the running totalRaymond Hettinger2004-11-022-3/+9
| | | | | | everytime a LOAD_CONSTANT is encountered, created, or overwritten. Added two tests to cover cases affected by the patch.
* Bump-up block size.Raymond Hettinger2004-11-021-1/+1
|
* * 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-014-4/+112
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* gc_list_move(): Make this truly equivalent to remove+append. WhileTim Peters2004-11-011-3/+5
| | | | | | nothing in gc currently cares, the original coding could screw up if, e.g., you tried to move a node to the list it's already in, and the node was already the last in its list.
* Simplify and future proof NOP counting in the peepholer.Raymond Hettinger2004-11-011-13/+6
| | | | No longer assumes that the input is NOP free.
* Bug #1057993: Use sleep() always instead of os.utime() possibly brokenHye-Shik Chang2004-11-011-9/+5
| | | | in some platforms.
* SF bug #1030118, this should have named the email.Utils module as the oneBarry Warsaw2004-11-011-2/+2
| | | | containing these functions. (I will backport to Python 2.3)
* SF patch #1056967, changes the semantics of Template.safe_substitute() to notBarry Warsaw2004-11-014-13/+24
| | | | 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
|
* gc list function cleanup.Tim Peters2004-11-011-15/+31
| | | | | | | | | | | Introduced gc_list_move(), which captures the common gc_list_remove() + gc_list_append() sequence. In fact, no uses of gc_list_append() remained (they were all in a gc_list_move() sequence), so commented that one out. gc_list_merge(): assert that `from` != `to`; that was an implicit precondition, now verified in a debug build. Others: added comments about their purpose.
* handle_weakrefs(): Simplification -- there's no need to make a secondTim Peters2004-10-311-58/+28
| | | | pass over the unreachable weakrefs-with-callbacks to unreachable objects.
* Bug #1057535: add link in time module to calendar.timegm().Johannes Gijsbers2004-10-311-1/+2
|
* 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 patch #1056231: typo in comment (unicodeobject.h)Raymond Hettinger2004-10-311-1/+1
|
* SF 1055820: weakref callback vs gc vs threadsTim Peters2004-10-306-108/+529
| | | | | | | | 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.
* Fixed a comment and added another one.Armin Rigo2004-10-301-1/+4
|
* Adopt some peepholer suggestions from Armin Rigo:Raymond Hettinger2004-10-301-15/+20
| | | | | | | | * Use simpler, faster two pass algorithm for markblocks(). * Free the blocks variable if not NULL and exiting without change. * Verify that the rest of the compiler has not set an exception. * Make the test for tuple of constants less restrictive. * Embellish the comment for chained conditional jumps.
* add xml:id attributes wherever we generate the IDs (old patch saved up)Fred Drake2004-10-292-8/+8
|
* style consistency:Fred Drake2004-10-291-30/+32
| | | | | - always include a space after the "#" that starts a comment - easier to read imports
* Added network logging exampleVinay Sajip2004-10-291-0/+137
|
* Wrote down the invariants of some common objects whose structure isArmin Rigo2004-10-2812-25/+98
| | | | | | | | | | 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
|
* In paragraph 1, changedTim Peters2004-10-261-2/+2
| | | | | | Python software to this software ("Python")
* - 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
|
* Patch #1044395: Allow configure option --enable-shared in FreeBSD.Hye-Shik Chang2004-10-263-7/+17
| | | | (Submitted by James William Pye, Patch revised by Jiwon Seo)
* SF #737473: Show up-to-date source code in tracebacks always.Hye-Shik Chang2004-10-265-4/+60
| | | | | 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-262-1/+26
| | | | | | | 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.