Ned Deily
83abccbbc0
Issue #25136 : Support Apple Xcode 7's new textual SDK stub libraries.
...
As of Xcode 7, SDKs for Apple platforms now include textual-format stub
libraries whose file names have a .tbd extension rather than the
standard OS X .dylib extension. The Apple compiler tool chain handles
these stub libraries transparently and the installed system shared libraries
are still .dylibs. However, the new stub libraries cause problems for
third-party programs that support building with Apple SDKs and make
build-time decisions based on the presence or paths of system-supplied
shared libraries in the SDK. In particular, building Python itself with
an SDK fails to find system-supplied libraries during setup.py's build of
standard library extension modules. The solution is to have
find_library_file() in Distutils search for .tbd files, along with
the existing types (.a, .so, and .dylib). Patch by Tim Smith.
2016-02-25 00:55:24 +11:00
Ned Deily
3058eb418a
Issue #26406 : Avoid unnecessary serialization of getaddrinfo(3) calls on
...
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
2016-02-23 22:03:39 +11:00
Ned Deily
903783416b
Issue #26417 : Prevent spurious errors and incorrect defaults when
...
installing IDLE 2.7 on OS X: default configuration settings are
no longer installed from OS X specific copies.
2016-02-23 20:45:57 +11:00
Zachary Ware
c46a2ebaff
Issue #26268 : Update Windows builds to use OpenSSL 1.0.2f
2016-02-22 04:08:30 -06:00
Martin Panter
ba8474b77d
Issue #26309 : Shut down SocketServer request if verify_request() is false
...
Based on patch by Aviv Palivoda.
2016-02-18 10:43:55 +00:00
Benjamin Peterson
b2e3946d76
open the cert store readonly
...
Patch from Chi Hsuan Yen.
2016-02-17 22:13:19 -08:00
Ned Deily
1c2a7b5939
Issue #25924 : Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
...
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
2016-02-15 16:51:24 +11:00
Ned Deily
fdb959b8a3
Issue #26268 : Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
2016-02-15 16:42:36 +11:00
Charles-François Natali
674a3cd20b
Issue #24303 : Fix random EEXIST upon multiprocessing semaphores creation with
...
Linux PID namespaces enabled.
2016-02-12 22:39:21 +00:00
Serhiy Storchaka
1c496178d2
Issue #25698 : Importing module if the stack is too deep no longer replaces
...
imported module with the empty one.
2016-02-10 10:28:06 +02:00
Martin Panter
53ae0ba6e3
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Martin Panter
2dafcc25a9
Issues #26310 , #26311 : Fix typos in the documentation
2016-02-10 01:17:51 +00:00
Antoine Pitrou
225e7c0def
Issue #22847 : Improve method cache efficiency.
2014-11-15 00:56:27 +01:00
Martin Panter
ade4097671
Issue #12923 : Reset FancyURLopener's redirect counter even on exception
...
Based on patches by Brian Brazil and Daniel Rocco.
2016-02-04 06:01:35 +00:00
Serhiy Storchaka
71b71763c5
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:59 +02:00
Martin Panter
1d269c1067
Issue #26244 : Clarify default zlib compression level in documentation
...
Based on patch by Aviv Palivoda.
2016-02-03 07:06:33 +00:00
Martin Panter
a339e86dc0
Issue #19023 : Document ctypes array and pointer classes
...
Also add some more tests. Based on patch by Sye van der Veen.
2016-01-29 10:12:19 +00:00
Serhiy Storchaka
c4ef384d13
Issue #19883 : Fixed possible integer overflows in zipimport.
2016-01-28 21:32:53 +02:00
Victor Stinner
7791165fb3
code_richcompare() now uses the constants types
...
Issue #25843 : When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Victor Stinner
047ddfb64d
Issue #26106 : doc: Move text of licenses to parsed literal block
...
This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when
translating the documentation. Patch written by Julien Palard who is
translating Python 3.5 doc to french. Text of other licenses already used
preformatted format.
2016-01-21 08:56:00 +01:00
Benjamin Peterson
64ea192b73
prevent buffer overflow in get_data ( closes #26171 )
2016-01-20 22:23:44 -08:00
Serhiy Storchaka
9b5177c41a
Issue #26147 : xmlrpclib now works with unicode not encodable with used
...
non-UTF-8 encoding.
2016-01-20 10:33:51 +02:00
Serhiy Storchaka
98d3c19ed0
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 13:55:36 +02:00
Serhiy Storchaka
2f173fe26b
Issue #21847 : Fixed xmlrpclib and tests on Unicode-disabled builds.
2016-01-18 19:35:23 +02:00
Serhiy Storchaka
43beaebffb
Issue #6500 : Fixed infinite recursion in urllib2.Request.__getattr__().
2016-01-18 10:35:40 +02:00
Steve Dower
4ffee6157a
Issue #25824 : Fixes sys.winver to not include any architecture suffix.
2016-01-16 13:41:48 -08:00
Martin Panter
71202bb053
Issue #25940 : Use self-signed.pythontest.net in SSL tests
...
This is instead of svn.python.org, whose certificate recently expired, and
whose new certificate uses a different root certificate.
The certificate used at the pythontest server was modifed to set the "basic
constraints" CA flag. This flag seems to be required for test_get_ca_certs_
capath() to work.
Added the new self-signed certificate to capath with the following commands:
cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/}
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0}
mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0}
When attempting to connect to port 444 on the new server, the resulting error
code is EHOSTUNREACH on Linux, and ETIMEDOUT on Windows.
2016-01-15 00:25:29 +00:00
Zachary Ware
a8dbd93619
Issue #25348 : Add --pgo and --pgo-job flags to PCbuild\build.bat
2016-01-12 01:20:33 -06:00
Gregory P. Smith
0d207fd8cf
Fixes issue #26083 : Workaround a subprocess bug that raised an incorrect
...
"ValueError: insecure string pickle" exception instead of the actual exception
on some platforms such as Mac OS X when an exception raised in the forked child
process prior to the exec() was large enough that it overflowed the internal
errpipe_read pipe buffer.
2016-01-11 13:56:42 -08:00
Barry Warsaw
607965eb7e
Comment out two tests that won't pass now after reverting the typeobject.c
...
change. Also, as per further discussion, we'll just remove the regressing
code in typeobject.c
2016-01-11 14:44:59 -05:00
Barry Warsaw
f65395c8c2
Issue #22995 : [UPDATE] Comment out the one of the pickleability tests in
...
_PyObject_GetState() due to regressions observed in Cython-based projects.
2016-01-11 13:52:23 -05:00
Berker Peksag
e01859fb65
Issue #6500 : Reverting fbea8ff8db5e since it broke tests
2016-01-06 03:08:12 +02:00
Berker Peksag
621d7fd583
Issue #6500 : Fix "maximum recursion depth exceeded" error caused by Request.__getattr__()
2016-01-06 02:04:52 +02:00
Serhiy Storchaka
f9347e3b44
Issue #25961 : Disallowed null characters in the type name.
2015-12-30 21:39:21 +02:00
Serhiy Storchaka
b8e54dd806
Issue #22995 : Instances of extension types with a state that aren't
...
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled. Including memoryview.
2015-12-30 20:43:29 +02:00
Serhiy Storchaka
20a003bea4
Issue #24103 : Fixed possible use after free in ElementTree.iterparse().
2015-12-24 11:51:24 +02:00
Serhiy Storchaka
5951f2300f
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:35:35 +02:00
Zachary Ware
6ed42ea08b
Issue #25827 : Add support for ICC to configure
2015-12-21 11:43:03 -06:00
Serhiy Storchaka
c06a6d0958
Issue #25421 : __sizeof__ methods of builtin types now use dynamic basic size.
...
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:07:48 +02:00
Gregory P. Smith
64fa45af5a
Fixes issue #20954 : _args_from_interpreter_flags used by multiprocessing
...
and some tests no longer behaves incorrectly in the presence of the
PYTHONHASHSEED environment variable.
2015-12-13 13:57:50 -08:00
Victor Stinner
15a6c4239c
Issue #25696 : Fix installation of Python on UNIX with make -j9.
2015-12-13 21:19:28 +01:00
Ned Deily
3afd9c17b6
Issue #25798 : Update OS X 10.5+ 32-bit-only installer to build
...
and link with OpenSSL 1.0.2e.
2015-12-05 23:47:34 -05:00
Benjamin Peterson
0c13d1af63
merge 2.7.11 branch
2015-12-05 11:45:48 -08:00
Benjamin Peterson
11fc030b6f
2.7.11 final
2015-12-05 11:45:17 -08:00
Benjamin Peterson
fe5c64f727
merge 2.7.11 branch
2015-12-05 00:18:11 -08:00
Benjamin Peterson
167910a42b
add CVE and issue number
2015-12-05 00:17:57 -08:00
Martin Panter
7e59ce8b07
Issue #14285 : Do not catch ImportError from __init__.py in runpy
...
Initialize package before calling get_loader() for __main__, so that we do
not incorrectly handle ImportError from __init__.py. When runpy is used from
the Python CLI, use an internal exception rather than ImportError, to avoid
catching an unexpected ImportError.
Also simplify message formatting: str() is redundant with %s.
Also fix test_dash_m_error_code_is_one() in test_cmd_line_script, which was
failing because the test package was not in the current directlry, rather
the desired ValueError.
2015-12-03 01:23:10 +00:00
Serhiy Storchaka
ab68fcaee3
Issue #6478 : _strptime's regexp cache now is reset after changing timezone
...
with time.tzset().
2015-12-03 22:20:45 +02:00
Serhiy Storchaka
e37003e9ae
Issue #19543 : Added Py3k warning for decoding unicode.
2015-12-03 20:47:48 +02:00
Serhiy Storchaka
2329eeda0c
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:20:02 +02:00
Victor Stinner
e08496b62d
Closes #25742 : locale.setlocale() now accepts a Unicode string for its second
...
parameter.
2015-11-27 23:54:36 +01:00
Serhiy Storchaka
9baa56883a
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
...
by Marian Ganisin.
2015-11-26 23:48:30 +02:00
Serhiy Storchaka
ee1b24ccaa
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:35:33 +02:00
Serhiy Storchaka
282e831a5a
Issue #25616 : Tests for OrderedDict are extracted from test_collections
...
into separate file test_ordered_dict.
2015-11-25 17:19:27 +02:00
Serhiy Storchaka
8addf280a9
Issue #25697 : Fixed rough alphabetical order in Misc/ACKS.
2015-11-25 16:13:56 +02:00
Serhiy Storchaka
8d30ad7c8a
Issue #24731 : Fixed crash on converting objects with special methods
...
__str__, __trunc__, and __float__ returning instances of subclasses of
str, long, and float to subclasses of str, long, and float correspondingly.
2015-11-25 15:55:54 +02:00
Serhiy Storchaka
80767a38c7
Issue #25725 : Fixed a reference leak in cPickle.loads() when unpickling
...
invalid data including tuple instructions.
2015-11-25 15:07:49 +02:00
Martin Panter
96bc1757ce
Issue #25663 : Make rlcompleter avoid duplicate global names
2015-11-23 23:50:26 +00:00
Serhiy Storchaka
b3d8b59426
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
2015-11-23 15:46:36 +02:00
Serhiy Storchaka
5c137669e3
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:20:43 +02:00
Benjamin Peterson
71f8dd7402
rm duplicate entry
2015-11-22 19:05:29 -08:00
Benjamin Peterson
b37d9b4604
merge 2.7.11 release branch
2015-11-22 19:05:14 -08:00
Benjamin Peterson
5323ed3424
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory entries. Patch by Dingyuan Wang.
2015-11-22 19:04:56 -08:00
Serhiy Storchaka
37c02acb6f
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory
...
entries. Patch by Dingyuan Wang.
2015-11-22 14:56:22 +02:00
Benjamin Peterson
4d04361bd5
news section for 2.7.12
2015-11-21 18:39:07 -08:00
Benjamin Peterson
85592c9c80
post rc1 updates
2015-11-21 18:38:18 -08:00
Benjamin Peterson
c6f13db94a
bump to 2.7.11rc1
2015-11-21 13:38:35 -08:00
Terry Jan Reedy
a3ce2e5a05
Misc/NEWS entries for IDLE.
2015-11-21 13:18:50 -05:00
Serhiy Storchaka
6156560e4b
Issue #25678 : Copy buffer objects to null-terminated strings.
...
Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch backported from issue #24802 by Eryk Sun.
2015-11-20 21:56:21 +02:00
Nick Coghlan
2a6c2c9baa
Close #10128 : don't rerun __main__.py in multiprocessing
...
- backports issue #10845 's mitigation of incompatibilities between
the multiprocessing module and directory and zipfile execution
- Multiprocessing on Windows will now automatically skip rerunning top
level __main__.py modules in spawned processes, rather than failing
with AssertionError
2015-11-19 12:59:39 +10:00
Benjamin Peterson
c591936789
fix possible memory lea k in _get_aia_uri ( closes #25578 )
2015-11-14 15:12:18 -08:00
Serhiy Storchaka
5d7d26c403
Issue #25388 : Fixed tokenizer hang when processing undecodable source code
...
with a null byte.
2015-11-14 15:14:29 +02:00
Martin Panter
ef2b2f437e
Issue #25590 : Make rlcompleter only call getattr() once per attribute
...
Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__). This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
2015-11-13 22:47:00 +00:00
Serhiy Storchaka
fedcf9474e
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
2015-11-12 11:59:03 +02:00
Benjamin Peterson
10aaca9941
always set OP_NO_SSLv3 by default ( closes #25530 )
2015-11-11 22:38:41 -08:00
Benjamin Peterson
59d451d68f
fix memory leak in _get_crl_dp ( closes #25569 )
...
Patch started by Stéphane Wirtel.
2015-11-11 22:07:38 -08:00
Serhiy Storchaka
c54b8ceb91
Issue #7759 : Fixed the mhlib module on filesystems that doesn't support
...
link counting for directories.
2015-11-11 17:33:12 +02:00
Serhiy Storchaka
d0ee226396
Added missed periods at the ends of sentences in Misc/NEWS.
2015-11-10 00:31:41 +02:00
Victor Stinner
e192d0bbb9
Issue #7267 : format(int, 'c') now raises OverflowError when the argument is not
...
in range(0, 256).
2015-11-09 12:21:09 +01:00
Serhiy Storchaka
da87e45add
Issue #892902 : Fixed pickling recursive objects.
2015-11-07 11:15:32 +02:00
Martin Panter
43415ba571
Issue #18010 : Fix pydoc GUI search to handle package exceptions
2015-11-07 05:41:47 +00:00
doko@ubuntu.com
c157347db2
Issue #12612 : Add some Valgrind suppressions for 64-bit machines.
2015-11-05 20:41:57 +01:00
Serhiy Storchaka
c72e66a048
Issue #25523 : Backported a-to-an corrections.
2015-11-02 15:06:09 +02:00
Benjamin Peterson
09ba984364
always use os.urandom for the uuid4 algorithm ( closes #25515 )
2015-10-29 20:38:04 -07:00
Serhiy Storchaka
fbe04b68af
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:39:36 +02:00
Victor Stinner
15a43ed030
Issue #25461 : Rephrase os.walk() doc
...
Patch written by Bernt Røskar Brenna.
2015-10-23 12:42:39 +02:00
Gregory P. Smith
7427a79e12
Issue #21709 : Fix the logging module to not depend upon __file__ being set
...
properly to get the filename of its caller from the stack. This allows it
to work if run in a frozen or embedded environment where the module's
.__file__ attribute does not match its code object's .co_filename.
This same much simpler always correct approach has already been deployed and
used widely in Python 3.4 per the issue referenced above.
2015-10-22 13:09:50 -07:00
Martin Panter
4ed35fc4f3
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
2015-10-10 10:52:35 +00:00
Benjamin Peterson
77d12ecaad
prevent unacceptable bases from becoming bases through multiple inheritance ( #24806 )
2015-10-06 19:36:54 -07:00
Benjamin Peterson
51cd53e152
reinitialize an Event's Condition with a regular lock ( closes #25319 )
2015-10-05 21:56:22 -07:00
Terry Jan Reedy
1b6333a05c
Issue #24820 : Update IDLE NEWS items.
2015-10-04 01:14:45 -04:00
Martin Panter
74c76c8f06
Issue #24657 : Prevent CGIRequestHandler from collapsing the URL query
...
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
cff22eb2bf
Issue #25232 : Fix CGIRequestHandler's splitting of URL query
...
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Serhiy Storchaka
e12f632186
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:14:53 +03:00
Victor Stinner
a87633e596
Issue #25003 : os.urandom() doesn't use getentropy() on Solaris because
...
getentropy() is blocking, whereas os.urandom() should not block. getentropy()
is supported since Solaris 11.3.
2015-10-01 09:57:26 +02:00
Serhiy Storchaka
f522bbc9c2
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self keyword argument.
2015-09-29 23:51:27 +03:00
Serhiy Storchaka
cab4566c5a
Issue #22609 : Constructor and the update method of collections.UserDict now
...
accept the self keyword argument.
2015-09-29 23:33:03 +03:00
Terry Jan Reedy
6d49160fb6
Remove indent in news item. Error when building 3.x docs.
2015-09-29 01:00:25 -04:00
Terry Jan Reedy
da10017de3
Add recent IDLE NEWS items. Move Build sectios down.
2015-09-28 23:38:46 -04:00
Serhiy Storchaka
a8041ae565
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:34:59 +03:00