]> granicus.if.org Git - python/log
python
14 years agoIssue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.
Terry Reedy [Mon, 10 Jan 2011 21:27:49 +0000 (21:27 +0000)]
Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.

14 years agoMisspelling.
Raymond Hettinger [Mon, 10 Jan 2011 21:26:49 +0000 (21:26 +0000)]
Misspelling.

14 years agoMissed two source links
Raymond Hettinger [Mon, 10 Jan 2011 21:16:07 +0000 (21:16 +0000)]
Missed two source links

14 years agoSeparate source link from main text.
Raymond Hettinger [Mon, 10 Jan 2011 19:54:11 +0000 (19:54 +0000)]
Separate source link from main text.

14 years agoFixed a footnote reference
Alexander Belopolsky [Mon, 10 Jan 2011 19:14:38 +0000 (19:14 +0000)]
Fixed a footnote reference

14 years agoFix typos.
Raymond Hettinger [Mon, 10 Jan 2011 05:40:57 +0000 (05:40 +0000)]
Fix typos.

14 years agoMove source links to consistent location and remove wordy, big yellow boxes.
Raymond Hettinger [Mon, 10 Jan 2011 03:26:08 +0000 (03:26 +0000)]
Move source links to consistent location and remove wordy, big yellow boxes.

14 years agoIssue #10872: The repr() of TextIOWrapper objects now includes the mode
Antoine Pitrou [Sun, 9 Jan 2011 20:38:15 +0000 (20:38 +0000)]
Issue #10872: The repr() of TextIOWrapper objects now includes the mode
if available.

