77303 Commits

Author SHA1 Message Date
Benjamin Peterson
1ef876cd28 evaluate positional defaults before keyword-only defaults (closes #16967) 2013-02-10 09:29:59 -05:00
Serhiy Storchaka
34a2a87d17 Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:44:43 +02:00
Serhiy Storchaka
bf95c143a2 Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:44:14 +02:00
Serhiy Storchaka
497cee456c Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:43:46 +02:00
Serhiy Storchaka
02c2076bd5 Issue #1470548: XMLGenerator now works with binary output streams. 2013-02-10 14:34:53 +02:00
Serhiy Storchaka
9fef188c9e Issue #1470548: XMLGenerator now works with binary output streams. 2013-02-10 14:31:07 +02:00
Serhiy Storchaka
88efc52d74 Issue #1470548: XMLGenerator now works with binary output streams. 2013-02-10 14:29:52 +02:00
Serhiy Storchaka
f2619236eb Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:24:06 +02:00
Serhiy Storchaka
d83c82440b Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:23:10 +02:00
Serhiy Storchaka
df32691e6f Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:22:07 +02:00
Raymond Hettinger
e35042d13a Merge 2013-02-09 20:01:59 -05:00
Raymond Hettinger
986bbfc079 Backport deque.rotate() improvements. 2013-02-09 20:00:55 -05:00
Antoine Pitrou
902fc8b5a0 Issue #13773: sqlite3.connect() gets a new uri parameter to pass the filename as a URI, allowing to pass custom options. 2013-02-10 00:02:44 +01:00
Antoine Pitrou
8ad5b07ccb Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09 23:16:51 +01:00
Antoine Pitrou
c73c561181 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09 23:14:42 +01:00
Antoine Pitrou
4de7457009 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
2013-02-09 23:11:27 +01:00
Serhiy Storchaka
151699a202 Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.
2013-02-09 22:38:29 +02:00
Serhiy Storchaka
859cd4723f Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.
2013-02-09 22:38:12 +02:00
Serhiy Storchaka
b6ed17344b Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.
2013-02-09 22:37:22 +02:00
Serhiy Storchaka
26cab56542 Issue #17169: Restore errno in tempfile exceptions. 2013-02-09 22:27:23 +02:00
Serhiy Storchaka
7451a72e2b Issue #17169: Restore errno in tempfile exceptions. 2013-02-09 22:25:49 +02:00
R David Murray
31c3cd2fb8 Merge: #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:25:12 -05:00
R David Murray
f4b54adc70 Merge: #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:24:44 -05:00
R David Murray
041d553319 #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:23:46 -05:00
R David Murray
c9b4e60683 Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. 2013-02-09 13:13:14 -05:00
R David Murray
6cb1d67eb3 Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. 2013-02-09 13:10:54 -05:00
R David Murray
ceaa8b1d75 #16564: Fix regression in use of encoders.encode_noop with binary data. 2013-02-09 13:02:58 -05:00
Christian Heimes
633a92ff20 add proper dependencies on expat headers and sources 2013-02-09 17:02:24 +01:00
Christian Heimes
7d01a1eb2b add proper dependencies on expat headers and sources 2013-02-09 17:02:16 +01:00
Christian Heimes
d489c7a0a3 add proper dependencies on expat headers and sources 2013-02-09 17:02:06 +01:00
Benjamin Peterson
fde43ec5cc merge 3.3 (#17168) 2013-02-09 08:57:53 -05:00
Benjamin Peterson
5d50adee50 StringIO.StringIO -> io.StringIO (closes #17168) 2013-02-09 08:57:28 -05:00
Serhiy Storchaka
5d70ccc4a9 Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
Remove obsoleted xreadline method.
2013-02-09 12:22:29 +02:00
Serhiy Storchaka
33182807f8 Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
Remove obsoleted xreadline method.
2013-02-09 12:21:52 +02:00
Serhiy Storchaka
bbbbe8eb60 Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
Remove obsoleted xreadline method.
2013-02-09 12:21:14 +02:00
Serhiy Storchaka
9ea2d55d91 Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:53:09 +02:00
Serhiy Storchaka
19a5214da4 Minor fix of previous commit. 2013-02-09 11:51:48 +02:00
Serhiy Storchaka
4b109cb4a8 Minor fix of previous commit. 2013-02-09 11:51:21 +02:00
Serhiy Storchaka
23a6726bc8 Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:47:20 +02:00
Serhiy Storchaka
4f169a7a4d Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:46:42 +02:00
Serhiy Storchaka
7611d9a8cf Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:13:46 +02:00
Serhiy Storchaka
8135de80f7 Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:12:36 +02:00
Serhiy Storchaka
01ad622a2c Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:53 +02:00
Ned Deily
1ce9595e87 Issue #17161: merge from 3.3 2013-02-08 23:05:10 -08:00
Ned Deily
aa20b000d1 Issue #17161: make install now also installs a python3 man page. 2013-02-08 23:02:09 -08:00
Ned Deily
a48b61f8f2 Issue #17161: make install now also installs a python3 man page. 2013-02-08 22:53:51 -08:00
Serhiy Storchaka
d1938cdc16 Fix accidental non-breakable spaces (U+00A0). 2013-02-08 11:24:55 +02:00
Serhiy Storchaka
70ea7fa6e5 Fix accidental non-breakable spaces (U+00A0). 2013-02-08 11:24:16 +02:00
Serhiy Storchaka
1273dfc39c Fix accidental non-breakable spaces (U+00A0). 2013-02-08 11:22:05 +02:00
Gregory P. Smith
1d824ec9b3 Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
2013-02-07 22:17:21 -08:00