Skip Montanaro [Thu, 4 Nov 2004 04:31:30 +0000 (04:31 +0000)]
Fix bug
1052242. Also includes rewrite of test case using unittest and
avoiding use of popen.
Fred Drake [Thu, 4 Nov 2004 03:23:04 +0000 (03:23 +0000)]
fix markup in "title" attribute for \citetitle{}
(closes SF patch #
1054715; backporting to release23-maint branch)
cvs2svn [Wed, 3 Nov 2004 06:21:37 +0000 (06:21 +0000)]
This commit was manufactured by cvs2svn to create tag 'r24b2'.
Anthony Baxter [Wed, 3 Nov 2004 06:21:37 +0000 (06:21 +0000)]
release shenanigans
Martin v. Löwis [Tue, 2 Nov 2004 22:59:56 +0000 (22:59 +0000)]
Exclude badsyntax from compileall; adjust options to what Makefile.pre.in does.
Fixes #
1049003.
Martin v. Löwis [Tue, 2 Nov 2004 22:28:07 +0000 (22:28 +0000)]
Bump buildno for 2.4b2.
Fred Drake [Tue, 2 Nov 2004 19:20:43 +0000 (19:20 +0000)]
fix accidental commit
Fred Drake [Tue, 2 Nov 2004 19:18:20 +0000 (19:18 +0000)]
clarify discussion of iteration in the section on the "for" statement
(SF bug #829073)
Fred Drake [Tue, 2 Nov 2004 19:18:20 +0000 (19:18 +0000)]
clarify discussion of iteration in the section on the "for" statement
(SF bug #829073)
Fred Drake [Tue, 2 Nov 2004 18:57:33 +0000 (18:57 +0000)]
clarify trailing comma in function argument list
(SF bug #798652)
Fred Drake [Tue, 2 Nov 2004 18:24:26 +0000 (18:24 +0000)]
- show how to use file.write() with a non-string value
(closes SF bug #621057)
- add missing whitespace around assignment operator
Anthony Baxter [Tue, 2 Nov 2004 13:03:54 +0000 (13:03 +0000)]
release bit
Raymond Hettinger [Tue, 2 Nov 2004 04:20:10 +0000 (04:20 +0000)]
Maintain peepholer's cumlc invariant by updating the running total
everytime a LOAD_CONSTANT is encountered, created, or overwritten.
Added two tests to cover cases affected by the patch.
Raymond Hettinger [Tue, 2 Nov 2004 02:11:35 +0000 (02:11 +0000)]
Bump-up block size.
Raymond Hettinger [Mon, 1 Nov 2004 22:27:14 +0000 (22:27 +0000)]
* Bumped up the sleep() delay to four seconds so this test will run
reliably on WinME with FAT32.
* Native speaker rewrite of the comment block.
* Removed unnecessary backslashes from the multi-line function defintions.
Walter Dörwald [Mon, 1 Nov 2004 17:10:19 +0000 (17:10 +0000)]
Add error checks for the bz2, cStringIO and operator modules.
Add function names to various PyArg_ParseTuple calls in bz2module.c.
Tim Peters [Mon, 1 Nov 2004 16:39:57 +0000 (16:39 +0000)]
gc_list_move(): Make this truly equivalent to remove+append. While
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.
Raymond Hettinger [Mon, 1 Nov 2004 15:19:11 +0000 (15:19 +0000)]
Simplify and future proof NOP counting in the peepholer.
No longer assumes that the input is NOP free.
Hye-Shik Chang [Mon, 1 Nov 2004 08:26:09 +0000 (08:26 +0000)]
Bug #
1057993: Use sleep() always instead of os.utime() possibly broken
in some platforms.
Barry Warsaw [Mon, 1 Nov 2004 03:59:24 +0000 (03:59 +0000)]
SF bug #
1030118, this should have named the email.Utils module as the one
containing these functions. (I will backport to Python 2.3)
Barry Warsaw [Mon, 1 Nov 2004 03:52:43 +0000 (03:52 +0000)]
SF patch #
1056967, changes the semantics of Template.safe_substitute() to not
raise a ValueError for dangling delimiters (the delimiter itself is returned).
Tim Peters [Mon, 1 Nov 2004 02:40:52 +0000 (02:40 +0000)]
test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME.
Tim Peters [Mon, 1 Nov 2004 01:39:08 +0000 (01:39 +0000)]
gc list function cleanup.
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.
Tim Peters [Sun, 31 Oct 2004 22:12:43 +0000 (22:12 +0000)]
handle_weakrefs(): Simplification -- there's no need to make a second
pass over the unreachable weakrefs-with-callbacks to unreachable objects.
Johannes Gijsbers [Sun, 31 Oct 2004 12:19:34 +0000 (12:19 +0000)]
Bug #
1057535: add link in time module to calendar.timegm().
Johannes Gijsbers [Sun, 31 Oct 2004 12:05:31 +0000 (12:05 +0000)]
Bug #
1048941: shutil.rmtree error handling was always broken
Rewrite rmtree again, this time without os.walk(). Error handling had been
broken since Python 2.3, and the os.walk() version inherited this.
Raymond Hettinger [Sun, 31 Oct 2004 05:46:59 +0000 (05:46 +0000)]
SF patch #
1056231: typo in comment (unicodeobject.h)
Tim Peters [Sat, 30 Oct 2004 23:09:22 +0000 (23:09 +0000)]
SF
1055820: weakref callback vs gc vs threads
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.
Armin Rigo [Sat, 30 Oct 2004 21:08:59 +0000 (21:08 +0000)]
Fixed a comment and added another one.
Raymond Hettinger [Sat, 30 Oct 2004 08:55:08 +0000 (08:55 +0000)]
Adopt some peepholer suggestions from Armin Rigo:
* 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.
Fred Drake [Fri, 29 Oct 2004 19:47:52 +0000 (19:47 +0000)]
add xml:id attributes wherever we generate the IDs (old patch saved up)
Fred Drake [Fri, 29 Oct 2004 14:35:42 +0000 (14:35 +0000)]
style consistency:
- always include a space after the "#" that starts a comment
- easier to read imports
Vinay Sajip [Fri, 29 Oct 2004 12:30:28 +0000 (12:30 +0000)]
Added network logging example
Armin Rigo [Thu, 28 Oct 2004 16:32:00 +0000 (16:32 +0000)]
Wrote down the invariants of some common objects whose structure is
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.
Walter Dörwald [Thu, 28 Oct 2004 13:04:26 +0000 (13:04 +0000)]
Trigger a few error cases in Modules/_codecsmodule.c.
Brett Cannon [Thu, 28 Oct 2004 04:49:21 +0000 (04:49 +0000)]
Fix bug of implementation of algorithm for calculating the date from year, week
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.
Mark Hammond [Wed, 27 Oct 2004 21:54:33 +0000 (21:54 +0000)]
Fix [
1055540 ] bdist_wininst broken for pure Python distributions
Raymond Hettinger [Wed, 27 Oct 2004 06:21:46 +0000 (06:21 +0000)]
SF patch #
1053375.
(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.
Hye-Shik Chang [Wed, 27 Oct 2004 03:12:05 +0000 (03:12 +0000)]
Add a comment explains why we should modify mtime here.
Tim Peters [Wed, 27 Oct 2004 02:44:10 +0000 (02:44 +0000)]
Removed newly redundant embedded import.
Tim Peters [Wed, 27 Oct 2004 02:43:25 +0000 (02:43 +0000)]
Whitespace normalization.
Tim Peters [Wed, 27 Oct 2004 02:33:15 +0000 (02:33 +0000)]
Paper over bug
1054615 by passing sane values to os.utime().
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.
Greg Ward [Wed, 27 Oct 2004 02:20:04 +0000 (02:20 +0000)]
Update optparse module and test suite to Optik 1.5a2.
Facundo Batista [Tue, 26 Oct 2004 23:38:46 +0000 (23:38 +0000)]
Very few little improvements.
Tim Peters [Tue, 26 Oct 2004 14:38:48 +0000 (14:38 +0000)]
In paragraph 1, changed
Python software
to
this software ("Python")
Just van Rossum [Tue, 26 Oct 2004 11:02:08 +0000 (11:02 +0000)]
- Added tests for the string load/dump function.
- 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
Just van Rossum [Tue, 26 Oct 2004 10:30:55 +0000 (10:30 +0000)]
Made <data> output match Apple's exactly. To do that I had to add a custom
version of base64.encodestring() so I could control the line length of the
base64 output.
Just van Rossum [Tue, 26 Oct 2004 10:11:00 +0000 (10:11 +0000)]
also escape '>', to closer match Apple's plist output
Hye-Shik Chang [Tue, 26 Oct 2004 09:53:46 +0000 (09:53 +0000)]
Patch #
1044395: Allow configure option --enable-shared in FreeBSD.
(Submitted by James William Pye, Patch revised by Jiwon Seo)
Hye-Shik Chang [Tue, 26 Oct 2004 09:16:42 +0000 (09:16 +0000)]
SF #737473: Show up-to-date source code in tracebacks always.
And add an optional argument 'filename' to linecache.checkcache()
to enable checking caches per-file.
Raymond Hettinger [Tue, 26 Oct 2004 08:59:14 +0000 (08:59 +0000)]
SF bug #
1053819: Segfault in tuple_of_constants
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.
Just van Rossum [Tue, 26 Oct 2004 07:38:16 +0000 (07:38 +0000)]
Deprecating Dict class; going through a few hoops to get the warnings right.
Just van Rossum [Tue, 26 Oct 2004 07:20:26 +0000 (07:20 +0000)]
- Removed Date class. We don't really need it for b/w compatibility since
a) the functionality depended on PyXML before and b) hardly worked to
begin with.
- Instead, output and require upon input datetime.datetime objects.
Just van Rossum [Tue, 26 Oct 2004 06:50:50 +0000 (06:50 +0000)]
- added two more convenience functions: readPlistFromString() and
writePlistToString()
- use these two in the resource functions.
- Tweaked module doc string.
Raymond Hettinger [Tue, 26 Oct 2004 03:53:35 +0000 (03:53 +0000)]
SF
1053956: help() not in tutorial index
Raymond Hettinger [Tue, 26 Oct 2004 01:52:37 +0000 (01:52 +0000)]
SF bug #
1054139: serious string hashing error in 2.4b1
_PyString_Resize() readied strings for mutation but did not invalidate
the cached hash value.
Fred Drake [Mon, 25 Oct 2004 21:35:17 +0000 (21:35 +0000)]
add missing line break
Just van Rossum [Mon, 25 Oct 2004 16:10:53 +0000 (16:10 +0000)]
Updated doc strings.
Just van Rossum [Mon, 25 Oct 2004 16:09:10 +0000 (16:09 +0000)]
Deprecate Plist class
Just van Rossum [Mon, 25 Oct 2004 16:04:20 +0000 (16:04 +0000)]
Removed superfluous **kwargs constructor cruft: this class predates
the dict(**kwargs) feature.
Fred Drake [Mon, 25 Oct 2004 16:03:49 +0000 (16:03 +0000)]
- improve the explanation of the -*- coding: ... -*- marker
- fix a minor formatting nit that affected the typeset version
Just van Rossum [Mon, 25 Oct 2004 15:10:42 +0000 (15:10 +0000)]
Patch from Bob Ippolito, slighly edited:
[
1052399 ] plistlib: add plst resource functionality, fix bugs
Tim Peters [Mon, 25 Oct 2004 03:19:41 +0000 (03:19 +0000)]
Whitespace normalization.
Tim Peters [Sun, 24 Oct 2004 23:45:42 +0000 (23:45 +0000)]
format_paragraph_event(): Patch 961387 introduced a bug here, causing
the indentation of a comment block to be ignored when reformatting the
block, leading to overly long reformatted lines (too wide by an amount
equal to the indentation width). Looks like a typo in the original
patch, a 1-character repair.
Raymond Hettinger [Sun, 24 Oct 2004 00:32:24 +0000 (00:32 +0000)]
SF bug #
1052503: pdb runcall should accept keyword arguments
Raymond Hettinger [Sun, 24 Oct 2004 00:10:06 +0000 (00:10 +0000)]
SF bug #
1048870: call arg of lambda not updating
Tim Peters [Sat, 23 Oct 2004 03:48:57 +0000 (03:48 +0000)]
Converted some stinking hard tabs. Left the fragrant hard tabs alone.
Tim Peters [Sat, 23 Oct 2004 03:43:54 +0000 (03:43 +0000)]
Move to version 2 of the PSF license, approved by the Board earlier today.
Vinay Sajip [Fri, 22 Oct 2004 21:43:15 +0000 (21:43 +0000)]
Added example of multiple destinations
Brett Cannon [Fri, 22 Oct 2004 06:22:54 +0000 (06:22 +0000)]
Fix minor reST error in Misc/NEWS.
Applies patch #
1051866. Thanks Felix Wiemann.
Sean Reifschneider [Thu, 21 Oct 2004 23:35:45 +0000 (23:35 +0000)]
Latest version for beta 1.
Vinay Sajip [Thu, 21 Oct 2004 21:24:27 +0000 (21:24 +0000)]
Fixed bug in handling of args in LogRecord.__init__.
Peter Astrand [Thu, 21 Oct 2004 19:28:34 +0000 (19:28 +0000)]
Removed test_close_fds, because it's too unreliable. We simply cannot
know that the newly-started Python process only has 3 filedescriptors
open. Fixes bug
1048808.
Andrew M. Kuchling [Wed, 20 Oct 2004 11:56:15 +0000 (11:56 +0000)]
Add item
Andrew M. Kuchling [Wed, 20 Oct 2004 11:48:42 +0000 (11:48 +0000)]
[Patch #
1043972, for bug #
1017553] filemode() returns an incorrect value for the mode 07111
Andrew M. Kuchling [Wed, 20 Oct 2004 11:47:01 +0000 (11:47 +0000)]
Add test case for bug #
1017553
Fred Drake [Wed, 20 Oct 2004 11:08:35 +0000 (11:08 +0000)]
when only using half of the return value of os.path.split(), use
os.path.dirname() or os.path.basename() instead
Vinay Sajip [Wed, 20 Oct 2004 08:39:40 +0000 (08:39 +0000)]
Changed handling of args in LogRecord.__init__.
Raymond Hettinger [Wed, 20 Oct 2004 08:21:57 +0000 (08:21 +0000)]
SF bug #902037: relative on-disk SYSTEM id handling is incorrect
Raymond Hettinger [Wed, 20 Oct 2004 08:21:19 +0000 (08:21 +0000)]
SF bug #902037: relative on-disk SYSTEM id handling is incorrect
(Contributed by Bob Ippolito.)
backport candidate.
Raymond Hettinger [Wed, 20 Oct 2004 07:17:16 +0000 (07:17 +0000)]
SF patch #
1038388: __main__ for whichdb.py
(Contributed by Oleg Broytmann.)
Raymond Hettinger [Wed, 20 Oct 2004 06:58:28 +0000 (06:58 +0000)]
SF bug #
1048728: Bug fixes and cleanup for decimal.py
(Contributed by Neal Norwitz. Reviewed by Facundo Bastista.)
Andrew M. Kuchling [Tue, 19 Oct 2004 19:56:55 +0000 (19:56 +0000)]
Delete empty sections in beta1 news
Andrew M. Kuchling [Tue, 19 Oct 2004 19:54:41 +0000 (19:54 +0000)]
Add item
Andrew M. Kuchling [Tue, 19 Oct 2004 19:50:23 +0000 (19:50 +0000)]
Remove the current version of zlib (we'll just have to keep updating it); rewrite following sentence to make sense without the previous one
Andrew M. Kuchling [Tue, 19 Oct 2004 19:39:02 +0000 (19:39 +0000)]
Typo fixes, and a minor edit to clarify a sentence
Andrew M. Kuchling [Tue, 19 Oct 2004 19:36:09 +0000 (19:36 +0000)]
Display helpful message; print repr() of return value so the whitespace is clearer
Andrew M. Kuchling [Tue, 19 Oct 2004 19:29:40 +0000 (19:29 +0000)]
[Bug #
1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
Andrew M. Kuchling [Tue, 19 Oct 2004 19:21:20 +0000 (19:21 +0000)]
Make magic coordinates more readable
Andrew M. Kuchling [Tue, 19 Oct 2004 18:52:49 +0000 (18:52 +0000)]
[Bug #
1049826] Update version of zlib referenced in text
Fred Drake [Tue, 19 Oct 2004 15:40:38 +0000 (15:40 +0000)]
Rely on the style sheet more for the distutils markup.
Fred Drake [Mon, 18 Oct 2004 21:30:40 +0000 (21:30 +0000)]
made it clear that this isn't a complete reference to
LaTeX-as-used-in-Python-documentation, and added some notes about
what's missing
Andrew M. Kuchling [Mon, 18 Oct 2004 16:16:53 +0000 (16:16 +0000)]
Bump version
Brett Cannon [Mon, 18 Oct 2004 01:53:15 +0000 (01:53 +0000)]
Clarify note about using %U and %W with strptime().
Brett Cannon [Mon, 18 Oct 2004 01:47:46 +0000 (01:47 +0000)]
Fix comments.
Brett Cannon [Mon, 18 Oct 2004 01:37:57 +0000 (01:37 +0000)]
Add support for %U and %W to contribute to calculating the date when the year
and day of the week are specified.
Closes bug #
1045381.
Brett Cannon [Mon, 18 Oct 2004 01:32:09 +0000 (01:32 +0000)]
Add sections for 2.4b2
Hye-Shik Chang [Sun, 17 Oct 2004 23:51:21 +0000 (23:51 +0000)]
SF #
1048865: Fix a trivial typo that breaks StreamReader.readlines()
Neal Norwitz [Sun, 17 Oct 2004 19:55:47 +0000 (19:55 +0000)]
SF bug #
1048756, Doc typo for pdb
Fred Drake [Sun, 17 Oct 2004 19:36:57 +0000 (19:36 +0000)]
some platforms still need offsetof() from structmember.h