Nick Coghlan
d25fd4d710
Close #11505 : Improve string.py coverage
2011-03-15 08:54:37 +10:00
Ronald Oussoren
ba3a978fc1
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:48:31 -04:00
Ronald Oussoren
f2db4de4d8
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:46:50 -04:00
Ronald Oussoren
e72e161851
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list
...
Patch by Scott Wilson.
2011-03-14 18:15:25 -04:00
briancurtin
30bb6e0360
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:36:31 -04:00
briancurtin
525c25d42f
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:03:54 -04:00
briancurtin
94eceeb89c
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 15:35:35 -04:00
Jesus Cea
736e7fc0f6
Issue #11495 : OSF support is eliminated. It was deprecated in Python 3.2
2011-03-14 17:36:54 +01:00
Ronald Oussoren
a9d397bb05
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug
...
using GCC 4.0.
2011-03-14 11:34:21 -04:00
Ronald Oussoren
42d0f68458
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
2011-03-14 11:04:34 -04:00
Ronald Oussoren
250324952e
Fixes #1099 : Mac compile fails with pydebug and framework enabled
...
Without this patch "./configure --with-pydebug --enable-framework CC=gcc-4.0" fails on MacOSX
2011-03-14 10:11:59 -04:00
R David Murray
dcd79a2d15
Merge fix for #11490 from 3.2.
2011-03-13 22:31:35 -04:00
R David Murray
384069c2e8
Merge fix for #11490 from 3.1.
2011-03-13 22:26:53 -04:00
R David Murray
d79210a0e4
#11490 : EACCES can also mean command not found
2011-03-13 22:13:09 -04:00
R David Murray
accd1c040f
#1162477 : accept '.' in addition to ':' when parsing time in date header.
...
Some non-compliant MUAs use '.'s, so by the Postel Principle we should
accept them. Patch by Thomas Herve.
2011-03-13 20:06:23 -04:00
Antoine Pitrou
f74dee4b88
Merge commit for #11233
2011-03-13 19:16:03 +01:00
Antoine Pitrou
d3cccd2a60
Issue #11223 : Fix test_threadsignals to fail, not hang, when the
...
non-semaphore implementation of locks is used under POSIX.
2011-03-13 19:14:21 +01:00
Benjamin Peterson
6cb2b923e0
convert ast versioning to mercurial
2011-03-12 18:28:16 -06:00
Eric V. Smith
b9cd3531c4
Issue 9856: Change object.__format__ with a non-empty format string from a PendingDeprecationWarning to a DeprecationWarning.
2011-03-12 10:08:48 -05:00
Mark Dickinson
e8eabe7b16
Merge #11131
2011-03-12 11:18:46 +00:00
Mark Dickinson
a7f0dffb8d
Merge #11131
2011-03-12 11:17:26 +00:00
Mark Dickinson
37a79fb75b
Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode.
2011-03-12 11:12:52 +00:00
Antoine Pitrou
16c4ce1903
Issue #9935 : Speed up pickling of instances of user-defined classes.
2011-03-11 21:30:43 +01:00
Antoine Pitrou
f5f6288bbc
Issue #11179 : Make ccbench work under Python 3.1 and 2.7 again.
2011-03-11 20:58:31 +01:00
Antoine Pitrou
375ff587c2
Issue #11179 : Make ccbench work under Python 3.1 and 2.7 again.
2011-03-11 20:57:11 +01:00
Antoine Pitrou
17b880a5d6
Issue #11244 : The peephole optimizer is now able to constant-fold
...
arbitrarily complex expressions. This also fixes a 3.2 regression where
operations involving negative numbers were not constant-folded.
2011-03-11 17:27:02 +01:00
Antoine Pitrou
d2dee34a85
Merge fix for issue #11450
2011-03-09 12:53:30 +01:00
Antoine Pitrou
35db8a80c1
Merge fix for issue #11450
2011-03-09 12:47:20 +01:00
Antoine Pitrou
7983d33f54
Issue #11450 : Don't truncate hg version info in Py_GetBuildInfo() when
...
there are many tags (e.g. when using mq). Patch by Nadeem Vawda.
2011-03-09 12:34:41 +01:00
Ned Deily
33cb5c9017
Issue #5622 : merge fix from 3.2.
2011-03-09 02:49:59 -08:00
Ned Deily
2d12f96658
Issue #5622 : merge fix from 3.1.
2011-03-09 02:42:23 -08:00
Ned Deily
d2853180df
Issue #5622 : Fix curses.wrapper to raise correct exception if curses
...
initialization fails.
2011-03-09 02:36:51 -08:00
Thomas Wouters
63bd5f9fe3
Merge 3.2.
2011-03-06 11:52:15 -08:00
Thomas Wouters
6b1034392c
Merge 3.1.
2011-03-06 11:51:24 -08:00
Thomas Wouters
81638f1351
Issue #11411 : Fix typo in the Makefile that prevented 'make DESTDIR=' from
...
working correctly with a relative path.
2011-03-06 11:49:15 -08:00
Antoine Pitrou
125d5c8770
Issue #11408 : In threading.Lock.acquire(), only call gettimeofday() when
...
really necessary. Patch by Charles-François Natali.
2011-03-06 08:40:35 +01:00
Antoine Pitrou
f874debbf3
Merge fix for issue #11391
2011-03-06 01:53:19 +01:00
Antoine Pitrou
80d3610bc3
Merge fix for issue #11391
2011-03-06 01:50:56 +01:00
Antoine Pitrou
16a0a0b0a0
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 01:11:03 +01:00
Giampaolo Rodolà
3a9559b844
Update Misc/NEWS to include issue #9795 (nntplib context manager support)
2011-03-04 12:54:34 +00:00
Eli Bendersky
9479d1ade8
Issue #11388 : Added a clear() method to MutableSequence
2011-03-04 05:34:58 +00:00
Eli Bendersky
e0c8635d89
Merged revisions 88735 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines
Issue #11386 : Fixed the exception thrown by bytearray.pop() for empty bytearrays
........
2011-03-04 05:10:57 +00:00
Eli Bendersky
1bc4f193d8
Issue #11386 : Fixed the exception thrown by bytearray.pop() for empty bytearrays
2011-03-04 04:55:25 +00:00
Eli Bendersky
4db28d3343
Issue #10516 : added copy() and clear() methods to bytearrays as well
2011-03-03 18:21:02 +00:00
R. David Murray
752b950e6b
Merged revisions 88730 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88730 | r.david.murray | 2011-03-03 13:03:36 -0500 (Thu, 03 Mar 2011) | 2 lines
#11306 : Treat EROFS like EACCES when making a 'file is read-only' decision
........
2011-03-03 18:12:34 +00:00
R. David Murray
91221f2857
#11306 : Treat EROFS like EACCES when making a 'file is read-only' decision
2011-03-03 18:03:36 +00:00
Giampaolo Rodolà
2f95dc0225
Merged revisions 88722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line
Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 14:09:45 +00:00
Giampaolo Rodolà
9c9105dc81
Merged revisions 88722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line
Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 13:59:28 +00:00
Giampaolo Rodolà
1bc75c6cee
Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
2011-03-03 13:57:47 +00:00
Victor Stinner
1dfd380306
Issue #11377 : Deprecate platform.popen() and reimplement it with os.popen().
2011-03-03 12:54:07 +00:00
Victor Stinner
7b3b20ad29
Issue #8513 : On UNIX, subprocess supports bytes command string.
2011-03-03 12:54:05 +00:00
Daniel Stutzbach
8eda5f7cd9
#11335 : Fix memory leak when a sort key function throws an exception
2011-03-02 23:37:50 +00:00
Victor Stinner
a5c68c3cb7
Issue #8923 : cache str.encode() result
...
When a string is encoded to UTF-8 in strict mode, the result is cached into the
object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String()
and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
2011-03-02 01:03:14 +00:00
Victor Stinner
6d970f4713
Issue #10831 : PyUnicode_FromFormat() supports %li, %lli and %zi formats
2011-03-02 00:04:25 +00:00
Victor Stinner
968654515f
Issue #10829 : Refactor PyUnicode_FromFormat()
...
* Use the same function to parse the format string in the 3 steps
* Fix crashs on invalid format strings
2011-03-01 23:44:09 +00:00
Victor Stinner
f0e293cbcd
Merged revisions 88700 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88700 | victor.stinner | 2011-03-02 00:08:36 +0100 (mer., 02 mars 2011) | 3 lines
Issue #10911 : Add tests on CGI with non-ASCII characters
Patch written by Pierre Quentel
........
2011-03-01 23:09:57 +00:00
Victor Stinner
096f1a85f0
Issue #10911 : Add tests on CGI with non-ASCII characters
...
Patch written by Pierre Quentel
2011-03-01 23:08:36 +00:00
Antoine Pitrou
819c40ff35
Followup to issue #11140 and r88682: also patch _dummy_thread.
...
Patch by Aymeric Augustin.
2011-03-01 23:05:42 +00:00
Victor Stinner
2b574a2332
Merged revisions 88697 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88697 | victor.stinner | 2011-03-01 23:46:52 +0100 (mar., 01 mars 2011) | 4 lines
Issue #11246 : Fix PyUnicode_FromFormat("%V")
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
........
2011-03-01 22:48:49 +00:00
Victor Stinner
2512a8b62e
Issue #11246 : Fix PyUnicode_FromFormat("%V")
...
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
2011-03-01 22:46:52 +00:00
Antoine Pitrou
9e719b6eba
Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines
Issue #10276 : Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB. Patch by Nadeem Vawda.
........
r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines
Fix issues on 32-bit systems introduced by r88460
........
r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines
Fix compile error under MSVC introduced by r88460.
........
r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines
Issue #4681 : Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
........
r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines
Issue #11277 : finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
........
r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
........
2011-02-28 23:48:16 +00:00
Antoine Pitrou
061cfb5258
Issue #10866 : Add socket.sethostname(). Initial patch by Ross Lagerwall.
2011-02-28 22:25:22 +00:00
Antoine Pitrou
8d0f257211
Add credit for r88682.
2011-02-28 22:06:48 +00:00
Antoine Pitrou
fcf81fd031
Issue #11140 : Lock.release() now raises a RuntimeError when attempting
...
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
2011-02-28 22:03:34 +00:00
Giampaolo Rodolà
396ff06051
Fix issue 8594: adds a source_address parameter to ftplib module.
2011-02-28 19:19:51 +00:00
Antoine Pitrou
86cbfec50a
Merged revisions 88664 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88664 | antoine.pitrou | 2011-02-27 00:24:06 +0100 (dim., 27 févr. 2011) | 4 lines
Issue #11326 : Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
........
2011-02-26 23:25:34 +00:00
Antoine Pitrou
e93bf7aed2
Issue #11326 : Add the missing connect_ex() implementation for SSL sockets,
...
and make it work for non-blocking connects.
2011-02-26 23:24:06 +00:00
Antoine Pitrou
4914f9e4e2
Merged revisions 88652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
........
2011-02-26 16:49:08 +00:00
Antoine Pitrou
d20a5f6161
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
...
Patch by Hirokazu Yamamoto.
2011-02-26 15:58:05 +00:00
Antoine Pitrou
09c530dfc8
Revert r88639 (the optimization changes behaviour and breaks buildbots)
2011-02-26 09:37:45 +00:00
Antoine Pitrou
ffa1a77c67
Issue #11258 : Speed up ctypes.util.find_library() under Linux a lot. Patch
...
by Jonas H.
2011-02-26 08:45:20 +00:00
Raymond Hettinger
9fe1ccfb5a
Issue #11297 : Add collections.ChainMap()
2011-02-26 01:02:51 +00:00
Antoine Pitrou
8250e23abd
Issue #10755 : Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
2011-02-25 23:41:16 +00:00
Antoine Pitrou
f65132de3d
Issue #4761 : Add the *at() family of functions (openat(), etc.) to the posix
...
module. Patch by Ross Lagerwall.
2011-02-25 23:25:17 +00:00
Antoine Pitrou
5d5381ed00
Merged revisions 88622 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88622 | antoine.pitrou | 2011-02-26 00:07:44 +0100 (sam., 26 févr. 2011) | 5 lines
Issue #7322 : Trying to read from a socket's file-like object after a timeout
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.
........
2011-02-25 23:14:08 +00:00
Antoine Pitrou
68e5c044e8
Issue #7322 : Trying to read from a socket's file-like object after a timeout
...
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.
2011-02-25 23:07:44 +00:00
Giampaolo Rodolà
95bcb93041
Issue 11291: poplib suppresses errors on QUIT.
2011-02-25 22:28:24 +00:00
Giampaolo Rodolà
103a6d6cd6
Issue 11177: asyncore's create_socket() arguments can now be omitted.
2011-02-25 22:21:22 +00:00
Antoine Pitrou
0bd4deba38
Issue #6064 : Add a `daemon` keyword argument to the threading.Thread
...
and multiprocessing.Process constructors in order to override the
default behaviour of inheriting the daemonic property from the current
thread/process.
2011-02-25 22:07:43 +00:00
Antoine Pitrou
d843c2d86f
Merged revisions 88610 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
........
2011-02-25 21:34:39 +00:00
Antoine Pitrou
707ce82cab
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
...
has arrived and the handler returned successfully.
2011-02-25 21:24:11 +00:00
Giampaolo Rodolà
7e1b9af044
Update Misc/NEWS to include os.getpriority() and os.setpriority() addition.
2011-02-25 21:00:10 +00:00
Antoine Pitrou
211b81dd09
Issue #11114 : Fix catastrophic performance of tell() on text files (up
...
to 1000x faster in some cases). It is still one to two order of magnitudes
slower than binary tell().
2011-02-25 20:27:33 +00:00
Giampaolo Rodolà
c9c2c8b034
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
2011-02-25 14:39:16 +00:00
Georg Brandl
8f1598787f
Merged revisions 88438,88440 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r88438 | georg.brandl | 2011-02-19 09:44:47 +0100 (Sa, 19 Feb 2011) | 1 line
#10709 : add back an updated AIX-NOTES (as README.AIX).
........
r88440 | georg.brandl | 2011-02-19 09:58:23 +0100 (Sa, 19 Feb 2011) | 1 line
#11184 : Fix large file support on AIX.
........
2011-02-25 10:26:14 +00:00
Georg Brandl
6baf117d88
Merged revisions 88426 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r88426 | georg.brandl | 2011-02-15 16:44:51 +0100 (Di, 15 Feb 2011) | 1 line
#941346 : Fix broken shared library build on AIX. Patch by Sebastien Sable, review by Antoine Pitrou.
........
2011-02-25 10:20:45 +00:00
Georg Brandl
f6c8fd62b9
Merged revisions 86537,86867-86868,86881,86887,86913-86915,86931-86933,86960,86964,86974,86980,86996,87008,87050 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r86537 | georg.brandl | 2010-11-19 23:09:04 +0100 (Fr, 19 Nov 2010) | 1 line
Do not put a raw REPLACEMENT CHARACTER in the document.
........
r86867 | georg.brandl | 2010-11-29 15:50:54 +0100 (Mo, 29 Nov 2010) | 1 line
Fix indentation bug.
........
r86868 | georg.brandl | 2010-11-29 15:53:15 +0100 (Mo, 29 Nov 2010) | 1 line
Fix heading style inconsistencies.
........
r86881 | georg.brandl | 2010-11-30 08:43:28 +0100 (Di, 30 Nov 2010) | 1 line
#10584 : fix bad links.
........
r86887 | georg.brandl | 2010-11-30 15:57:54 +0100 (Di, 30 Nov 2010) | 1 line
Fix typo.
........
r86913 | georg.brandl | 2010-12-01 16:32:43 +0100 (Mi, 01 Dez 2010) | 1 line
Add missing word, and add a better reference to the actual function.
........
r86914 | georg.brandl | 2010-12-01 16:36:33 +0100 (Mi, 01 Dez 2010) | 1 line
#10594 : fix parameter names in PyList API docs.
........
r86915 | georg.brandl | 2010-12-01 16:44:25 +0100 (Mi, 01 Dez 2010) | 1 line
Fix some markup and style in the unittest docs.
........
r86931 | georg.brandl | 2010-12-02 10:06:12 +0100 (Do, 02 Dez 2010) | 1 line
Fix-up documentation of makedirs().
........
r86932 | david.malcolm | 2010-12-02 17:41:00 +0100 (Do, 02 Dez 2010) | 2 lines
Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)
........
r86933 | georg.brandl | 2010-12-02 19:02:01 +0100 (Do, 02 Dez 2010) | 1 line
#10597 : fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
........
r86960 | georg.brandl | 2010-12-03 08:55:44 +0100 (Fr, 03 Dez 2010) | 1 line
#10360 : catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
........
r86964 | georg.brandl | 2010-12-03 10:58:38 +0100 (Fr, 03 Dez 2010) | 1 line
#10549 : fix interface of docclass() for text documenter.
........
r86974 | georg.brandl | 2010-12-03 16:30:09 +0100 (Fr, 03 Dez 2010) | 1 line
Markup consistency fixes.
........
r86980 | georg.brandl | 2010-12-03 18:19:27 +0100 (Fr, 03 Dez 2010) | 1 line
Fix punctuation.
........
r86996 | georg.brandl | 2010-12-03 20:56:42 +0100 (Fr, 03 Dez 2010) | 1 line
Fix indentation.
........
r87008 | georg.brandl | 2010-12-04 10:04:04 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
2011-02-25 09:48:21 +00:00
Eli Bendersky
cbbaa96036
Issue #10516 : adding list.clear() and list.copy() methods
2011-02-25 05:47:53 +00:00
Antoine Pitrou
915605c59a
Merged revisions 88550 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
........
2011-02-24 20:53:48 +00:00
Antoine Pitrou
5bffa79c22
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
...
a buffer struct having a NULL data pointer.
2011-02-24 20:50:49 +00:00
Éric Araujo
6c3787cb70
Allow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini ( #10868 ).
2011-02-24 18:03:10 +00:00
Victor Stinner
659eb84457
Merged revisions 88481 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88481 | victor.stinner | 2011-02-21 22:13:44 +0100 (lun., 21 févr. 2011) | 4 lines
Fix PyUnicode_FromFormatV("%c") for non-BMP char
Issue #10830 : Fix PyUnicode_FromFormatV("%c") for non-BMP characters on
narrow build.
........
2011-02-23 12:14:22 +00:00
Victor Stinner
02bfdb3f79
Merged revisions 88530 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines
Issue #11272 : Fix input() and sys.stdin for Windows newline
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
........
2011-02-23 12:10:23 +00:00
Victor Stinner
c0f1a1afae
Issue #11272 : Fix input() and sys.stdin for Windows newline
...
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
2011-02-23 12:07:37 +00:00
Lars Gustäbel
9f6cbe09cc
Merged revisions 88528 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88528 | lars.gustaebel | 2011-02-23 12:42:22 +0100 (Wed, 23 Feb 2011) | 16 lines
Issue #11224 : Improved sparse file read support (r85916) introduced a
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:
- The data segment of a file member is read completely into memory
every(!) time a small block is accessed. This is not only slow
but may cause unexpected MemoryErrors with very large files.
- Reading members from compressed tar archives is even slower
because of the excessive backwards seeking which is done when the
same data segment is read over and over again.
- As a backwards seek on a TarFile opened in stream mode is not
possible, using extractfile() fails with a StreamError.
........
2011-02-23 11:52:31 +00:00
Lars Gustäbel
dd071045e7
Issue #11224 : Improved sparse file read support (r85916) introduced a
...
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:
- The data segment of a file member is read completely into memory
every(!) time a small block is accessed. This is not only slow
but may cause unexpected MemoryErrors with very large files.
- Reading members from compressed tar archives is even slower
because of the excessive backwards seeking which is done when the
same data segment is read over and over again.
- As a backwards seek on a TarFile opened in stream mode is not
possible, using extractfile() fails with a StreamError.
2011-02-23 11:42:22 +00:00
Sean Reifscheider
e2dfefbe85
Issue #10924 : Adding salt and Modular Crypt Format to crypt library.
2011-02-22 10:55:44 +00:00
Brett Cannon
45b96d373e
Merged revisions 88498 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88498 | brett.cannon | 2011-02-21 19:25:12 -0800 (Mon, 21 Feb 2011) | 8 lines
Issue #11074 : Make 'tokenize' so it can be reloaded.
The module stored away the 'open' object as found in the global namespace
(which fell through to the built-in namespace) since it defined its own 'open'.
Problem is that if you reloaded the module it then grabbed the 'open' defined
in the previous load, leading to code that infinite recursed. Switched to
simply call builtins.open directly.
........
2011-02-22 03:35:18 +00:00
Brett Cannon
f3042782af
Issue #11074 : Make 'tokenize' so it can be reloaded.
...
The module stored away the 'open' object as found in the global namespace
(which fell through to the built-in namespace) since it defined its own 'open'.
Problem is that if you reloaded the module it then grabbed the 'open' defined
in the previous load, leading to code that infinite recursed. Switched to
simply call builtins.open directly.
2011-02-22 03:25:12 +00:00
Brett Cannon
eeb114b028
Issue #10512 : close the log file in cgi when running tests.
...
Thanks to Nadeem Vawda for the find and an initial fix.
2011-02-22 03:14:12 +00:00