(at Georg's request)

14 years agoAdd Ned Deily.
Martin v. Löwis [Sun, 9 Jan 2011 18:28:07 +0000 (18:28 +0000)]
Add Ned Deily.

14 years ago#10874: test_urllib2 shouldn't use `is` operator for comparing strings
Łukasz Langa [Sun, 9 Jan 2011 18:18:53 +0000 (18:18 +0000)]
#10874: test_urllib2 shouldn't use `is` operator for comparing strings

Patch by Adreas Stührk.

14 years ago#10871: "file" does not exist anymore in Python 3. Also adapt the reprs of opened...
Georg Brandl [Sun, 9 Jan 2011 09:31:01 +0000 (09:31 +0000)]
#10871: "file" does not exist anymore in Python 3.  Also adapt the reprs of opened file objects.

14 years agoWrap some long examples and signatures.
Georg Brandl [Sun, 9 Jan 2011 09:04:08 +0000 (09:04 +0000)]
Wrap some long examples and signatures.

14 years agoAdd missing line.
Georg Brandl [Sun, 9 Jan 2011 07:50:48 +0000 (07:50 +0000)]
Add missing line.

14 years ago#10869: do not visit root node twice in ast.increment_lineno().
Georg Brandl [Sun, 9 Jan 2011 07:38:51 +0000 (07:38 +0000)]
#10869: do not visit root node twice in ast.increment_lineno().

14 years ago#5871: protect against header injection attacks.
R. David Murray [Sun, 9 Jan 2011 02:35:24 +0000 (02:35 +0000)]
#5871: protect against header injection attacks.

This makes Header.encode throw a HeaderParseError if it winds up
formatting a header such that a continuation line has no leading
whitespace and looks like a header.  Since Header accepts values
containing newlines and preserves them (and this is by design), without
this fix any program that took user input (say, a subject in a web form)
and passed it to the email package as a header was vulnerable to header
injection attacks.  (As far as we know this has never been exploited.)

Thanks to Jakub Wilk for reporting this vulnerability.

14 years agoIssue #10357: Clarify what it means to be a mapping.
Raymond Hettinger [Sat, 8 Jan 2011 23:44:37 +0000 (23:44 +0000)]
Issue #10357: Clarify what it means to be a mapping.

14 years agozlib only works with bytes objects.
Georg Brandl [Sat, 8 Jan 2011 21:04:25 +0000 (21:04 +0000)]
zlib only works with bytes objects.

14 years agoFixed documentation to reflect recent changes for years < 1900.
Alexander Belopolsky [Sat, 8 Jan 2011 20:47:21 +0000 (20:47 +0000)]
Fixed documentation to reflect recent changes for years < 1900.

14 years agoNEWS: merge #1777412 and #10827 entries
Victor Stinner [Sat, 8 Jan 2011 16:37:47 +0000 (16:37 +0000)]
NEWS: merge #1777412 and #10827 entries

14 years agoIssue #1777412: document the change in the NEWS file
Victor Stinner [Sat, 8 Jan 2011 16:31:24 +0000 (16:31 +0000)]
Issue #1777412: document the change in the NEWS file

14 years agoMarkup fix
Raymond Hettinger [Sat, 8 Jan 2011 10:32:31 +0000 (10:32 +0000)]
Markup fix

14 years agoAdd EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
Antoine Pitrou [Sat, 8 Jan 2011 10:28:11 +0000 (10:28 +0000)]
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().

14 years agoIssue 9717: Segregate and improve the documentation of "in-place" operators
Raymond Hettinger [Sat, 8 Jan 2011 10:26:53 +0000 (10:26 +0000)]
Issue 9717:  Segregate and improve the documentation of "in-place" operators
in the operator module.

14 years agoFix test_ssl after r87849
Antoine Pitrou [Sat, 8 Jan 2011 10:23:29 +0000 (10:23 +0000)]
Fix test_ssl after r87849

14 years agoIssue #10859: Make `contextlib.GeneratorContextManager` officially
Antoine Pitrou [Sat, 8 Jan 2011 09:55:31 +0000 (09:55 +0000)]
Issue #10859: Make `contextlib.GeneratorContextManager` officially
private by renaming it to `_GeneratorContextManager`.

14 years ago#10855: document close() semantics of wave objects.
Georg Brandl [Sat, 8 Jan 2011 09:45:43 +0000 (09:45 +0000)]
#10855: document close() semantics of wave objects.

14 years agoIssue 10533: Need example of using __missing__.
Raymond Hettinger [Sat, 8 Jan 2011 09:35:38 +0000 (09:35 +0000)]
Issue 10533: Need example of using __missing__.

14 years agoIssue #10813: Small improvement to decimal money format recipe.
Raymond Hettinger [Sat, 8 Jan 2011 09:03:11 +0000 (09:03 +0000)]
Issue #10813: Small improvement to decimal money format recipe.

14 years agoIssue #10042: Fixed the total_ordering decorator to handle cross-type
Raymond Hettinger [Sat, 8 Jan 2011 07:01:56 +0000 (07:01 +0000)]
Issue #10042: Fixed the total_ordering decorator to handle cross-type
comparisons that could lead to infinite recursion.

14 years agoIssue #10864: limit year to [1; 9999] for strftime() on Solaris
Victor Stinner [Sat, 8 Jan 2011 03:35:36 +0000 (03:35 +0000)]
Issue #10864: limit year to [1; 9999] for strftime() on Solaris

14 years agotest_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de
Victor Stinner [Sat, 8 Jan 2011 03:16:05 +0000 (03:16 +0000)]
test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de

14 years agoIssue #1777412: Remove all limits on tm_year from time.strftime()
Victor Stinner [Sat, 8 Jan 2011 03:06:52 +0000 (03:06 +0000)]
Issue #1777412: Remove all limits on tm_year from time.strftime()

The buildbots will tell us which platform does support or not negative years.

14 years agoIssue #1777412: fix test_time for Mac OS X and OpenIndiana
Victor Stinner [Sat, 8 Jan 2011 02:46:33 +0000 (02:46 +0000)]
Issue #1777412: fix test_time for Mac OS X and OpenIndiana

14 years agoIssue #1777412: test large years value for strftime('%Y')
Victor Stinner [Sat, 8 Jan 2011 02:00:24 +0000 (02:00 +0000)]
Issue #1777412: test large years value for strftime('%Y')

14 years agoIssue #1777412: strftime() accepts year >= 1 instead of year >= 1900
Victor Stinner [Sat, 8 Jan 2011 01:56:31 +0000 (01:56 +0000)]
Issue #1777412: strftime() accepts year >= 1 instead of year >= 1900

 * With Visual Studio, year have to be in [1; 9999]
 * Add more tests on the year field

14 years agoFixed error handling branches. Thanks
Alexander Belopolsky [Sat, 8 Jan 2011 01:23:02 +0000 (01:23 +0000)]
Fixed error handling branches.  Thanks
Victor Stinner for pointing this out.

14 years agoIssue #1777412: extended year range of strftime down to 1000.
Alexander Belopolsky [Sat, 8 Jan 2011 00:13:34 +0000 (00:13 +0000)]
Issue #1777412: extended year range of strftime down to 1000.

14 years ago#10686: recode non-ASCII headers to 'unknown-8bit' instead of ?s.
R. David Murray [Fri, 7 Jan 2011 23:25:30 +0000 (23:25 +0000)]
#10686: recode non-ASCII headers to 'unknown-8bit' instead of ?s.

This applies only when generating strings from non-RFC compliant binary
input; it makes the existing recoding behavior more consistent (ie:
now no data is lost when recoding).

14 years agoFix formatting of values with embedded newlines when rfc2047 encoding
R. David Murray [Fri, 7 Jan 2011 21:57:25 +0000 (21:57 +0000)]
Fix formatting of values with embedded newlines when rfc2047 encoding

Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word.  Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.

14 years agoRevert r87821 which moved the source link to the wrong section (from the module intro...
Raymond Hettinger [Fri, 7 Jan 2011 21:54:18 +0000 (21:54 +0000)]
Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports).

14 years agoPut NEWS entry in the right section.
Antoine Pitrou [Fri, 7 Jan 2011 21:47:02 +0000 (21:47 +0000)]
Put NEWS entry in the right section.

14 years agoIssue #8020: Avoid a crash where the small objects allocator would read
Antoine Pitrou [Fri, 7 Jan 2011 21:43:59 +0000 (21:43 +0000)]
Issue #8020: Avoid a crash where the small objects allocator would read
non-Python managed memory while it is being modified by another thread.
Patch by Matt Bandy.

14 years agoRevert r87823 which moved the source link to the wrong section.
Raymond Hettinger [Fri, 7 Jan 2011 21:17:56 +0000 (21:17 +0000)]
Revert r87823 which moved the source link to the wrong section.

14 years agoUpdate the digest of PEP 3333 based on comments for Phillip Eby.
Raymond Hettinger [Fri, 7 Jan 2011 21:04:30 +0000 (21:04 +0000)]
Update the digest of PEP 3333 based on comments for Phillip Eby.

14 years agoFix indent.
Georg Brandl [Fri, 7 Jan 2011 20:58:25 +0000 (20:58 +0000)]
Fix indent.

14 years agoCombine the two seealso sections.
Raymond Hettinger [Fri, 7 Jan 2011 20:33:09 +0000 (20:33 +0000)]
Combine the two seealso sections.

14 years agoIssue #10827: Changed the rules for 2-digit years. The time.asctime
Alexander Belopolsky [Fri, 7 Jan 2011 19:59:19 +0000 (19:59 +0000)]
Issue #10827: Changed the rules for 2-digit years.  The time.asctime
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise.  The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.

14 years agoMention multiprocessing.Queue in the queue docs
Antoine Pitrou [Fri, 7 Jan 2011 19:16:12 +0000 (19:16 +0000)]
Mention multiprocessing.Queue in the queue docs

14 years agoGroup seealsos
Antoine Pitrou [Fri, 7 Jan 2011 19:01:48 +0000 (19:01 +0000)]
Group seealsos

14 years agoPut those "seealso"s together
Antoine Pitrou [Fri, 7 Jan 2011 18:58:21 +0000 (18:58 +0000)]
Put those "seealso"s together

14 years agoIssue #10841: don't translate newlines for pgen
Victor Stinner [Fri, 7 Jan 2011 18:56:19 +0000 (18:56 +0000)]
Issue #10841: don't translate newlines for pgen

14 years agoIssue #10841: set binary mode on files; the parser translates newlines
Victor Stinner [Fri, 7 Jan 2011 18:47:22 +0000 (18:47 +0000)]
Issue #10841: set binary mode on files; the parser translates newlines

On Windows, set the binary mode on stdin, stdout, stderr and all
io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
translates newlines (\r\n => \n).

14 years agoPut those source links together
Antoine Pitrou [Fri, 7 Jan 2011 18:43:14 +0000 (18:43 +0000)]
Put those source links together

14 years agoatexit.py doesn't exist
Antoine Pitrou [Fri, 7 Jan 2011 18:42:21 +0000 (18:42 +0000)]
atexit.py doesn't exist

14 years agoPut link to source at the end. There's nothing edificating in threading.py.
Antoine Pitrou [Fri, 7 Jan 2011 18:33:07 +0000 (18:33 +0000)]
Put link to source at the end. There's nothing edificating in threading.py.

14 years ago#10856: document (Base)Exception.args better.
Georg Brandl [Fri, 7 Jan 2011 18:28:45 +0000 (18:28 +0000)]
#10856: document (Base)Exception.args better.

14 years agoUndo an accidental commit in r87812.
Brett Cannon [Thu, 6 Jan 2011 23:08:16 +0000 (23:08 +0000)]
Undo an accidental commit in r87812.

14 years agoGet --coverage to be an acceptable flag for test.regrtest again.
Brett Cannon [Thu, 6 Jan 2011 22:32:41 +0000 (22:32 +0000)]
Get --coverage to be an acceptable flag for test.regrtest again.

14 years agoFurther simplify gettmarg()
Alexander Belopolsky [Thu, 6 Jan 2011 21:57:06 +0000 (21:57 +0000)]
Further simplify gettmarg()

14 years agoTypo.
Raymond Hettinger [Thu, 6 Jan 2011 20:55:29 +0000 (20:55 +0000)]
Typo.

14 years agoDrop bf_getbuffer/bf_releasebuffer from stable ABI,
Martin v. Löwis [Thu, 6 Jan 2011 19:28:31 +0000 (19:28 +0000)]
Drop bf_getbuffer/bf_releasebuffer from stable ABI,
see #10181.

14 years ago#10846: fix typo.
Georg Brandl [Thu, 6 Jan 2011 19:28:18 +0000 (19:28 +0000)]
#10846: fix typo.

14 years agoSupport comment lines and missing indices in typeslots.h.
Martin v. Löwis [Thu, 6 Jan 2011 19:26:21 +0000 (19:26 +0000)]
Support comment lines and missing indices in typeslots.h.

14 years agoRemove buffer API from stable ABI for now, see #10181.
Martin v. Löwis [Thu, 6 Jan 2011 19:15:47 +0000 (19:15 +0000)]
Remove buffer API from stable ABI for now, see #10181.

14 years agoIssue #7858: Raise an error properly when os.utime() fails under Windows
Antoine Pitrou [Thu, 6 Jan 2011 18:25:55 +0000 (18:25 +0000)]
Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.

(this does not seem to be easily testable)

14 years agoIssue #3839: wsgiref should not override a Content-Length header set by
Antoine Pitrou [Thu, 6 Jan 2011 17:17:04 +0000 (17:17 +0000)]
Issue #3839: wsgiref should not override a Content-Length header set by
the application.  Initial patch by Clovis Fabricio.

14 years agoIssue #10655: Fix the build on PowerPC on Linux with GCC when building with
David Malcolm [Thu, 6 Jan 2011 17:01:36 +0000 (17:01 +0000)]
Issue #10655: Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.

14 years agoUse PyOS_snprintf for better portability.
Alexander Belopolsky [Thu, 6 Jan 2011 16:45:25 +0000 (16:45 +0000)]
Use PyOS_snprintf for better portability.

14 years agoElaborate about the GIL.
Antoine Pitrou [Thu, 6 Jan 2011 16:31:28 +0000 (16:31 +0000)]
Elaborate about the GIL.

14 years ago#10844: update copyright years in Mac plists.
Georg Brandl [Thu, 6 Jan 2011 10:05:26 +0000 (10:05 +0000)]
#10844: update copyright years in Mac plists.

14 years agoAdd acks where acks are due.
Georg Brandl [Thu, 6 Jan 2011 09:25:27 +0000 (09:25 +0000)]
Add acks where acks are due.

14 years agoFix various issues (mostly Python 2 relics) found by Jacques Ducasse.
Georg Brandl [Thu, 6 Jan 2011 09:23:56 +0000 (09:23 +0000)]
Fix various issues (mostly Python 2 relics) found by Jacques Ducasse.

14 years agoitertools, operator and functools are not really "numeric" modules; move them into...
Georg Brandl [Thu, 6 Jan 2011 09:23:19 +0000 (09:23 +0000)]
itertools, operator and functools are not really "numeric" modules; move them into their own "functional" chapter.

14 years agoRemove doc for nonexisting parameter.
Georg Brandl [Thu, 6 Jan 2011 09:15:45 +0000 (09:15 +0000)]
Remove doc for nonexisting parameter.

14 years agoIssue #1677694: Refactor and improve test_timeout. Original patch by
Antoine Pitrou [Thu, 6 Jan 2011 09:05:22 +0000 (09:05 +0000)]
Issue #1677694: Refactor and improve test_timeout.  Original patch by
Björn Lindqvist.

14 years agoIssue #10840: make it explicit that "s*" and friends provide contiguous memory.
Antoine Pitrou [Thu, 6 Jan 2011 07:16:31 +0000 (07:16 +0000)]
Issue #10840: make it explicit that "s*" and friends provide contiguous memory.

14 years agoIssue 10825: Minor updates to the test suite.
Raymond Hettinger [Thu, 6 Jan 2011 05:34:17 +0000 (05:34 +0000)]
Issue 10825: Minor updates to the test suite.

14 years agoNits
Raymond Hettinger [Thu, 6 Jan 2011 02:08:30 +0000 (02:08 +0000)]
Nits

14 years agoAdd PEP 3333 to whatsnew.
Raymond Hettinger [Thu, 6 Jan 2011 02:01:26 +0000 (02:01 +0000)]
Add PEP 3333 to whatsnew.

14 years agoIssue #10492: bdb.Bdb.run() only traces the execution of the code
Victor Stinner [Thu, 6 Jan 2011 00:49:38 +0000 (00:49 +0000)]
Issue #10492: bdb.Bdb.run() only traces the execution of the code

And not the compilation (if the input is a string).

14 years agotest_atexit: fix code saving/restoring stdout and stderr
Victor Stinner [Wed, 5 Jan 2011 23:47:00 +0000 (23:47 +0000)]
test_atexit: fix code saving/restoring stdout and stderr

That's why I prefer a single instruction per line :-)

14 years agotest_imaplib: reap_server() closes the server when done
Victor Stinner [Wed, 5 Jan 2011 23:01:38 +0000 (23:01 +0000)]
test_imaplib: reap_server() closes the server when done

Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.

14 years agoimaplib: IMAP4 constructor closes the socket on error
Victor Stinner [Wed, 5 Jan 2011 23:01:37 +0000 (23:01 +0000)]
imaplib: IMAP4 constructor closes the socket on error

Fix a ResourceWarning(unclosed socket) if an exception is raised in the
constructor after the creation of the socket. Patch written by Nadeem Vawda.

14 years ago- time.accept2dyear = True is now equivalent to time.accept2dyear = 1
Alexander Belopolsky [Wed, 5 Jan 2011 23:00:47 +0000 (23:00 +0000)]
- time.accept2dyear = True is now equivalent to time.accept2dyear = 1
- removed unnecessary struct_time to tuple conversion
- added more unit tests
(See issue #10827 for discussion.)

14 years agoAdd more porting notes.
Raymond Hettinger [Wed, 5 Jan 2011 23:00:00 +0000 (23:00 +0000)]
Add more porting notes.

14 years agoFix mistake in NEWS
Antoine Pitrou [Wed, 5 Jan 2011 22:43:26 +0000 (22:43 +0000)]
Fix mistake in NEWS

14 years agoRemove mention of codes pending further discussion on transform()/untransform().
Raymond Hettinger [Wed, 5 Jan 2011 22:41:23 +0000 (22:41 +0000)]
Remove mention of codes pending further discussion on transform()/untransform().

14 years agoRC1 updates to whatsnew
Raymond Hettinger [Wed, 5 Jan 2011 22:27:49 +0000 (22:27 +0000)]
RC1 updates to whatsnew

14 years agoOn Py3k, -tt and -3 are no-op and unsupported respectively.
Georg Brandl [Wed, 5 Jan 2011 21:47:47 +0000 (21:47 +0000)]
On Py3k, -tt and -3 are no-op and unsupported respectively.

14 years agoOverhaul the documentation about socket timeouts.
Antoine Pitrou [Wed, 5 Jan 2011 21:17:36 +0000 (21:17 +0000)]
Overhaul the documentation about socket timeouts.

14 years agoIssue #7995: When calling accept() on a socket with a timeout, the returned
Antoine Pitrou [Wed, 5 Jan 2011 21:03:42 +0000 (21:03 +0000)]
Issue #7995: When calling accept() on a socket with a timeout, the returned
socket is now always non-blocking, regardless of the operating system.

14 years agoUpdate tests and whatsnew for the 'quiet' flag
Raymond Hettinger [Wed, 5 Jan 2011 20:24:08 +0000 (20:24 +0000)]
Update tests and whatsnew for the 'quiet' flag

14 years agoFix count of flag fields. Being one short caused the 'quiet' option not to print.
Raymond Hettinger [Wed, 5 Jan 2011 20:08:25 +0000 (20:08 +0000)]
Fix count of flag fields.  Being one short caused the 'quiet' option not to print.

14 years agoIssue #5485: Add tests for the UseForeignDTD method of expat parser objects.
Antoine Pitrou [Wed, 5 Jan 2011 18:44:14 +0000 (18:44 +0000)]
Issue #5485: Add tests for the UseForeignDTD method of expat parser objects.
Patch by Jean-Paul Calderone and Sandro Tosi.

14 years agoIssue #5485: Add doc for expat.xmlparser.SetParamEntityParsing.
Antoine Pitrou [Wed, 5 Jan 2011 18:37:22 +0000 (18:37 +0000)]
Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing.

14 years ago#10130: Prepare for building epub-format docs.
Georg Brandl [Wed, 5 Jan 2011 11:00:25 +0000 (11:00 +0000)]
#10130: Prepare for building epub-format docs.

14 years agoFix duplicate end tag.
Georg Brandl [Wed, 5 Jan 2011 10:59:48 +0000 (10:59 +0000)]
Fix duplicate end tag.

14 years agotest_time: assertEquals => assertEqual
Victor Stinner [Wed, 5 Jan 2011 03:58:54 +0000 (03:58 +0000)]
test_time: assertEquals => assertEqual

14 years agoIssue #10756: add the author, Andreas Stührk
Victor Stinner [Wed, 5 Jan 2011 03:56:22 +0000 (03:56 +0000)]
Issue #10756: add the author, Andreas Stührk

14 years agotest_threading: use Popen.communicate() instead of .wait()
Victor Stinner [Wed, 5 Jan 2011 03:54:28 +0000 (03:54 +0000)]
test_threading: use Popen.communicate() instead of .wait()

Popen.communicate() avoids deadlocks and close the pipes when done. This commit
fixes a ResourceWarning(unclosed pipe).