Victor Stinner
6579459d4b
cgi.FieldStorage.read_multi ignores Content-Length
...
Issue #24764 : cgi.FieldStorage.read_multi() now ignores the Content-Length
header in part headers. Patch written by Peter Landry and reviewed by Pierre
Quentel.
2015-08-18 10:21:10 -07:00
Yury Selivanov
7ca6c55a4e
Issue #24867 : Fix asyncio.Task.get_stack() for 'async def' coroutines
2015-08-17 14:46:51 -04:00
Raymond Hettinger
47d159f522
Issue #24379 : Add operator.subscript() as a convenience for building slices.
2015-08-16 19:43:34 -07:00
Raymond Hettinger
bb562a9a56
Add error information to a failing test to help diagnose a buildbot failure.
2015-08-16 17:08:48 -07:00
Raymond Hettinger
1cadf769b3
Improve comment
2015-08-15 14:47:27 -07:00
Raymond Hettinger
a166ce561c
Add more tests for pickling itertools.cycle
2015-08-15 14:45:49 -07:00
Raymond Hettinger
79c878d5f2
Fix crash in itertools.cycle.__setstate__() caused by lack of type checking.
...
Will backport after the 3.6 release is done.
2015-08-15 13:51:59 -07:00
Yury Selivanov
14f7b8bfb2
Merge 3.5 (issue #24867 )
2015-08-14 15:35:14 -04:00
Yury Selivanov
bb78adeece
Merge 3.4 (Issue #24867 )
2015-08-14 15:32:37 -04:00
Yury Selivanov
233983380d
Issue #24867 : Fix Task.get_stack() for 'async def' coroutines
2015-08-14 15:30:59 -04:00
Brett Cannon
d868376288
Merge from 3.5 for issue #24492
2015-08-14 11:09:56 -07:00
Brett Cannon
7c97a05618
Merge from 3.5.0 for issue #24492
2015-08-14 11:06:43 -07:00
Robert Collins
6908265812
Issue #21159 : Improve message in configparser.InterpolationMissingOptionError.
...
Patch from Łukasz Langa.
2015-08-14 20:16:14 +12:00
Robert Collins
f7a92673ab
Issue #21159 : Improve message in configparser.InterpolationMissingOptionError.
...
Patch from Łukasz Langa.
2015-08-14 11:47:41 +12:00
Robert Collins
ac37ba0742
Issue #21159 : Improve message in configparser.InterpolationMissingOptionError.
...
Patch from Łukasz Langa.
2015-08-14 11:11:35 +12:00
Brett Cannon
3008bc0f4a
Issue #24492 : make sure that ``from ... import ...` raises an
...
ImportError if __name__ is not defined on a package.
Thanks to Armin Rigo for the bug report and diagnosing the cause.
2015-08-11 18:01:31 -07:00
Robert Collins
df395991f6
Issue #9232 : Support trailing commas in function declarations.
...
For example, "def f(*, a = 3,): pass" is now legal.
Patch from Mark Dickinson.
2015-08-12 08:00:06 +12:00
Yury Selivanov
31978d9ff4
Merge 3.5 (issues #24835 , #24763 )
2015-08-09 18:22:11 -04:00
Yury Selivanov
131426ebe3
Merge 3.4 (issues #24835 , #24763 )
2015-08-09 18:21:58 -04:00
Yury Selivanov
9632ea2f26
Issue #24763 : Fix asyncio test on Windows (fix reverted change)
...
See also issue #24835
2015-08-09 18:21:25 -04:00
Robert Collins
dfa95c9a8f
Issue #20059 : urllib.parse raises ValueError on all invalid ports.
...
Patch by Martin Panter.
2015-08-10 09:53:30 +12:00
Raymond Hettinger
455b5092a1
Add more tests of hash effectiveness.
2015-08-09 00:35:00 -07:00
Zachary Ware
7c4a6f8bd0
Merge 3.5
2015-08-08 22:05:05 -05:00
Zachary Ware
83ee5a315f
Merge 3.4
2015-08-08 22:03:43 -05:00
Zachary Ware
9a47ed8839
regrtest: the 'bad' and 'environment_changed' sets of tests don't intersect anymore
2015-08-08 22:03:27 -05:00
Stefan Krah
5f35725fb8
Merge #15944 .
2015-08-08 13:38:59 +02:00
Stefan Krah
0c51595a78
Issue #15944 : memoryview: Allow arbitrary formats when casting to bytes.
...
Original patch by Martin Panter.
2015-08-08 13:38:10 +02:00
Eric Snow
5060bc51ca
Merge from 3.5 (issue #24667 ).
2015-08-07 17:47:35 -06:00
Eric Snow
8c7f9558eb
Issue #24667 : Resize odict in all cases that the underlying dict resizes.
2015-08-07 17:45:12 -06:00
Robert Collins
8e9f9852be
Issue #4395 : Better testing and documentation of binary operators.
...
Patch by Martin Panter.
2015-08-07 10:34:23 +12:00
Robert Collins
00cf3c394a
Issue #4395 : Better testing and documentation of binary operators.
...
Patch by Martin Panter.
2015-08-07 10:32:15 +12:00
Robert Collins
d84b29f805
Issue #4395 : Better testing and documentation of binary operators.
...
Patch by Martin Panter.
2015-08-07 10:22:54 +12:00
Yury Selivanov
1720e1fc0b
Merge 3.5 (issue #23812 )
2015-08-06 14:04:30 -04:00
Yury Selivanov
e03f42717c
Merge 3.4 (issue #23812 )
2015-08-06 14:04:12 -04:00
Yury Selivanov
159fbdd805
Issue #23812 : Fix getter-cancellation with many pending getters code path
2015-08-06 14:03:38 -04:00
Yury Selivanov
6f8bcec616
Merge 3.5 (issue #24791 ; more tests in test_parser)
2015-08-05 18:00:11 -04:00
Yury Selivanov
50a2614786
Issue #24791 : More tests in test_parser
2015-08-05 17:59:45 -04:00
Yury Selivanov
dca249b17c
Merge 3.5 (issue #24791 )
2015-08-05 17:55:12 -04:00
Yury Selivanov
14acf5f41d
Issue #24791 : Fix grammar regression for call syntax: 'g(*a or b)'.
2015-08-05 17:54:10 -04:00
Yury Selivanov
c28f3ae7ff
Merge 3.5 (asyncio)
2015-08-05 14:47:47 -04:00
Yury Selivanov
6d0c4c38d1
asyncio.test_pep492: Add a test for asyncio.iscoroutinefunction
2015-08-05 14:47:33 -04:00
Yury Selivanov
b3c019ca63
Issue #23812 : Fix asyncio.Queue.get() to avoid loosing items on cancellation.
...
Patch by Gustavo J. A. M. Carneiro.
2015-08-05 13:58:43 -04:00
Yury Selivanov
22506d24ee
Issue #23812 : Fix asyncio.Queue.get() to avoid loosing items on cancellation.
...
Patch by Gustavo J. A. M. Carneiro.
2015-08-05 13:55:54 -04:00
Yury Selivanov
3fc0f2d288
Issue #23812 : Fix asyncio.Queue.get() to avoid loosing items on cancellation.
...
Patch by Gustavo J. A. M. Carneiro.
2015-08-05 13:52:33 -04:00
Guido van Rossum
a9d77fad34
Issue #23973 : Update typing.py from GitHub repo. (Merge from 3.5.)
2015-08-05 12:13:11 +02:00
Guido van Rossum
d70fe639c1
Issue #23973 : Update typing.py from GitHub repo.
2015-08-05 12:11:06 +02:00
Zachary Ware
36948d7875
Issue #24791 : Add tests for things that regressed with PEP 448
2015-08-04 22:49:55 -05:00
Zachary Ware
6e435e2d11
Closes #24751 : Merge with 3.5
2015-08-04 21:59:09 -05:00
Zachary Ware
40648838b2
Issue #24751 : Merge with 3.4
2015-08-04 21:58:00 -05:00
Zachary Ware
920a335e97
Issue #24751 : When running regrtest with '-w', don't fail if re-run succeeds.
2015-08-04 21:54:54 -05:00
Yury Selivanov
4451cbed22
Merge 3.5
2015-08-04 15:57:05 -04:00
Yury Selivanov
78c89eb0ac
Merge 3.4
2015-08-04 15:56:53 -04:00
Yury Selivanov
2a8911c0b7
asyncio: Sync with upstream (compat module)
2015-08-04 15:56:33 -04:00
Robert Collins
55b88700d2
Issue #23888 : Handle fractional time in cookie expiry. Patch by ssh.
2015-08-04 10:07:21 +12:00
Robert Collins
f3d9c315b6
Issue #23888 : Handle fractional time in cookie expiry. Patch by ssh.
2015-08-04 10:07:06 +12:00
Robert Collins
a0e5d981cd
Issue #23888 : Handle fractional time in cookie expiry. Patch by ssh.
2015-08-04 10:06:29 +12:00
Robert Collins
9ea5199fe9
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:39:09 +12:00
Robert Collins
6f8a0586a9
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:38:39 +12:00
Robert Collins
43cbbe21a7
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:36:04 +12:00
Serhiy Storchaka
44427added
Issue #20557 : Use specific asserts in io tests.
2015-08-02 15:18:53 +03:00
Serhiy Storchaka
b064f1e94f
Issue #20557 : Use specific asserts in io tests.
2015-08-02 15:18:28 +03:00
Serhiy Storchaka
0dcd80a6c0
Issue #20557 : Use specific asserts in io tests.
2015-08-02 15:17:49 +03:00
Zachary Ware
9dd6ddc787
Closes #23182 : Merge with 3.5
2015-08-01 22:00:17 -05:00
Zachary Ware
13db76a974
Issue #23182 : Merge with 3.4
2015-08-01 21:57:22 -05:00
Zachary Ware
ce17f76475
Issue #23182 : PEP8-ify the annotation grammar tests. Patch by Ian Lee.
2015-08-01 21:55:36 -05:00
Victor Stinner
d27d938675
Merge 3.5 (asyncio tests)
2015-07-31 23:36:28 +02:00
Victor Stinner
a0a28b076a
Merge 3.4 (asyncio test)
2015-07-31 23:36:15 +02:00
Victor Stinner
9a82bd45cd
Issue #24763 : Fix asyncio test on Windows
2015-07-31 23:36:00 +02:00
Robert Collins
354b6e50bb
Issue #22932 : Fix timezones in email.utils.formatdate.
...
Patch from Dmitry Shachnev.
2015-08-01 08:20:04 +12:00
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
2080dc97a7
Issue #22932 : Fix timezones in email.utils.formatdate.
...
Patch from Dmitry Shachnev.
2015-08-01 08:18:22 +12:00
Victor Stinner
9591bf11d1
Merge 3.5 (asyncio)
2015-07-31 17:50:29 +02:00
Victor Stinner
a7a4c41411
Merge 3.4 (asyncio)
2015-07-31 17:50:13 +02:00
Victor Stinner
6fb1e740c6
Fix ResourceWarning in asyncio.BaseSubprocessTransport
...
Issue #24763 : Fix resource warnings when asyncio.BaseSubprocessTransport
constructor fails, if subprocess.Popen raises an exception for example.
Patch written by Martin Richard, test written by me.
2015-07-31 17:49:43 +02:00
Berker Peksag
fa3922cfd0
Issue #13248 : Delete remaining references of inspect.getargspec().
...
Noticed by Yaroslav Halchenko.
2015-07-31 04:11:29 +03:00
Robert Collins
2808e441c5
Issue #23779 : imaplib raises TypeError if authenticator tries to abort.
...
Patch from Craig Holmquist.
2015-07-31 09:02:09 +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
Robert Collins
5ccc18f298
Issue #23779 : imaplib raises TypeError if authenticator tries to abort.
...
Patch from Craig Holmquist.
2015-07-31 08:59:02 +12:00
Berker Peksag
76b1714be8
Issue #24360 : Improve __repr__ of argparse.Namespace() for invalid identifiers.
...
Patch by Matthias Bussonnier.
2015-07-29 23:51:47 +03:00
Robert Collins
d32a944037
Issue #23254 : Document how to close the TCPServer listening socket.
...
Patch from Martin Panter.
2015-07-29 12:55:33 +12: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
Robert Collins
1ee9283254
Issue #23254 : Document how to close the TCPServer listening socket.
...
Patch from Martin Panter.
2015-07-29 12:52:40 +12:00
Berker Peksag
d7a094c1ce
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:49 +03: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
Berker Peksag
aaf6114b37
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:06:31 +03:00
Antoine Pitrou
870db9025f
Closes #20544 : use specific asserts in operator tests.
...
Patch by Serhiy.
2015-07-26 13:11:49 +02:00
Serhiy Storchaka
0ccf208653
Issue #24683 : Fixed crashes in _json functions called with arguments of
...
inappropriate type.
2015-07-26 09:03:16 +03: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
Serhiy Storchaka
83236f7a8b
Issue #24683 : Fixed crashes in _json functions called with arguments of
...
inappropriate type.
2015-07-26 09:01:22 +03:00
Robert Collins
c94a1dc4c9
- Issue #2091 : error correctly on open() with mode 'U' and '+'
...
open() accepted a 'U' mode string containing '+', but 'U' can only be used with
'r'. Patch from Jeff Balogh and John O'Connor.
2015-07-26 06:43:13 +12:00
Berker Peksag
882667203c
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:32 +03: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
Berker Peksag
5a294d822b
Issue #21697 : shutil.copytree() now correctly handles symbolic links that point to directories.
...
Patch by Eduardo Seabra and Thomas Kluyver.
2015-07-25 14:53:48 +03:00
Berker Peksag
78751f8e77
Issue #24279 : Update test_base64 to use test.support.script_helper.
...
Initial patch by Christie.
2015-07-25 14:14:50 +03:00
Berker Peksag
00f8197540
Issue #24279 : Update test_base64 to use test.support.script_helper.
...
Initial patch by Christie.
2015-07-25 14:14:24 +03:00
Victor Stinner
9625340cc8
Merge 3.5 (asyncio)
2015-07-25 02:45:18 +02:00
Victor Stinner
389e3d768d
Merge 3.4
2015-07-25 02:43:31 +02:00
Victor Stinner
eaf16abc68
asyncio: sync with github
...
* Fix ResourceWarning warnings in test_streams
* Return True from StreamReader.eof_received() to fix
http://bugs.python.org/issue24539 (but still needs a unittest).
Add StreamReader.__repr__() for easy debugging.
* remove unused imports
* Issue #234 : Drop JoinableQueue on Python 3.5+
2015-07-25 02:40:40 +02:00
Berker Peksag
0bb2c217b4
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:37:27 +03: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
e0fcf2d205
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:07:12 +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
Serhiy Storchaka
178f0b6ddc
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:02:53 +03:00
Meador Inge
f98c35a816
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:52:49 -05: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
f1b5ccb993
Issue #13248 : Remove inspect.getargspec from 3.6 (deprecated from 3.0)
2015-07-23 17:36:02 +03:00
Yury Selivanov
28cff18ded
Merge 3.5 (issues #21217 , #24485 ).
2015-07-23 17:10:24 +03:00
Yury Selivanov
4f4913b38b
Issue #24485 : Revert backwards compatibility breaking changes of #21217 .
2015-07-23 17:10:00 +03:00
Yury Selivanov
56786c9ea2
Merge 3.5 (Issue #24692 )
2015-07-23 15:58:57 +03:00
Yury Selivanov
4887523c03
Issue #24692 : Add more tests for types.coroutine
2015-07-23 15:58:37 +03:00
Yury Selivanov
38d3876bfb
Merge 3.5 (Issue #24619 )
2015-07-23 15:02:25 +03:00
Yury Selivanov
96ec934e75
Issue #24619 : Simplify async/await tokenization.
...
This commit simplifies async/await tokenization in tokenizer.c,
tokenize.py & lib2to3/tokenize.py. Previous solution was to keep
a stack of async-def & def blocks, whereas the new approach is just
to remember position of the outermost async-def block.
This change won't bring any parsing performance improvements, but
it makes the code much easier to read and validate.
2015-07-23 15:01:58 +03:00
Yury Selivanov
6d35043e49
Merge 3.5 (Issue #24687 )
2015-07-23 09:11:13 +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
9b7a2445d9
Merge 3.5 (Issue #24688 )
2015-07-23 08:55:07 +03:00
Yury Selivanov
2f07a66ded
Issue #24688 : ast.get_docstring() for 'async def' functions.
2015-07-23 08:54:35 +03:00
Berker Peksag
f25f788c6c
Issue #23440 : Improve http.server.SimpleHTTPRequestHandler tests
...
* Tests that index.html is served, rather than an automatic directory listing
* Tests that there is no extra data sent after the response
Patch by Martin Panter.
2015-07-22 19:26:09 +03:00
Berker Peksag
b5754321d0
Issue #23440 : Improve http.server.SimpleHTTPRequestHandler tests
...
* Tests that index.html is served, rather than an automatic directory listing
* Tests that there is no extra data sent after the response
Patch by Martin Panter.
2015-07-22 19:25:37 +03:00
Robert Collins
9e1bf4968f
Issue #8585 : improved tests for zipimporter2. Patch from Mark Lawrence.
2015-07-23 02:57:56 +12:00
Yury Selivanov
0811c5d7ba
Merge 3.5 (Issue #24619 )
2015-07-22 14:49:13 +03:00
Yury Selivanov
b7666a3093
Issue #24619 : More tests; fix nits in compiler.c
2015-07-22 14:48:57 +03:00
Yury Selivanov
3f1701a1fb
Merge 3.5 (Issue #24619 )
2015-07-22 13:38:18 +03: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
Serhiy Storchaka
8ff3a5a9cd
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:41:39 +03:00
Serhiy Storchaka
296b347db7
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:40:18 +03:00
Serhiy Storchaka
750eae1bd4
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:39:26 +03:00
Yury Selivanov
8d603f1796
Merge 3.5 (Issue #24669 )
2015-07-21 19:04:22 +03: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
Berker Peksag
95e0960220
Use setUpClass and tearDownClass correctly in test_os.
...
According to the documentation, they must be decorated as classmethods.
2015-07-21 09:30:09 +03:00
Berker Peksag
036a71bf25
Use setUpClass and tearDownClass correctly in test_os.
...
According to the documentation, they must be decorated as classmethods.
2015-07-21 09:29:48 +03:00
Victor Stinner
fd44384f33
Merge 3.5
2015-07-20 17:13:28 +02:00
Victor Stinner
3d0b8422bc
Merge 3.4
2015-07-20 17:13:16 +02:00
Victor Stinner
c0b1e0f868
Issue #24675 : Avoid DeprecationWarning in test_os
...
Patch written by Martin Panter. I replace tearDown() with addCleanup().
2015-07-20 17:12:57 +02:00
Serhiy Storchaka
498b5e98e9
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:37:31 +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
44a5cd654d
Issue #24206 : Fixed __eq__ and __ne__ methods of inspect classes.
2015-07-18 23:21:16 +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
3018cc49e8
Issue #24206 : Fixed __eq__ and __ne__ methods of inspect classes.
2015-07-18 23:19:05 +03:00
Victor Stinner
71f89216c4
Merge 3.5
2015-07-16 22:21:11 +02:00
Victor Stinner
8cc80f1d81
Merge 3.4
2015-07-16 22:20:19 +02:00
Victor Stinner
579db160b3
Closes #23247 : Fix a crash in the StreamWriter.reset() of CJK codecs
2015-07-16 22:17:31 +02:00
Raymond Hettinger
d702044bcd
merge
2015-07-15 23:52:29 -07: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
3a22908659
Issue #24631 : Fixed regression in the timeit modulu with multyline setup.
2015-07-15 22:12:33 +03:00
Serhiy Storchaka
ced770da07
Issue #24631 : Fixed regression in the timeit modulu with multyline setup.
2015-07-15 22:11:36 +03:00
Victor Stinner
40949e0544
Merge 3.5 (asyncio)
2015-07-09 23:16:46 +02:00
Victor Stinner
fb578f0a05
Merge 3.4 (asyncio)
2015-07-09 23:14:50 +02:00
Victor Stinner
e6ecea53c8
asyncio: sync with github asyncio
...
* queues: get coroutine from asyncio.coroutines, not from asyncio.tasks
* tets: replace tulip with asyncio in comments
2015-07-09 23:13:50 +02:00
Barry Warsaw
f5b062997b
- 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:42:37 -04: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
d6b0c4b8a4
Added regression test for issue24581.
2015-07-08 23:02:51 +03:00
Serhiy Storchaka
9e7a0468ef
Added regression test for issue24581.
2015-07-08 23:02:18 +03:00
Serhiy Storchaka
af320b389b
Added regression test for issue24581.
2015-07-08 22:58:55 +03:00
Lars Gustäbel
7afe40e40e
Merge with 3.5: Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:32:05 +02: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
Benjamin Peterson
9f71cb0fee
merge 3.5 ( #24569 )
2015-07-05 10:38:05 -05: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
d34c246baf
merge 3.5 ( #24407 )
2015-07-04 19:59:50 -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
Yury Selivanov
d48fb485d9
Merge 3.5 (Issue #24400 )
2015-07-03 13:11:54 -04: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
Yury Selivanov
4bbc3cc760
Merge 3.5
2015-07-03 01:16:20 -04:00
Yury Selivanov
ccc897f839
Add a rudimentary test for StopAsyncIteration in test_exceptions.
2015-07-03 01:16:04 -04:00
Yury Selivanov
bb215e2300
Merge 3.5 (Issue #19235 )
2015-07-03 01:10:11 -04:00
Yury Selivanov
f488fb422a
Issue #19235 : Add new RecursionError exception. Patch by Georg Brandl.
2015-07-03 01:04:23 -04:00
Yury Selivanov
b166d58b9e
Merge 3.5 (Issue #24450 )
2015-07-03 00:35:29 -04:00
Yury Selivanov
53e623075d
Issue #24450 : Proxy cr_await and gi_yieldfrom in @types.coroutine
2015-07-03 00:35:02 -04:00
Yury Selivanov
d6d0b5b1fa
Merge 3.5 (Issue #24450 )
2015-07-03 00:24:14 -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
ac2ed9d895
merge 3.5
2015-07-02 16:58:38 -05:00
Benjamin Peterson
b32b998bf7
merge 3.4
2015-07-02 16:58:31 -05:00
Benjamin Peterson
d3a2a95125
use correct __new__ method ( closes #24552 )
2015-07-02 16:58:22 -05:00
Benjamin Peterson
09dd773c13
merge 3.5 ( #24552 )
2015-07-02 16:19:05 -05: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
60eaba04cd
Merge with 3.5: Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:42:09 +02: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
9dbd4790a3
Merge 3.5
2015-07-01 12:30:26 -04:00
Yury Selivanov
f27015255f
Issue #24400 : Add one more unittest for CoroutineType.__await__
2015-07-01 12:29:55 -04:00
Yury Selivanov
d18f9854b4
Merge 3.5
2015-06-30 22:06:55 -04:00
Yury Selivanov
59a3b6764c
Issue #24541 : Drop test_inspect.test_eightteen unittest; update docs
...
Suggested by Martin Panter.
2015-06-30 22:06:42 -04:00
Yury Selivanov
50d5516dce
Merge 3.5
2015-06-30 21:45:03 -04:00
Yury Selivanov
22f68d5dd6
Issue #24541 : Update comment in test_inspect.test_eightteen
2015-06-30 21:44:52 -04:00
Yury Selivanov
17314ab4dc
Merge 3.5 (Issue #24400 )
2015-06-30 21:19:00 -04:00
Yury Selivanov
8a8f453c5a
Issue #24400 : Fix failing unittest
2015-06-30 21:18:27 -04:00
Yury Selivanov
93a3252c9c
Merge 3.5 (Issue #24400 )
2015-06-30 18:19:18 -04:00
Yury Selivanov
a74b5e59af
Issue #24400 : Remove inspect.isawaitable().
...
isawaitable() was added before collections.abc.Awaitable; now,
with Awaitable, it is no longer needed (we don't have ishashable()
or isiterable() methods in the inspect module either).
2015-06-30 18:19:01 -04:00
Yury Selivanov
b2c42c2a8f
Merge 3.5
2015-06-30 12:51:29 -04:00
Yury Selivanov
86cd7d6b75
test_coroutines: remove whitespace
2015-06-30 12:51:12 -04:00
Yury Selivanov
3bd2b98c29
Merge 3.5 (Issue #24528 )
2015-06-30 12:49:18 -04:00
Yury Selivanov
9dec03571f
Issue #24528 : Improve error message for awaits in comprehensions
2015-06-30 12:49:04 -04:00
Serhiy Storchaka
c28e985f3c
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:11:51 +03: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
81da944d61
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:55 +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
cbc50d96b8
Issue #20387 : Merge with 3.5
2015-06-28 11:15:13 -04: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
1e8d91adfe
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module.
2015-06-28 17:56:28 +03: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
9aad9f2740
Issue #24336 : The contextmanager decorator now works with functions with
...
keyword arguments called "func" and "self". Patch by Martin Panter.
2015-06-28 17:09:11 +03: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
b5048d3938
merge 3.5
2015-06-27 15:46:31 -05:00
Benjamin Peterson
4801383c29
upgrade to Unicode 8.0.0
2015-06-27 15:45:56 -05:00
Berker Peksag
ae44292fe2
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:39:53 +03:00
Berker Peksag
a7c781724f
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:39:26 +03:00
Berker Peksag
89584c97e4
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:38:48 +03:00
Yury Selivanov
2cb6b7a7ff
Merge 3.5 (issue #24325 & #24400 )
2015-06-24 12:51:55 -04:00
Yury Selivanov
f847f1fba7
Issue #24400 , #24325 : More tests for types._GeneratorWrapper
...
Also, make 'wrapped' and 'isgen' private.
2015-06-24 12:49:28 -04:00
Yury Selivanov
ff9284bcb7
Merge 3.5 (Issue #24325 , #24400 )
2015-06-24 11:45:21 -04:00
Yury Selivanov
00e3372358
Issue #24325 , #24400 : Add more unittests for types.coroutine; tweak wrapper implementation.
2015-06-24 11:44:51 -04:00
Yury Selivanov
0ebde5b893
Merge 3.5
2015-06-24 10:55:33 -04:00
Yury Selivanov
fcba97242b
Issue #24495 , #24400 : Test asyncio.Task.repr in debug mode
2015-06-24 10:55:12 -04:00
Yury Selivanov
57ed4181fe
Fix asyncio unittests in debug mode (Merge 3.5)
2015-06-24 10:48:20 -04:00
Yury Selivanov
5ac716251f
Fix asyncio unittests in debug mode
2015-06-24 10:47:44 -04:00
Yury Selivanov
db422576a7
Issue #24400 : Fix CoroWrapper for 'async def' coroutines
2015-06-24 10:32:41 -04:00
Yury Selivanov
8f1c99321b
Issue #24400 : Fix CoroWrapper for 'async def' coroutines
2015-06-24 10:32:22 -04:00
Yury Selivanov
29a602a140
Issue #24400 : Fix CoroWrapper for 'async def' coroutines
2015-06-24 10:30:14 -04:00
Steve Dower
049030b06a
Closes #24244 : Removes invalid test from test_time
2015-06-23 20:48:52 -07:00
Steve Dower
7aec764d73
Closes #24244 : Removes invalid test from test_time
2015-06-23 20:48:32 -07:00
Antoine Pitrou
d6362db83d
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:39:57 +02: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
6edc2f7549
Issue #24400 : Merge 3.5
2015-06-22 12:31:24 -04: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
Jason R. Coombs
b6d1cdda8e
Issue #20387 : Correct test to properly capture expectation.
2015-06-25 22:42:24 -04:00
Jason R. Coombs
5713b3c5bf
Issue #20387 : Add test capturing failure to roundtrip indented code in tokenize module.
2015-06-20 19:52:22 -04:00
Jason R. Coombs
7cf36387e4
Remove unused import and remove doctest-only import into doctests.
2015-06-20 19:13:50 -04:00
Victor Stinner
138adb8d05
(Merge 3.4) Issue #15745 : Rewrite os.utime() tests in test_os
...
* Don't use the timestamp of an existing file anymore, only use fixed
timestamp
* Enhance the code checking the resolution of the filesystem timestamps.
* Check timestamps with a resolution of 1 microsecond instead of 1 millisecond
* When os.utime() uses the current system clock, tolerate a delta of 20 ms.
Before some os.utime() tolerated a different of 10 seconds.
* Merge duplicated tests and simplify the code
2015-06-12 22:01:54 +02:00
Victor Stinner
e12e7aa3fd
Issue #15745 : Rewrite os.utime() tests in test_os
...
* Don't use the timestamp of an existing file anymore, only use fixed
timestamp
* Enhance the code checking the resolution of the filesystem timestamps.
* Check timestamps with a resolution of 1 microsecond instead of 1 millisecond
* When os.utime() uses the current system clock, tolerate a delta of 20 ms.
Before some os.utime() tolerated a different of 10 seconds.
* Merge duplicated tests and simplify the code
2015-06-12 21:58:00 +02:00
Victor Stinner
cf05970307
Remove unused import on test_os
2015-06-12 21:57:50 +02:00
Victor Stinner
47aacc8f69
Issue #15745 : Rewrite os.utime() tests in test_os
...
* Don't use the timestamp of an existing file anymore, only use fixed
timestamp
* Enhance the code checking the resolution of the filesystem timestamps.
* Check timestamps with a resolution of 1 microsecond instead of 1 millisecond
* When os.utime() uses the current system clock, tolerate a delta of 20 ms.
Before some os.utime() tolerated a different of 10 seconds.
* Merge duplicated tests and simplify the code
2015-06-12 17:26:23 +02:00
Serhiy Storchaka
c5d2d40238
Issue #24299 : Fixed test__locale on Solaris.
2015-06-08 18:50:28 +03:00
Serhiy Storchaka
23e6109112
Issue #24299 : Fixed test__locale on Solaris.
2015-06-08 18:50:18 +03:00
Serhiy Storchaka
07c002573a
Issue #24299 : Fixed test__locale on Solaris.
2015-06-08 18:48:33 +03:00
Serhiy Storchaka
29e26a72d7
Issue #14373 : Other attempt to fix threaded test for lru_cache().
2015-06-08 12:44:43 +03:00
Serhiy Storchaka
391af751f2
Issue #14373 : Other attempt to fix threaded test for lru_cache().
2015-06-08 12:44:18 +03:00
Serhiy Storchaka
40e74006ad
Issue #14373 : C implementation of functools.lru_cache() now can be used with
...
methods.
2015-06-08 11:20:22 +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
Serhiy Storchaka
df2cbbcb55
Issue #14373 : Fixed threaded test for lru_cache(). Added new threaded test.
2015-06-08 11:15:36 +03:00
Serhiy Storchaka
77cb197aaa
Issue #14373 : Fixed threaded test for lru_cache(). Added new threaded test.
2015-06-08 11:14:31 +03:00