Zachary Ware
910b1c3993
Merge heads
2013-11-26 14:57:45 -06:00
Zachary Ware
99fb0513dd
Merge heads
2013-11-26 14:57:10 -06:00
Zachary Ware
29f8cb64e6
Issue #19588 : Merge with 3.3
2013-11-26 14:54:21 -06:00
Zachary Ware
a6edea530b
Issue #19588 : Fixed tests in test_random that were silently skipped most
...
of the time. Patch by Julian Gindi.
2013-11-26 14:50:10 -06:00
Serhiy Storchaka
822963ed5d
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:49:36 +02:00
Serhiy Storchaka
56507c7862
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:47:16 +02:00
Serhiy Storchaka
687ff0ecdf
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:27:11 +02:00
Serhiy Storchaka
c93329b3dd
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:25:28 +02:00
Mark Dickinson
1df88677e9
Issue #19638 : Merge from 3.3
2013-11-26 16:19:38 +00:00
Mark Dickinson
f45bbb6211
Issue #19638 : Raise ValueError instead of crashing when converting billion character strings to float.
2013-11-26 16:19:13 +00:00
Larry Hastings
99e101013f
Merged 3.4.0b1 release head back into trunk.
2013-11-24 14:05:57 -08:00
Serhiy Storchaka
b5d386314f
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:17:11 +02:00
Serhiy Storchaka
cdac302af3
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:15:37 +02:00
Georg Brandl
ed007d5b1b
Fix suspicious markup in the docs.
2013-11-24 16:09:26 +01:00
Larry Hastings
7e611dab4a
Bump version number to 3.4.0b1.
2013-11-24 06:59:35 -08:00
Zachary Ware
a4b7a7548c
Issue #3158 : doctest can now find doctests in functions and methods
...
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
2013-11-24 01:19:09 -06:00
Serhiy Storchaka
d27b455bbc
Issue #13477 : Added command line interface to the tarfile module.
...
Original patch by Berker Peksag.
2013-11-24 01:53:29 +02:00
Larry Hastings
44e2eaab54
Issue #19674 : inspect.signature() now produces a correct signature
...
for some builtins.
2013-11-23 15:37:55 -08:00
Larry Hastings
dcd340eeeb
Issue #19358 : "make clinic" now runs the Argument Clinic preprocessor
...
over all CPython source files.
2013-11-23 14:58:45 -08:00
Larry Hastings
ebdcb50b8a
Issue #19730 : Argument Clinic now supports all the existing PyArg
...
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
2013-11-23 14:54:00 -08:00
Larry Hastings
3a9079742f
Issue #19722 : Added opcode.stack_effect(), which accurately
...
computes the stack effect of bytecode instructions.
2013-11-23 14:49:22 -08:00
Martin v. Löwis
8d0d369067
Update Tcl/Tk to 8.6.1.
2013-11-23 23:05:27 +01:00
Christian Heimes
67986f9431
Issue #19735 : Implement private function ssl._create_stdlib_context() to
...
create SSLContext objects in Python's stdlib module. It provides a single
configuration point and makes use of SSLContext.load_default_certs().
2013-11-23 22:43:47 +01:00
Serhiy Storchaka
32eddc1bbc
Issue #16203 : Add re.fullmatch() function and regex.fullmatch() method,
...
which anchor the pattern at both ends of the string to match.
Original patch by Matthew Barnett.
2013-11-23 23:20:30 +02:00
Serhiy Storchaka
5c24d0e504
Issue #13592 : Improved the repr for regular expression pattern objects.
...
Based on patch by Hugo Lopes Tavares.
2013-11-23 22:42:43 +02:00
Serhiy Storchaka
3062c9a6c8
Issue #19641 : Added the audioop.byteswap() function to convert big-endian
...
samples to little-endian and vice versa.
2013-11-23 22:26:01 +02:00
Serhiy Storchaka
6787a3806e
Issue #15204 : Deprecated the 'U' mode in file-like objects.
2013-11-23 22:12:06 +02:00
Ezio Melotti
6bdd98622e
#10712 : 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
2013-11-23 21:14:42 +02:00
Antoine Pitrou
c9dc4a2a8a
Issue #17810 : Implement PEP 3154, pickle protocol 4.
...
Most of the work is by Alexandre.
2013-11-23 18:59:12 +01:00
Ezio Melotti
95401c5f6b
#13633 : Added a new convert_charrefs keyword arg to HTMLParser that, when True, automatically converts all character references.
2013-11-23 19:52:05 +02:00
Serhiy Storchaka
434d27a490
Merge heads
2013-11-23 19:08:38 +02:00
Serhiy Storchaka
be0c3250b1
Issue #19668 : Added support for the cp1125 encoding.
2013-11-23 18:52:23 +02:00
Guido van Rossum
cfc6901a7e
Add news about pdb fix for yield[from].
2013-11-23 08:46:14 -08:00
Christian Heimes
5de397e158
merge
2013-11-23 15:59:07 +01:00
Christian Heimes
4c05b472dd
Issue #19689 : Add ssl.create_default_context() factory function. It creates
...
a new SSLContext object with secure default settings.
2013-11-23 15:58:30 +01:00
Antoine Pitrou
91a7af3e48
Issue #19727 : os.utime(..., None) is now potentially more precise under Windows.
2013-11-23 15:23:26 +01:00
Serhiy Storchaka
235c5e0dd6
Issue #17201 : ZIP64 extensions now are enabled by default.
...
Patch by William Mallard.
2013-11-23 15:55:38 +02:00
Michael Foord
e28bb15054
Issue 17457: extend test discovery to support namespace packages
2013-11-23 13:29:23 +00:00
Christian Heimes
72d28500b3
Issue #19292 : Add SSLContext.load_default_certs() to load default root CA
...
certificates from default stores or system stores. By default the method
loads CA certs for authentication of server certs.
2013-11-23 13:56:58 +01:00
Ned Deily
aa6a212a4e
Issue #15663 : Revert OS X installer built-in Tcl/Tk support for 3.4.0b1.
2013-11-23 03:30:11 -08:00
Ned Deily
9fa4ced804
Update third-party libraries for OS X installers:
...
XZ 5.0.3 -> 5.0.5
SQLite 3.7.13 -> 3.8.1
2013-11-22 22:54:02 -08:00
Ned Deily
41ab6c3b1a
Issue #19551 : PEP 453 - OS X installer now installs or upgrades pip by default.
2013-11-22 22:25:43 -08:00
Barry Warsaw
e0d641abf2
trunk merge
2013-11-22 15:31:49 -05:00
Barry Warsaw
9121f8d94b
Issue 19555 for distutils, plus a little clean up (pyflakes, line lengths).
2013-11-22 15:31:35 -05:00
Zachary Ware
e19e3f0b91
Issue #18326 : merge with 3.3
2013-11-22 14:03:10 -06:00
Zachary Ware
e1391a0d68
Issue #18326 : Clarify that list.sort's arguments are keyword-only.
...
Also, attempt to reduce confusion in the glossary by not saying there are
different "types" of arguments and parameters.
2013-11-22 13:58:34 -06:00
Brett Cannon
58ca93cb69
NEWS entry for module name repr commit
2013-11-22 14:54:13 -05:00
Martin v. Löwis
baacf4d293
Update xz to 5.0.5.
2013-11-22 19:13:51 +01:00
Martin v. Löwis
bc2f0ba6b8
Update SQLite to 3.8.1 on Windows.
2013-11-22 18:36:28 +01:00
Antoine Pitrou
31119e4f10
Issue #19673 : Add pathlib to the stdlib as a provisional module (PEP 428).
2013-11-22 17:38:12 +01:00
Nick Coghlan
50c48b89e3
Close #17916 : dis.Bytecode based replacement for distb
...
- Bytecode.from_traceback() alternate constructor
- current_offset parameter and attribute
Patch by Claudiu Popa
2013-11-23 00:57:00 +10:00
Nick Coghlan
8fbdb097cf
Close #19552 : venv and pyvenv ensurepip integration
2013-11-23 00:30:34 +10:00
Nick Coghlan
c72e4e6dcc
Issue #19619 : Blacklist non-text codecs in method API
...
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
2013-11-22 22:39:36 +10:00
Ned Deily
322f5ba0d8
Issue #19553 : PEP 453 - "make install" and "make altinstall" now install or
...
upgrade pip by default, using the bundled pip provided by the new ensurepip
module. A new configure option, --with-ensurepip[=upgrade|install|no], is
available to override the default ensurepip "--upgrade" option. The option
can also be set with "make [alt]install ENSUREPIP=[upgrade|install\no]".
2013-11-21 23:01:59 -08:00
Ned Deily
b8f944f0b7
Issue #19649 : On OS X, the same set of file names are now installed
...
in bin directories for all configurations: non-framework vs framework,
and single arch vs universal builds. pythonx.y-32 is now always
installed for 64-bit/32-bit universal builds. The obsolete and
undocumented pythonw* symlinks are no longer installed anywhere.
2013-11-21 22:42:25 -08:00
Christian Heimes
44109d7de7
Issue #17134 : Finalize interface to Windows' certificate store. Cert and
...
CRL enumeration are now two functions. enum_certificates() also returns
purpose flags as set of OIDs.
2013-11-22 01:51:30 +01:00
Christian Heimes
35915876a6
merge
2013-11-22 01:17:34 +01:00
Christian Heimes
5f8b0f5c59
Issue #19664 : test_userdict's repr test no longer depends on the order
...
of dict elements.
Original patch by Serhiy Storchaka
2013-11-22 01:16:56 +01:00
Barry Warsaw
197a770231
- Issue #19555 : Restore sysconfig.get_config_var('SO'), with a
...
DeprecationWarning pointing people at $EXT_SUFFIX.
2013-11-21 18:57:14 -05:00
Christian Heimes
225877917e
Issue #8813 : Add SSLContext.verify_flags to change the verification flags
...
of the context in order to enable certification revocation list (CRL)
checks or strict X509 rules.
2013-11-21 23:56:13 +01:00
Victor Stinner
e079eddf21
Close #18294 : Fix the zlib module to make it 64-bit safe
2013-11-21 22:33:21 +01:00
Christian Heimes
1b62760221
merge
2013-11-21 16:27:33 +01:00
Christian Heimes
949ec14209
Issue #19682 : Fix compatibility issue with old version of OpenSSL that
...
was introduced by Issue #18379 .
2013-11-21 16:26:51 +01:00
Ronald Oussoren
c5cf797342
Issue #14455 : plistlib now supports binary plists and has an updated API.
...
This patch adds support for binary plists on OSX to plistlib (based
on a patch by 'dpounces').
The patch also cleans up the API for the plistlib module.
2013-11-21 15:46:49 +01:00
Serhiy Storchaka
f4fd257a02
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:04:22 +02:00
Serhiy Storchaka
d9a018222f
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:02:30 +02:00
Christian Heimes
bd3a7f90b5
Issue #18379 : SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
...
and CRL distribution points.
2013-11-21 03:40:15 +01:00
Christian Heimes
efff7060f8
Issue #18138 : Implement cadata argument of SSLContext.load_verify_location()
...
to load CA certificates and CRL from memory. It supports PEM and DER
encoded strings.
2013-11-21 03:35:02 +01:00
Christian Heimes
f3bf35eee4
Issue #16632 : Enable DEP and ASLR on Windows.
2013-11-20 17:43:23 +01:00
Christian Heimes
552e6c7284
Issue #17791 : Drop PREFIX and EXEC_PREFIX definitions from PC/pyconfig.h
2013-11-20 17:40:31 +01:00
Christian Heimes
c4ab11050d
Issue #18775 : Add name and block_size attribute to HMAC object. They now
...
provide the same API elements as non-keyed cryptographic hash functions.
2013-11-20 17:35:06 +01:00
Christian Heimes
634919a9fa
Issue #17276 : MD5 as default digestmod for HMAC is deprecated. The HMAC
...
module supports digestmod names, e.g. hmac.HMAC('sha1').
2013-11-20 17:23:06 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Christian Heimes
888dcc32cd
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
2013-11-20 00:50:38 +01:00
Christian Heimes
2658dd7cab
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
2013-11-20 00:41:29 +01:00
Ezio Melotti
4a9ee26750
#2927 : Added the unescape() function to the html module.
2013-11-19 20:28:45 +02:00
R David Murray
5160da1afc
Merge: #19449 : Handle non-string keys when generating 'fieldnames' error.
2013-11-19 13:17:26 -05:00
R David Murray
fb099c9ef1
#19449 : Handle non-string keys when generating 'fieldnames' error.
...
csv was handling non-string keys fine except for the error message
generated when a non-string key was not in 'fieldnames'.
Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly).
2013-11-19 13:16:20 -05:00
Martin v. Löwis
dd7436c613
Issue #19550 : Implement Windows installer changes of PEP 453 (ensurepip).
2013-11-19 17:02:36 +01:00
Serhiy Storchaka
58cf607d13
Issue #12892 : The utf-16* and utf-32* codecs now reject (lone) surrogates.
...
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
2013-11-19 11:32:41 +02:00
Zachary Ware
4accf45f0e
Issue #19596 : Set untestable tests in test_importlib to None
...
to avoid reporting success on empty tests.
2013-11-18 21:44:38 -06:00
Serhiy Storchaka
fd32fffa5a
Issue #8402 : Added the escape() function to the glob module.
2013-11-18 13:06:43 +02:00
Gregory P. Smith
162307fa35
Fix test.support.bind_port() to not cause an error when Python was compiled
...
on a system with SO_REUSEPORT defined in the headers but run on a system
with an OS kernel that does not support that reasonably new socket option.
2013-11-17 22:19:32 +00:00
Zachary Ware
7f4bf9fb10
Issue #19520 : Fix (the last!) compiler warning on 32bit Windows, in _sha3
2013-11-17 16:08:23 -06:00
Antoine Pitrou
6dd0d461a4
Issue #17618 : Add Base85 and Ascii85 encoding/decoding to the base64 module.
2013-11-17 23:52:25 +01:00
Victor Stinner
55329f8fbd
Issue #19634 : time.strftime("%y") now raises a ValueError on AIX when given a
...
year before 1900.
2013-11-17 23:39:21 +01:00
Gregory P. Smith
b6e622d184
Fix test.support.bind_port() to not cause an error when Python was compiled
...
on a system with SO_REUSEPORT defined in the headers but run on a system
with an OS kernel that does not support that reasonably new socket option.
2013-11-17 22:21:02 +00:00
Gregory P. Smith
61b976f127
Fix compilation error under gcc of the ctypes module bundled libffi for arm.
...
A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
2013-11-17 21:57:43 +00:00
Gregory P. Smith
7929a1da1a
Fix compilation error under gcc of the ctypes module bundled libffi for arm.
...
A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
2013-11-17 21:56:07 +00:00
Christian Heimes
a6bc95aa02
Issue #19448 : Add private API to SSL module to lookup ASN.1 objects by OID, NID, short name and long name.
2013-11-17 19:59:14 +01:00
Georg Brandl
497b3943a3
merge with 3.3.3 release clone
2013-11-17 09:17:18 +01:00
Georg Brandl
9e2043a561
Bump to 3.3.3 final.
2013-11-17 07:58:22 +01:00
Nick Coghlan
c610aba1ed
Close #19282 : Native context management in dbm
2013-11-17 15:59:51 +10:00
Ezio Melotti
745d54d2fa
#17806 : Added keyword-argument support for "tabsize" to str/bytes.expandtabs().
2013-11-16 19:10:57 +02:00
Serhiy Storchaka
13d4853ac0
Fixed issue number for issue #8311 .
2013-11-16 14:08:46 +02:00
Serhiy Storchaka
452bab4acf
Issue #16685 : Added support for writing any bytes-like objects in the aifc,
...
sunau, and wave modules.
2013-11-16 14:01:31 +02:00
Serhiy Storchaka
7714ebbe0e
Issue #5202 : Added support for unseekable files in the wave module.
2013-11-16 13:04:00 +02:00
Vinay Sajip
a76157dca6
Issue #19523 : Closed FileHandler leak which occurred when delay was set.
2013-11-15 20:40:27 +00:00
Tim Golden
09a5f5eb26
Issue #13674 Updated NEWS
2013-11-12 13:24:03 +00:00
Zachary Ware
c12f09ed24
Issue #19440 : Clean up test_capi
2013-11-11 22:47:04 -06:00