Robert Collins
19fae1a932
Issue #22932 : Fix timezones in email.utils.formatdate.
...
Patch from Dmitry Shachnev.
2015-08-01 08:19:06 +12:00
Robert Collins
78378e8939
Issue #23779 : imaplib raises TypeError if authenticator tries to abort.
...
Patch from Craig Holmquist.
2015-07-31 09:01:38 +12:00
Jason R. Coombs
0598da39ec
Merge with 3.4 for Issue #24729
2015-07-29 14:29:26 -04:00
Robert Collins
f8d5063645
Issue #23589 : Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
2015-07-30 06:16:46 +12:00
Victor Stinner
5ef6fde92c
Merge 3.4 (ctypes)
2015-07-29 14:35:12 +02:00
Ned Deily
e0374c7a03
Issue #19450 : merge from 3.4
2015-07-28 23:25:41 -07:00
Robert Collins
f7e3b5e153
Issue #23254 : Document how to close the TCPServer listening socket.
...
Patch from Martin Panter.
2015-07-29 12:53:30 +12:00
Steve Dower
4e167ca7c1
Issue #19450 : Update Windows builds to use SQLite 3.8.11.0
2015-07-28 11:09:40 -07:00
Berker Peksag
0659c43d73
Issue #23441 : rcompleter now prints a tab character instead of displaying
...
possible completions for an empty word.
Initial patch by Martin Sekera.
2015-07-28 00:08:24 +03:00
Robert Collins
f66f4208b7
Issue #17527 : Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
2015-07-27 10:42:54 +12:00
Larry Hastings
71427eea74
Merge Python 3.5.0b4 changes back with 3.5 branch head.
2015-07-26 07:59:45 -07:00
Larry Hastings
3d1dc904f4
Post-release updates for Python 3.5.0b4.
2015-07-26 07:55:08 -07:00
Serhiy Storchaka
f002225f7e
Issue #24683 : Fixed crashes in _json functions called with arguments of
...
inappropriate type.
2015-07-26 09:02:23 +03:00
Larry Hastings
164df4e51a
Version bump for Python 3.5.0b4.
2015-07-25 14:22:13 -07:00
Berker Peksag
940d69d444
Issue #21697 : shutil.copytree() now correctly handles symbolic links that point to directories.
...
Patch by Eduardo Seabra and Thomas Kluyver.
2015-07-25 14:55:06 +03:00
Serhiy Storchaka
374164c2f5
Issue #14373 : Fixed segmentation fault when gc.collect() is called during
...
constructing lru_cache (C implementation).
2015-07-25 12:10:21 +03:00
Ned Deily
71f70b8f1a
Issue #24603 : merge from 3.4
2015-07-24 16:24:47 -07:00
Berker Peksag
c3f417dc47
Issue #24695 : Fix a regression in traceback.print_exception()
...
If exc_traceback is None we shouldn't print a traceback header
like described in the documentation.
2015-07-24 17:36:21 +03:00
Serhiy Storchaka
c19bb3279c
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:05:59 +03:00
Meador Inge
5b718d7f4f
Issue #24485 : Function source inspection fails on closures.
...
The fix for Issue #21217 introduced a regression that caused
`inspect.getsource` to return incorrect results on nested
functions. The root cause of the regression was due to
switching the implementation to analyze the underlying
bytecode instead of the source code.
This commit switches things back to analyzing the source code
in a more complete way. The original bug and the regression
are both fixed by the new source code analysis.
2015-07-23 22:49:37 -05:00
Yury Selivanov
4f4913b38b
Issue #24485 : Revert backwards compatibility breaking changes of #21217 .
2015-07-23 17:10:00 +03:00
Yury Selivanov
f315c1c016
Issue #24687 : Plug refleak on SyntaxError in function parameters annotations.
2015-07-23 09:10:44 +03:00
Yury Selivanov
2f07a66ded
Issue #24688 : ast.get_docstring() for 'async def' functions.
2015-07-23 08:54:35 +03:00
Robert Collins
38de40db00
Issue #22153 : Improve unittest docs. Patch from Martin Panter and evilzero.
2015-07-23 06:39:06 +12:00
Yury Selivanov
8fb307cd65
Issue #24619 : New approach for tokenizing async/await.
...
This commit fixes how one-line async-defs and defs are tracked
by tokenizer. It allows to correctly parse invalid code such
as:
>>> async def f():
... def g(): pass
... async = 10
and valid code such as:
>>> async def f():
... async def g(): pass
... await z
As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:
>>> async def foo(): return await bar()
2015-07-22 13:33:45 +03:00
Zachary Ware
80acc3ebbc
Issue #24603 : Update the Windows build to use OpenSSL 1.0.2d
2015-07-21 23:27:08 -05:00
Yury Selivanov
e4e811d65b
Issue #24669 : Fix inspect.getsource() for 'async def' functions.
...
Patch by Kai Groner.
2015-07-21 19:01:52 +03:00
Serhiy Storchaka
d92d4efe3d
Issue #23573 : Restored optimization of bytes.rfind() and bytearray.rfind()
...
for single-byte argument on Linux.
2015-07-20 22:58:02 +03:00
Serhiy Storchaka
485407ce1e
Issue #24580 : Symbolic group references to open group in re patterns now are
...
explicitly forbidden as well as numeric group references.
2015-07-18 23:27:00 +03:00
Serhiy Storchaka
2489bd5d4e
Issue #24206 : Fixed __eq__ and __ne__ methods of inspect classes.
2015-07-18 23:20:50 +03:00
Serhiy Storchaka
f12e3e2b69
Fixed typos in Misc/NEWS.
2015-07-18 23:18:33 +03:00
Robert Collins
4838717b53
Issue #21750 : mock_open.read_data can now be read from each instance, as it
...
could in Python 3.3.
2015-07-17 20:10:23 +12:00
Victor Stinner
8cc80f1d81
Merge 3.4
2015-07-16 22:20:19 +02:00
Raymond Hettinger
a3626bc5bd
Issue #24583 : Fix crash when set is mutated while being updated.
2015-07-15 23:50:14 -07:00
Serhiy Storchaka
ced770da07
Issue #24631 : Fixed regression in the timeit modulu with multyline setup.
2015-07-15 22:11:36 +03:00
Robert Collins
76d508b5d4
- Issue #18622 : unittest.mock.mock_open().reset_mock would recurse infinitely.
...
Patch from Nicola Palumbo and Laurent De Buyst.
2015-07-15 11:49:43 +12:00
Robert Collins
f58f88c4c7
Issue #23661 : unittest.mock side_effects can now be exceptions again.
...
This was a regression vs Python 3.4. Patch from Ignacio Rossi
2015-07-14 13:51:40 +12:00
Serhiy Storchaka
05121159b3
Issue #24608 : chunk.Chunk.read() now always returns bytes, not str.
2015-07-10 22:26:08 +03:00
Serhiy Storchaka
d44768ff16
Issue #24608 : chunk.Chunk.read() now always returns bytes, not str.
2015-07-10 22:24:47 +03:00
Barry Warsaw
c5ea754e48
- Issue #15014 : SMTP.auth() and SMTP.login() now support RFC 4954's optional
...
initial-response argument to the SMTP AUTH command.
2015-07-09 10:39:55 -04:00
Serhiy Storchaka
958b3cc8c7
Corrected empty lines in Misc/NEWS.
2015-07-06 20:02:50 +03:00
Serhiy Storchaka
ebbdb7d3d7
Corrected empty lines in Misc/NEWS.
2015-07-06 19:58:11 +03:00
Serhiy Storchaka
02eae6b1f2
Issue #18684 : Fixed reading out of the buffer in the re module.
2015-07-06 14:03:01 +03:00
Serhiy Storchaka
03d6ee3823
Issue #18684 : Fixed reading out of the buffer in the re module.
2015-07-06 13:58:33 +03:00
Lars Gustäbel
e12aa62d68
Merge with 3.4: Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:29:41 +02:00
Lars Gustäbel
0357268d96
Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:27:24 +02:00
Larry Hastings
ab30353adb
Merge with ongoing work in 3.5 branch.
2015-07-05 10:31:09 -07:00
Larry Hastings
b34db6ad9b
Post-release fixes for Python 3.5.0b3.
2015-07-05 10:26:00 -07:00
Benjamin Peterson
d5d77aac60
set items in dict displays from left to right ( closes #24569 )
2015-07-05 10:37:25 -05:00
Benjamin Peterson
1554b17856
add news section for next beta
2015-07-05 10:37:00 -05:00
Benjamin Peterson
63eaf7b73d
merge heads
2015-07-04 22:53:11 -05:00
Benjamin Peterson
1da0612e70
merge heads
2015-07-04 22:52:33 -05:00
Benjamin Peterson
e54d5321cc
merge 3.4 ( #24407 )
2015-07-04 19:59:24 -05:00
Benjamin Peterson
2a48a6eb33
merge 3.3 ( #24407 )
2015-07-04 19:58:11 -05:00
Benjamin Peterson
a82f77fb00
protect against mutation of the dict during insertion ( closes #24407 )
2015-07-04 19:55:16 -05:00
Ned Deily
704dde196c
Issue #24432 : Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
2015-07-03 23:43:22 -07:00
Ned Deily
0454d48e02
Issue #24432 : Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
2015-07-03 23:35:00 -07:00
Steve Dower
f92673c254
Issue #24432 : Update Windows builds to use OpenSSL 1.0.2c.
2015-07-03 15:16:37 -07:00
Steve Dower
a09ef0389b
Issue #24432 : Update Windows builds to use OpenSSL 1.0.2c.
2015-07-03 15:13:48 -07:00
Yury Selivanov
fdbeb2b4b6
Issue #24400 : Resurrect inspect.isawaitable()
...
collections.abc.Awaitable and collections.abc.Coroutine no longer
use __instancecheck__ hook to detect generator-based coroutines.
inspect.isawaitable() can be used to detect generator-based coroutines
and to distinguish them from regular generator objects.
2015-07-03 13:11:35 -04:00
Nick Coghlan
2ab5b092e5
Close #24458 : PEP 489 documentation
...
Patch by Petr Viktorin.
2015-07-03 19:49:15 +10:00
Yury Selivanov
f488fb422a
Issue #19235 : Add new RecursionError exception. Patch by Georg Brandl.
2015-07-03 01:04:23 -04:00
Yury Selivanov
e13f8f3cab
Issue #24450 : Add gi_yieldfrom to generators; cr_await to coroutines.
...
Patch by Benno Leslie and Yury Selivanov.
2015-07-03 00:23:30 -04:00
Benjamin Peterson
42e913aa3a
merge 3.4 ( #24552 )
2015-07-02 16:18:58 -05:00
Benjamin Peterson
80f78a3efc
fix use after free ( closes #24552 )
2015-07-02 16:18:38 -05:00
Lars Gustäbel
49c521fd5d
Merge with 3.4: Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:41:03 +02:00
Lars Gustäbel
b7a688b3a4
Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:38:38 +02:00
Yury Selivanov
88632d72f2
Note removal of inspect.isawaitable() in the NEWS file
2015-06-30 18:25:36 -04:00
Serhiy Storchaka
4a01cab898
Issue #19176 : Fixed doctype() related bugs in C implementation of ElementTree.
...
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method. Direct call of doctype() now issues a warning. Parser's
doctype() now is not called if target's doctype() is called. Based on patch
by Martin Panter.
2015-06-29 23:08:52 +03:00
Serhiy Storchaka
05744ac6e0
Issue #19176 : Fixed doctype() related bugs in C implementation of ElementTree.
...
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method. Direct call of doctype() now issues a warning. Parser's
doctype() now is not called if target's doctype() is called. Based on patch
by Martin Panter.
2015-06-29 22:35:58 +03:00
Serhiy Storchaka
bc9e75ed02
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:18:01 +03:00
Serhiy Storchaka
7b6e3b91f5
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:14:06 +03:00
Jason R. Coombs
a95a476b3a
Issue #20387 : Merge test and patch from 3.4.4
2015-06-28 11:13:30 -04:00
Jason R. Coombs
50373e6c21
Issue #20387 : Merge
2015-06-28 11:10:29 -04:00
Serhiy Storchaka
b9b9e7b46a
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module.
2015-06-28 17:55:33 +03:00
Serhiy Storchaka
449e2be12b
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module.
2015-06-28 17:52:09 +03:00
Jason R. Coombs
80c29ac1ea
Issue #20387 : Merge patch and test
2015-06-28 10:23:11 -04:00
Serhiy Storchaka
eab7704044
Issue #24336 : The contextmanager decorator now works with functions with
...
keyword arguments called "func" and "self". Patch by Martin Panter.
2015-06-28 17:08:35 +03:00
Serhiy Storchaka
101ff3541c
Issue #24336 : The contextmanager decorator now works with functions with
...
keyword arguments called "func" and "self". Patch by Martin Panter.
2015-06-28 17:06:07 +03:00
Benjamin Peterson
4801383c29
upgrade to Unicode 8.0.0
2015-06-27 15:45:56 -05:00
Benjamin Peterson
7b78d4364d
prevent integer overflow in escape_unicode ( closes #24522 )
2015-06-27 15:01:51 -05:00
Benjamin Peterson
758d60baaa
merge 3.4
2015-06-27 14:26:21 -05:00
Benjamin Peterson
acac1e0e3b
merge 3.3
2015-06-27 14:26:15 -05:00
Benjamin Peterson
dac3ab84c7
add issue number
2015-06-27 14:25:50 -05:00
Benjamin Peterson
7763c68dcd
merge 3.4
2015-06-27 14:18:23 -05:00
Benjamin Peterson
ff0f322edb
merge 3.3
2015-06-27 13:56:46 -05:00
Benjamin Peterson
59b08c18a8
use safe allocation and reallocation macros
2015-06-27 13:41:33 -05:00
Jason R. Coombs
d1d628d552
Issue #20387 : Update Misc/NEWS
2015-06-26 17:45:09 -04:00
Antoine Pitrou
a72f0cdaea
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:38:13 +02:00
Antoine Pitrou
6bc217dd3d
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:31:11 +02:00
Yury Selivanov
5376ba9630
Issue #24400 : Introduce a distinct type for 'async def' coroutines.
...
Summary of changes:
1. Coroutines now have a distinct, separate from generators
type at the C level: PyGen_Type, and a new typedef PyCoroObject.
PyCoroObject shares the initial segment of struct layout with
PyGenObject, making it possible to reuse existing generators
machinery. The new type is exposed as 'types.CoroutineType'.
As a consequence of having a new type, CO_GENERATOR flag is
no longer applied to coroutines.
2. Having a separate type for coroutines made it possible to add
an __await__ method to the type. Although it is not used by the
interpreter (see details on that below), it makes coroutines
naturally (without using __instancecheck__) conform to
collections.abc.Coroutine and collections.abc.Awaitable ABCs.
[The __instancecheck__ is still used for generator-based
coroutines, as we don't want to add __await__ for generators.]
3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to
allow passing native coroutines to the YIELD_FROM opcode.
Before this change, 'yield from o' expression was compiled to:
(o)
GET_ITER
LOAD_CONST
YIELD_FROM
Now, we use GET_YIELD_FROM_ITER instead of GET_ITER.
The reason for adding a new opcode is that GET_ITER is used
in some contexts (such as 'for .. in' loops) where passing
a coroutine object is invalid.
4. Add two new introspection functions to the inspec module:
getcoroutinestate(c) and getcoroutinelocals(c).
5. inspect.iscoroutine(o) is updated to test if 'o' is a native
coroutine object. Before this commit it used abc.Coroutine,
and it was requested to update inspect.isgenerator(o) to use
abc.Generator; it was decided, however, that inspect functions
should really be tailored for checking for native types.
6. sys.set_coroutine_wrapper(w) API is updated to work with only
native coroutines. Since types.coroutine decorator supports
any type of callables now, it would be confusing that it does
not work for all types of coroutines.
7. Exceptions logic in generators C implementation was updated
to raise clearer messages for coroutines:
Before: TypeError("generator raised StopIteration")
After: TypeError("coroutine raised StopIteration")
2015-06-22 12:19:30 -04:00
Barry Warsaw
9380acbbf7
- Issue #24351 : Clarify what is meant by "identifier" in the context of
...
string.Template instances.
2015-06-09 14:22:44 -04:00
Barry Warsaw
17d5f47423
- Issue #24351 : Clarify what is meant by "identifier" in the context of
...
string.Template instances.
2015-06-09 14:20:31 -04:00
Serhiy Storchaka
4fafda731a
Issue #24408 : Fixed AttributeError in measure() and metrics() methods of
...
tkinter.Font.
2015-06-08 18:43:55 +03:00
Serhiy Storchaka
e7070f09bc
Issue #14373 : C implementation of functools.lru_cache() now can be used with
...
methods.
2015-06-08 11:19:24 +03:00
Steve Dower
93cfeb93ac
Issue #8232 : webbrowser support incomplete on Windows. Patch by Brandon Milam
2015-06-07 21:35:39 -07:00
Nick Coghlan
53f95024d7
Issue #24373 : Eliminate PEP 489 test refleaks
...
_testmultiphase and xxlimited now use tp_traverse and
tp_finalize to avoid reference leaks encountered when
combining tp_dealloc with PyType_FromSpec (see
issue #16690 for details)
2015-06-04 21:52:57 +10:00
Eric Snow
4fabf02633
Issue #24369 : Defend against key-changes during iteration.
2015-06-04 00:09:56 -06:00
Eric Snow
db4061cb9d
Issue #24377 : Fix a ref leak in OrderedDict.__repr__.
2015-06-03 11:09:48 -06:00
Eric Snow
4c72918a59
Issue #24362 : Simplify the C OrderedDict fast nodes resize logic.
2015-06-03 10:50:37 -06:00