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
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
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
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
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
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
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
Raymond Hettinger
d2a4073db2
Issue #25135 : Avoid possible reentrancy issues in deque_clear.
2015-09-26 00:52:57 -07:00
Steve Dower
044cde52f8
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:25:30 -07:00
Terry Jan Reedy
13b21f8889
Issue #16893 : Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html.
...
Change destination to help.html. Adjust NEWS entries.
2015-09-21 22:36:36 -04:00
Terry Jan Reedy
4dd7887710
Issue #24861 : add Idle news items and correct previous errors.
2015-09-21 19:28:18 -04:00
Terry Jan Reedy
0eb8f01904
Add NEWS items for Idle.
2015-09-20 23:21:17 -04:00
Brett Cannon
ab54ca7c4f
Give proper credit for issue #24915
2015-09-18 15:11:26 -07:00
Brett Cannon
4ff151a72a
Issue #24915 : Make PGO builds support Clang and use the test suite for
...
profile data.
Thanks to Alecsandru Patrascu of Intel for the initial patch.
2015-09-18 15:09:42 -07:00
Victor Stinner
9a2326b362
Issue #24684 : socket.socket.getaddrinfo() now calls
...
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom unicode string with an encode() method which
doesn't return a byte string. The encoder of the IDNA codec is now called
directly instead of calling the encode() method of the string.
2015-09-11 12:42:13 +02:00
Zachary Ware
677688be22
Issue #25022 : Add NEWS, fix docs to not mention the old example.
2015-09-10 15:50:58 -05:00
Serhiy Storchaka
fe45f65187
Issue #24982 : shutil.make_archive() with the "zip" format now adds entries
...
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:01 +03:00
Martin Panter
b75a0e9f32
Issue #17849 : Raise sensible exception for invalid HTTP tunnel response
...
Initial patch from Cory Benfield.
2015-09-07 01:18:47 +00:00
Terry Jan Reedy
23ae488f23
Issue #16180 : Exit pdb if file has syntax error, instead of trapping user
...
in an infinite loop. Patch by Xavier de Gaye.
2015-09-05 19:13:17 -04:00
Zachary Ware
1db43f98d5
Issue #24986 : Allow building Python without external libraries on Windows
...
This modifies the behavior of the '-e' flag to PCbuild\build.bat: when '-e'
is not supplied, no attempt will be made to build extension modules that
require external libraries, even if the external libraries are present.
Also adds '--no-<module>' flags to PCbuild\build.bat, where '<module>' is
one of 'ssl', 'tkinter', or 'bsddb', to allow skipping just those modules
(if '-e' is given).
2015-09-03 23:27:05 -05:00
Zachary Ware
7ab6cb44e4
Allow PCbuild\rt.bat to accept unlimited arguments for regrtest.
...
This makes it possible to pass more than 7 tests by name through
Tools\buildbot\test.bat
2015-09-03 23:37:18 -05:00
Martin Panter
6a31bb5cac
Issue #24952 : Clarify default argument of stack_size() in threading, thread
...
Patch from Mattip.
2015-08-31 03:40:59 +00:00
Robert Collins
d951625f81
Merge 2.7 heads.
2015-08-24 12:10:23 +12:00
Robert Collins
11ac1a8239
Issue #22812 : Fix unittest discovery examples.
...
Patch from Pam McA'Nulty.
2015-08-24 12:06:18 +12:00
Terry Jan Reedy
5fa59bd250
Idle NEWS entries.
2015-08-16 22:11:43 -04:00
R David Murray
9168d069bf
#21167 : Fix definition of NAN when ICC used without -fp-model strict.
...
Patch from Chris Hogan of Intel, reviewed by Mark Dickinson.
2015-08-13 09:48:35 -04:00
Serhiy Storchaka
16870748ce
Fixed doubled spaces in Misc/NEWS.
2015-08-09 13:07:06 +03:00
Zachary Ware
a4777f1bef
Issue #24751 : When running regrtest with '-w', don't fail if re-run succeeds.
2015-08-04 21:53:21 -05:00
Robert Collins
937f2f70f5
Issue #20769 : Improve reload() docs. Patch by Dorian Pula.
2015-08-05 08:16:41 +12:00
Zachary Ware
977be3e7b5
Issue #23652 : Make the select module compile against LSB headers.
...
Initial patch by Matt Frank.
2015-08-01 21:30:11 -05:00
Guido van Rossum
3d731c5994
Issue #15138 : Speed up base64.urlsafe_b64* considerably (2.7 backport).
2015-07-30 16:50:25 +02:00
Robert Collins
f524799a65
Issue #23589 : Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
2015-07-30 06:14:32 +12:00
Victor Stinner
e97944a27e
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:37:17 +02:00
Robert Collins
2f2c829688
Issue #23254 : Document how to close the TCPServer listening socket.
...
Patch from Martin Panter.
2015-07-29 12:48:42 +12:00
Robert Collins
581234ee0d
Issue #17527 : Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
2015-07-27 10:40:15 +12:00
Serhiy Storchaka
cf74c1996e
Issue #24613 : Calling array.fromstring() with self is no longer allowed
...
to prevent the use-after-free error. Patch by John Leitch.
2015-07-26 08:49:37 +03:00
Benjamin Peterson
455a2a30a3
proper overflow checks for mymemreplace ( closes #24708 )
2015-07-24 23:25:35 -07:00
Serhiy Storchaka
3b77d01dbc
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:02:53 +03:00
Robert Collins
04fac8abf1
Issue #13938 : 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
2015-07-23 06:19:18 +12:00
Zachary Ware
68773f3100
Issue #24603 : Update Windows build to use OpenSSL 1.0.2d
2015-07-21 23:16:51 -05:00
Raymond Hettinger
4306063fd3
Issue #24568 : fix typo.
2015-07-18 16:31:29 -07:00
Zachary Ware
4734372aa0
Close #24508 : Backport the 3.5 MSBuild project files.
...
The old project files move to PC/VS9.0 and remain supported.
VS2008 is still required to build 2.7; VS2010 (or later, plus Windows SDK 7.1)
is *also* required to use the new project files.
2015-07-16 00:24:48 -05:00
Steve Dower
1485054a23
Issue #24634 : Importing uuid should not try to load libc on Windows
2015-07-14 13:25:03 -07:00
Serhiy Storchaka
be8c6ae56e
Issue #24611 : Fixed compiling the posix module on non-Windows platforms
...
without mknod() or makedev() (e.g. on Unixware).
2015-07-12 16:41:29 +03:00
Serhiy Storchaka
8de92c3a88
Corrected empty lines and removed BOM in Misc/NEWS.
2015-07-06 19:47:12 +03:00
Serhiy Storchaka
7865f218b4
Issue #18684 : Fixed reading out of the buffer in the re module.
2015-07-06 13:58:24 +03:00
Lars Gustäbel
518602ab11
Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:23:04 +02:00
Benjamin Peterson
96ae7fa860
Merge heads
2015-07-05 10:39:53 -05:00
Benjamin Peterson
3ce0b06712
'free-after-use' is not a bug :) ( closes #24568 )
2015-07-05 10:39:47 -05:00
Ned Deily
14f233e64a
Issue #24432 : Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
2015-07-03 23:32:44 -07:00
Steve Dower
3dd3d7c620
Issue #24432 : Update Windows builds to use OpenSSL 1.0.2c.
2015-07-03 15:19:38 -07:00
Lars Gustäbel
d048003d90
Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:37:08 +02:00
Serhiy Storchaka
ab766350b6
Issue #24467 : Fixed possible buffer over-read in bytearray. The bytearray
...
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:13:54 +03:00
Jason R. Coombs
eabfe8cc0e
Issue #20387 : Backport fix from Python 3.4
2015-06-28 13:05:19 -04:00
Serhiy Storchaka
84af51d1b3
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module. Fixed SystemError when the state is not a
tuple. Fixed possible memory leak.
2015-06-28 17:51:40 +03:00
Benjamin Peterson
1c72acf24c
ensure internal buffer is large enough for string after flushing ( closes #24481 )
2015-06-27 14:52:41 -05:00
Antoine Pitrou
0d2fac1fba
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:31:11 +02:00
Serhiy Storchaka
c7797dc748
Issue #19543 : Emit deprecation warning for known non-text encodings.
...
Backported issues #19619 : encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.
Backported issues #20404 : io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
2015-05-31 20:21:00 +03:00
Serhiy Storchaka
062bed289b
Issue #24264 : Fixed buffer overflow in the imageop module.
2015-05-31 09:05:10 +03:00
Serhiy Storchaka
59ea508bb8
Issue #5633 : Fixed timeit when the statement is a string and the setup is not.
2015-05-30 19:37:19 +03:00
Serhiy Storchaka
5127ed727c
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
...
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:12 +03:00
Serhiy Storchaka
1e95340bc3
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Serhiy Storchaka
9d1de8a2a9
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2015-05-28 22:37:13 +03:00
Benjamin Peterson
2c992a0788
backport computed gotos ( #4753 )
2015-05-28 12:45:31 -05:00
Raymond Hettinger
1a7c3571c7
Issue #24286 : Register dict views with the MappingView ABCs.
2015-05-26 01:35:54 -07:00
Serhiy Storchaka
902176be89
Moved Misc/NEWS entries to correct section and fix formatting.
2015-05-26 10:20:11 +03:00
Serhiy Storchaka
91421680be
Remove UTF-8 BOMs.
2015-05-25 12:27:39 +03:00
Benjamin Peterson
fa3d5b5b95
merge 2.7.10 release branch
2015-05-23 10:47:39 -05:00
Benjamin Peterson
ec7abfb58f
allow square brackets in cookie values ( #22931 )
2015-05-23 10:46:25 -05:00
Serhiy Storchaka
80cb186b49
Issue #24257 : Fixed segmentation fault in sqlite3.Row constructor with faked
...
cursor type.
2015-05-22 11:00:40 +03:00
Serhiy Storchaka
0ad379cc8f
Fixed issue number for issue #22939 .
2015-05-21 20:54:26 +03:00
Serhiy Storchaka
d43e928753
Issue #23985 : Fixed integer overflow in iterator object. Original patch by
...
Clement Rouault.
2015-05-21 20:49:34 +03:00
Serhiy Storchaka
9eb0c0e73e
Issue #22107 : tempfile.gettempdir() and tempfile.mkdtemp() now try again
...
when a directory with the chosen name already exists on Windows as well as
on Unix. tempfile.mkstemp() now fails early if parent directory is not
valid (not exists or is a file) on Windows.
2015-05-20 00:10:56 +03:00
Serhiy Storchaka
49f2ccf83d
Issue #6598 : Increased time precision and random number range in
...
email.utils.make_msgid() to strengthen the uniqueness of the message ID.
2015-05-19 10:09:27 +03:00
Serhiy Storchaka
25598f35d7
Issue #24091 : Fixed various crashes in corner cases in cElementTree.
2015-05-18 18:28:57 +03:00
Serhiy Storchaka
14e10a19f7
Issue #24102 : Fixed exception type checking in standard error handlers.
2015-05-18 16:08:38 +03:00
Raymond Hettinger
51dbc9a4ad
Issue #23757 : Only call the concrete list API for exact lists.
2015-05-17 14:37:39 -07:00
Terry Jan Reedy
84924e6e92
Issue #22155 : Add File Handlers subsection with createfilehandler to Tkinter
...
doc. Remove obsolete example from FAQ. Patch by Martin Panter.
2015-05-17 14:49:20 -04:00
Serhiy Storchaka
4b2c468e74
Issue #15809 : IDLE shell now uses locale encoding instead of Latin1 for
...
decoding unicode literals.
2015-05-17 13:53:54 +03:00
Serhiy Storchaka
80573bb902
Issue #15267 : HTTPConnection.request() now is compatibile with old-style
...
classes (such as TemporaryFile). Original patch by Atsuo Ishimoto.
2015-05-16 18:58:41 +03:00
Serhiy Storchaka
b70091a8d5
Issue #20014 : array.array() now accepts unicode typecodes. Based on patch by
...
Vajrasky Kok.
2015-05-16 17:11:41 +03:00
Serhiy Storchaka
f40fcb33d2
Issue #23637 : Showing a warning no longer fails with UnicodeErrror.
...
Formatting unicode warning in the file with the path containing non-ascii
characters no longer fails with UnicodeErrror.
2015-05-16 16:42:18 +03:00
Serhiy Storchaka
049060c249
Reverted issue #24134 changes.
2015-05-16 16:21:10 +03:00
Raymond Hettinger
77b3ae5e2c
Issue #23971 : Fix underestimated presizing in dict.fromkeys()
2015-05-13 03:13:28 -07:00
Benjamin Peterson
ddc6171b59
add news section for 2.7.11
2015-05-10 13:16:20 -04:00
Benjamin Peterson
a40ea98fc1
bump version to 2.7.10rc1
2015-05-10 13:14:16 -04:00
Benjamin Peterson
72c0141f03
ensure .keywords is always a dict
2015-05-09 00:23:41 -04:00
Larry Hastings
101b054c32
Issue #20274 : When calling a _sqlite.Connection, it now complains if passed
...
any keyword arguments. Previously it silently ignored them. Also: Remove
ignored and erroneous "kwargs" parameters from three METH_VARARGS methods
on _sqlite.Connection.
2015-05-08 09:56:29 -07:00
Serhiy Storchaka
7f71e04cb5
Issue #24134 : assertRaises() and assertRaisesRegexp() checks are not longer
...
successful if the callable is None.
Added tests for assertRaises().
2015-05-06 19:10:40 +03:00
Serhiy Storchaka
aa767a555b
Issue #23330 : h2py now supports arbitrary filenames in #include.
2015-05-03 15:35:02 +03:00
Raymond Hettinger
79f2c5b8e0
Defer deleted item decref until after the deque is restored to a consistent state.
2015-05-02 10:53:27 -07:00
Raymond Hettinger
89543dd992
Issues #24099 , #24100 , and #24101 : Fix free-after-use bug in heapq.
2015-05-02 10:26:57 -07:00
Serhiy Storchaka
a8e65755c4
Issue #23008 : Fixed resolving attributes with boolean value is False in pydoc.
2015-04-21 21:09:23 +03:00
Serhiy Storchaka
9aa16d93c9
Issue #23842 : os.major(), os.minor() and os.makedev() now support ints again.
2015-04-20 09:21:23 +03:00
Christian Heimes
3ce7873fdd
Issue #23998 : PyImport_ReInitLock() now checks for lock allocation error
2015-04-19 21:08:28 +02:00
Berker Peksag
1bc53c6e0b
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 19:03:06 +03:00
Andrew Kuchling
a5e27c6101
Reword NEWS item a bit
2015-04-14 10:18:46 -04:00
Andrew Kuchling
270b0586b0
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-14 10:03:35 -04:00
Serhiy Storchaka
1aa2c0f073
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:10 +03:00
Zachary Ware
563e7c6cd5
Issue #23686 : Update Windows build to use OpenSSL 1.0.2a
2015-04-07 20:33:54 -05:00
Victor Stinner
5ab1c01bfd
Issue #23881 : urllib.ftpwrapper constructor now closes the socket if the FTP
...
connection failed.
2015-04-07 12:47:57 +02:00
Serhiy Storchaka
f29bc70bff
Issue #15133 : _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and
...
always returns bool. tkinter.BooleanVar now validates input values (accepted
bool, int, long, str, unicode, and Tcl_Obj). tkinter.BooleanVar.get() now
always returns bool.
2015-04-04 12:42:25 +03:00
Serhiy Storchaka
37943b07fe
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:05:35 +03:00
Serhiy Storchaka
c77c5b5f03
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
...
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:46:30 +03:00
Victor Stinner
31c7e4fb1a
Issue #23834 : Fix socket.sendto(), use the C long type to store the result of
...
sendto() instead of the C int type.
2015-04-02 17:19:17 +02:00
Serhiy Storchaka
cba6b5d045
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
2015-04-02 10:35:57 +03:00
Serhiy Storchaka
43b49593e7
Issue #23838 : linecache now clears the cache and returns an empty result on
...
MemoryError.
2015-04-01 16:53:53 +03:00
Serhiy Storchaka
bd8c629eb5
Issue #23799 : Added test.test_support.start_threads() for running and
...
cleaning up multiple threads.
2015-04-01 12:56:39 +03:00
Serhiy Storchaka
c0a2f2b008
Issue #22390 : test.regrtest now emits a warning if temporary files or
...
directories are left after running a test.
2015-03-30 01:27:44 +03:00
Serhiy Storchaka
53b542fe30
Issue #23742 : ntpath.expandvars() no longer loses unbalanced single quotes.
2015-03-25 16:39:58 +02:00
Serhiy Storchaka
f95a57f9a1
Issue #21802 : The reader in BufferedRWPair now is closed even when closing
...
writer failed in BufferedRWPair.close().
2015-03-24 23:23:42 +02:00
Serhiy Storchaka
40fd0e8d68
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:27:50 +02:00
Serhiy Storchaka
d07ec7b082
Issue #23583 : Fixed writing unicode to standard output stream in IDLE.
...
Added tests for standard IO streams in IDLE.
2015-03-24 19:45:45 +02:00
Serhiy Storchaka
ac5164dd98
Issue #23583 : Fixed writing unicode to standard output stream in IDLE.
...
Added tests for standard IO streams in IDLE.
2015-03-24 19:42:15 +02:00
Serhiy Storchaka
f689f104aa
Issue #21560 : An attempt to write a data of wrong type no longer cause
...
GzipFile corruption. Original patch by Wolfgang Maier.
2015-03-23 15:25:18 +02:00
R David Murray
836c82417f
#23647 : Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
2015-03-22 16:17:11 -04:00
R David Murray
b4b000f002
#23539 : Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
...
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford.
2015-03-22 15:15:44 -04:00
Ned Deily
a8e8f7ee1c
Issue #23686 : Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
2015-03-19 16:19:27 -07:00
Serhiy Storchaka
8d3f505dcf
Fixed Misc/NEWS entry for issue #23136 .
2015-03-19 19:52:50 +02:00
Serhiy Storchaka
d54c2e3f13
Issue #23136 : _strptime now uniformly handles all days in week 0, including
...
Jan 30 of previous year. Based on patch by Jim Carroll.
2015-03-19 19:13:25 +02:00
Serhiy Storchaka
f249671d02
Issue #23138 : Fixed parsing cookies with absent keys or values in cookiejar.
...
Patch by Demian Brecht.
2015-03-13 09:04:34 +02:00
Serhiy Storchaka
7c26be5b18
Issue #23051 : multiprocessing.Pool methods imap() and imap_unordered() now
...
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:31:34 +02:00
Serhiy Storchaka
59bdf6392d
Issue #22928 : Disabled HTTP header injections in httplib.
...
Original patch by Demian Brecht.
2015-03-12 11:12:51 +02:00
Serhiy Storchaka
205408dacb
Issue #23615 : Module tarfile is now can be reloaded with imp.reload().
2015-03-11 17:31:59 +02:00
Antoine Pitrou
323ab6d732
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
2015-03-10 22:32:00 +01:00
Serhiy Storchaka
233e6988f4
Issue #22853 : Fixed a deadlock when use multiprocessing.Queue at import time.
...
Patch by Florian Finkernagel and Davin Potts.
2015-03-06 22:17:25 +02:00
Ned Deily
8c51fedcdf
Issue #23593 : fix Misc/NEWS entries
2015-03-05 17:43:26 -08:00