Commit graph

48783 commits

Author SHA1 Message Date
R. David Murray
9253214fd9 #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).
2011-01-07 23:25:30 +00:00
R. David Murray
6f0022d84a 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.
2011-01-07 21:57:25 +00:00
Raymond Hettinger
7088abdca6 Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports). 2011-01-07 21:54:18 +00:00
Antoine Pitrou
5b6fc63998 Merged revisions 87834 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87834 | antoine.pitrou | 2011-01-07 22:43:59 +0100 (ven., 07 janv. 2011) | 5 lines

  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.
........
2011-01-07 21:49:25 +00:00
Antoine Pitrou
3be412d971 Put NEWS entry in the right section. 2011-01-07 21:47:02 +00:00
Antoine Pitrou
b7fb2e25fb 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.
2011-01-07 21:43:59 +00:00
Raymond Hettinger
1122fa2eb4 Revert r87823 which moved the source link to the wrong section. 2011-01-07 21:17:56 +00:00
Raymond Hettinger
32e8fea396 Update the digest of PEP 3333 based on comments for Phillip Eby. 2011-01-07 21:04:30 +00:00
Georg Brandl
2f2a9f772d Fix indent. 2011-01-07 20:58:25 +00:00
Raymond Hettinger
fc90213f53 Combine the two seealso sections. 2011-01-07 20:33:09 +00:00
Alexander Belopolsky
c64708ae48 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.
2011-01-07 19:59:19 +00:00
Antoine Pitrou
696efdd03f Mention multiprocessing.Queue in the queue docs 2011-01-07 19:16:12 +00:00
Antoine Pitrou
4b512f73e0 Group seealsos 2011-01-07 19:01:48 +00:00
Antoine Pitrou
60bcc54d2e Put those "seealso"s together 2011-01-07 18:58:21 +00:00
Victor Stinner
034c7537d8 Issue #10841: don't translate newlines for pgen 2011-01-07 18:56:19 +00:00
Victor Stinner
89e3436606 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).
2011-01-07 18:47:22 +00:00
Antoine Pitrou
bdde506116 Put those source links together 2011-01-07 18:43:14 +00:00
Antoine Pitrou
1bdd6fd7c7 atexit.py doesn't exist 2011-01-07 18:42:21 +00:00
Antoine Pitrou
39e352cb46 Put link to source at the end. There's nothing edificating in threading.py. 2011-01-07 18:33:07 +00:00
Georg Brandl
fb6fd5d019 #10856: document (Base)Exception.args better. 2011-01-07 18:28:45 +00:00
Brett Cannon
7603fa07a8 Undo an accidental commit in r87812. 2011-01-06 23:08:16 +00:00
Brett Cannon
63eef1e0dd Get --coverage to be an acceptable flag for test.regrtest again. 2011-01-06 22:32:41 +00:00
Alexander Belopolsky
610e544bf7 Further simplify gettmarg() 2011-01-06 21:57:06 +00:00
Raymond Hettinger
388af4bb35 Typo. 2011-01-06 20:55:29 +00:00
Martin v. Löwis
189c091612 Drop bf_getbuffer/bf_releasebuffer from stable ABI,
see #10181.
2011-01-06 19:28:31 +00:00
Georg Brandl
a572476a2a #10846: fix typo. 2011-01-06 19:28:18 +00:00
Martin v. Löwis
b30111f29e Support comment lines and missing indices in typeslots.h. 2011-01-06 19:26:21 +00:00
Martin v. Löwis
c83bc3c1fb Remove buffer API from stable ABI for now, see #10181. 2011-01-06 19:15:47 +00:00
Antoine Pitrou
ff17385fbd Merged revisions 87802 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87802 | antoine.pitrou | 2011-01-06 19:25:55 +0100 (jeu., 06 janv. 2011) | 6 lines

  Issue #7858: Raise an error properly when os.utime() fails under Windows
  on an existing file.

  (this does not seem to be easily testable)
........
2011-01-06 18:29:05 +00:00
Antoine Pitrou
e85da7aa4f Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.

(this does not seem to be easily testable)
2011-01-06 18:25:55 +00:00
David Malcolm
8ad4cd90e9 Merged revisions 87796 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87796 | david.malcolm | 2011-01-06 12:01:36 -0500 (Thu, 06 Jan 2011) | 6 lines

  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.
........
2011-01-06 17:36:32 +00:00
Antoine Pitrou
59bf738874 Merged revisions 87797 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87797 | antoine.pitrou | 2011-01-06 18:17:04 +0100 (jeu., 06 janv. 2011) | 4 lines

  Issue #3839: wsgiref should not override a Content-Length header set by
  the application.  Initial patch by Clovis Fabricio.
........
2011-01-06 17:18:32 +00:00
Antoine Pitrou
b715fac819 Issue #3839: wsgiref should not override a Content-Length header set by
the application.  Initial patch by Clovis Fabricio.
2011-01-06 17:17:04 +00:00
David Malcolm
f1397ad399 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.
2011-01-06 17:01:36 +00:00
Alexander Belopolsky
ecbb8dc17a Use PyOS_snprintf for better portability. 2011-01-06 16:45:25 +00:00
Antoine Pitrou
6e7d711d2a Merged revisions 87792 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87792 | antoine.pitrou | 2011-01-06 17:31:28 +0100 (jeu., 06 janv. 2011) | 3 lines

  Elaborate about the GIL.
........
2011-01-06 16:34:50 +00:00
Antoine Pitrou
003428158b Elaborate about the GIL. 2011-01-06 16:31:28 +00:00
Georg Brandl
f8dc9ca84e #10844: update copyright years in Mac plists. 2011-01-06 10:05:26 +00:00
Georg Brandl
f60fd00534 Add acks where acks are due. 2011-01-06 09:25:27 +00:00
Georg Brandl
b30f3303f7 Fix various issues (mostly Python 2 relics) found by Jacques Ducasse. 2011-01-06 09:23:56 +00:00
Georg Brandl
77041b2354 itertools, operator and functools are not really "numeric" modules; move them into their own "functional" chapter. 2011-01-06 09:23:19 +00:00
Georg Brandl
e98628d60c Remove doc for nonexisting parameter. 2011-01-06 09:15:45 +00:00
Antoine Pitrou
ca023cab4d Issue #1677694: Refactor and improve test_timeout. Original patch by
Björn Lindqvist.
2011-01-06 09:05:22 +00:00
Antoine Pitrou
818581c72a Merged revisions 87784 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87784 | antoine.pitrou | 2011-01-06 08:16:31 +0100 (jeu., 06 janv. 2011) | 3 lines

  Issue #10840: make it explicit that "s*" and friends provide contiguous memory.
........
2011-01-06 07:17:30 +00:00
Antoine Pitrou
d53dfa3fb1 Issue #10840: make it explicit that "s*" and friends provide contiguous memory. 2011-01-06 07:16:31 +00:00
Raymond Hettinger
7beae8a0d5 Issue 10825: Minor updates to the test suite. 2011-01-06 05:34:17 +00:00
Raymond Hettinger
90a4b3162e Nits 2011-01-06 02:08:30 +00:00
Raymond Hettinger
3df4621100 Add PEP 3333 to whatsnew. 2011-01-06 02:01:26 +00:00
Victor Stinner
4bd81725f2 Issue #10492: bdb.Bdb.run() only traces the execution of the code
And not the compilation (if the input is a string).
2011-01-06 00:49:38 +00:00
Victor Stinner
457ab068a3 test_atexit: fix code saving/restoring stdout and stderr
That's why I prefer a single instruction per line :-)
2011-01-05 23:47:00 +00:00