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
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
197ae02f87
Updated pydoc topics for 3.5.0b4.
2015-07-25 14:17:35 -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
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
389e3d768d
Merge 3.4
2015-07-25 02:43:31 +02: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
Robert Collins
88ba360c88
Issue #21750 : Further fixup to be styled like other mock APIs.
2015-07-24 03:48:45 +12:00
Yury Selivanov
4f4913b38b
Issue #24485 : Revert backwards compatibility breaking changes of #21217 .
2015-07-23 17:10:00 +03:00
Yury Selivanov
4887523c03
Issue #24692 : Add more tests for types.coroutine
2015-07-23 15:58:37 +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
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
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
Yury Selivanov
b7666a3093
Issue #24619 : More tests; fix nits in compiler.c
2015-07-22 14:48:57 +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
296b347db7
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:40:18 +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
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
Terry Jan Reedy
fd580cbd17
Merge with 3.4
2015-07-20 17:45:22 -04:00
Victor Stinner
3d0b8422bc
Merge 3.4
2015-07-20 17:13:16 +02: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
Steve Dower
2d37cb2e1d
Fixes sys.path for applocal environments.
2015-07-17 11:59:21 -07:00
Robert Collins
1a80081272
Typo fix in mock.patch.
...
Patch from https://github.com/testing-cabal/mock/issues/215
2015-07-17 22:00:28 +12: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
Serhiy Storchaka
3d031e6199
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
2015-07-10 22:13:52 +03:00
Serhiy Storchaka
e0fd7ef6bb
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
2015-07-10 22:13:40 +03: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
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
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
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
Ned Deily
53ecc58bd9
Issue #24540 : merger from 3.4
2015-07-05 11:45:31 -07:00
Ned Deily
54630d999f
Issue #24540 : fix typo in json.dumps docstring
2015-07-05 11:45:01 -07:00
Larry Hastings
ab30353adb
Merge with ongoing work in 3.5 branch.
2015-07-05 10:31:09 -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
63eaf7b73d
merge heads
2015-07-04 22:53:11 -05:00
Benjamin Peterson
1da0612e70
merge heads
2015-07-04 22:52:33 -05:00
Larry Hastings
aaa377f01d
Documentation fixes for 3.5.0b3.
2015-07-04 19:11:41 -07: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
2e770ce9a0
Issue #24330 : merge from 3.4
2015-07-04 15:06:21 -07:00
Ned Deily
f1ce6deb41
Issue #24330 : Update IDLE doc and help to note "Configure IDLE" difference
...
on OS X. Original patch by André Freitas.
2015-07-04 15:05:07 -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
Yury Selivanov
ccc897f839
Add a rudimentary test for StopAsyncIteration in test_exceptions.
2015-07-03 01:16:04 -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
27be130ec7
Merge 3.4 (Issue #24450 )
2015-07-03 00:41:40 -04:00
Yury Selivanov
09e6058838
Issue #24450 : Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper
2015-07-03 00:41:16 -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
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
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
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
f27015255f
Issue #24400 : Add one more unittest for CoroutineType.__await__
2015-07-01 12:29:55 -04:00
Donald Stufft
d6e51560b3
merge in setuptools/pip update
2015-07-01 11:31:13 -04:00
Donald Stufft
fe6399e894
Update setuptools to 18.0.1 and pip to 7.1.0
2015-07-01 11:30:50 -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
22f68d5dd6
Issue #24541 : Update comment in test_inspect.test_eightteen
2015-06-30 21:44:52 -04:00
Yury Selivanov
8a8f453c5a
Issue #24400 : Fix failing unittest
2015-06-30 21:18:27 -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
86cd7d6b75
test_coroutines: remove whitespace
2015-06-30 12:51:12 -04:00
Yury Selivanov
9dec03571f
Issue #24528 : Improve error message for awaits in comprehensions
2015-06-30 12:49:04 -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
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
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
00e3372358
Issue #24325 , #24400 : Add more unittests for types.coroutine; tweak wrapper implementation.
2015-06-24 11:44:51 -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
5ac716251f
Fix asyncio unittests in debug mode
2015-06-24 10:47:44 -04:00
Yury Selivanov
339d5e7d85
Fix asyncio unittests in debug mode
2015-06-24 10:45:44 -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
Yury Selivanov
dfbd27f0be
asyncio: Merge changes from issue #24400 .
2015-06-24 09:41:35 -04:00
Steve Dower
7aec764d73
Closes #24244 : Removes invalid test from test_time
2015-06-23 20:48:32 -07: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
Dingyuan Wang
e411b6629f
Issue #20387 : Restore retention of indentation during untokenize.
2015-06-22 10:01:12 +08:00
Jason R. Coombs
b6d1cdda8e
Issue #20387 : Correct test to properly capture expectation.
2015-06-25 22:42:24 -04:00
Serhiy Storchaka
ac803cd2f3
Issue #24408 : Fixed test for tkinter.Font on OS X.
...
Based on patch by Martin Panter.
2015-06-21 14:42:57 +03:00
Serhiy Storchaka
753a1dfcc2
Issue #24408 : Fixed test for tkinter.Font on OS X.
...
Based on patch by Martin Panter.
2015-06-21 14:41:44 +03: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
Steve Dower
f3291a8340
Issue #8232 : Renamed WinFireFox to WinFirefox
2015-06-15 09:11:14 -07: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
Serhiy Storchaka
fabdc827a5
Issue #24408 : Added more tkinter.Font tests.
2015-06-09 07:21:00 +03:00
Serhiy Storchaka
c0ed707b2f
Issue #24408 : Added more tkinter.Font tests.
2015-06-09 07:18:54 +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
4fafda731a
Issue #24408 : Fixed AttributeError in measure() and metrics() methods of
...
tkinter.Font.
2015-06-08 18:43:55 +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
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
77cb197aaa
Issue #14373 : Fixed threaded test for lru_cache(). Added new threaded test.
2015-06-08 11:14:31 +03:00
Steve Dower
93cfeb93ac
Issue #8232 : webbrowser support incomplete on Windows. Patch by Brandon Milam
2015-06-07 21:35:39 -07:00
Tal Einat
988df6a365
added matmul and imatmul to operator.__all__
2015-06-07 19:21:01 +03:00
Yury Selivanov
94c2263005
Issue 24374: Plug refleak in set_coroutine_wrapper
2015-06-04 10:16:51 -04:00
Eric Snow
4fabf02633
Issue #24369 : Defend against key-changes during iteration.
2015-06-04 00:09:56 -06:00
Eric Snow
ac02ef373f
Issue #24368 : Support keyword arguments in OrderedDict methods.
2015-06-02 20:42:14 -06:00
Yury Selivanov
aab3c4a211
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
2015-06-02 18:43:51 -04:00
Donald Stufft
231d90609b
Merge update to pip/setuptools
2015-06-02 11:39:55 -04:00
Donald Stufft
96cf848a8b
Upgrade pip to 7.0.3 and setuptools to 17.0
2015-06-02 11:39:31 -04:00
Donald Stufft
67872ba91a
Merge the fix for #24267
2015-06-02 10:38:01 -04:00
Donald Stufft
71a8589ddc
Closes #24267 - Does not check version on ensurepip uninstall
...
Ensure that the uninstall helper for Windows passes the proper
flags to pip to prevent it from checking PyPI if the pip that
we're currently attempting to uninstall is the latest verison.
2015-06-02 10:37:08 -04:00
Eric Snow
b952ab43f2
Issue #24359 : Check for changed OrderedDict size during iteration.
2015-06-01 23:35:13 -06:00
Eric Snow
d171975609
Issue #24348 : Drop superfluous increfs/decrefs.
2015-06-01 23:12:13 -06:00
Eric Snow
a762af74b2
Issue #24347 : Set KeyError if PyDict_GetItemWithError returns NULL.
2015-06-01 22:59:08 -06:00
Larry Hastings
c72056a1ae
Merge release engineering changes with 3.5 branch head.
2015-05-31 21:43:57 -07:00
Yury Selivanov
e42cc38639
Issue 24017: Add a test for CoroWrapper and 'async def' coroutines
2015-05-31 21:44:05 -04:00
Yury Selivanov
6a0fab92f9
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
2015-05-31 21:37:23 -04:00
Yury Selivanov
70adad2a0e
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
2015-05-31 21:37:09 -04:00
Tal Einat
d5519ed7f4
Issue #19543 : Implementation of isclose as per PEP 485
...
For details, see:
PEP 0485 -- A Function for testing approximate equality
Functions added: math.isclose() and cmath.isclose().
Original code by Chris Barker. Patch by Tal Einat.
2015-05-31 22:05:00 +03:00
Yury Selivanov
439c5fe3ae
Issue 24004: Fix DeprecationWarning in a unittest
2015-05-31 11:28:35 -04:00
Serhiy Storchaka
d4ea03c785
Issue #24284 : The startswith and endswith methods of the str class no longer
...
return True when finding the empty string and the indexes are completely out
of range.
2015-05-31 09:15:51 +03:00
Yury Selivanov
ad583a8e6d
Issue 24004: Add a unittest for @asyncio.coroutine supporting Awaitables
2015-05-30 21:04:37 -04:00
Yury Selivanov
353f2299bf
Issue 24004: Support Awaitables (pep 492) in @asyncio.coroutine decorator
...
(Merge 3.4)
2015-05-30 21:02:34 -04:00
Yury Selivanov
a316085192
Issue 24004: Support Awaitables (pep 492) in @asyncio.coroutine decorator
2015-05-30 21:02:12 -04:00
Larry Hastings
e8ff0caa72
Regenerated pydoc topic index in preparation for Python 3.5.0b2.
2015-05-30 16:58:27 -07:00
Yury Selivanov
bf304fcb32
Issue #23934 : Fix inspect.signature to fail correctly for builtin types.
...
Initial patch by James Powell.
2015-05-30 17:08:36 -04:00
Eric Snow
67fb92e8c6
Issue #16991 : Do not return None from OrderedDict.__reversed__.
2015-05-30 11:43:36 -06:00
Serhiy Storchaka
1b560cbf85
Issue #5633 : Fixed timeit when the statement is a string and the setup is not.
...
Refactored timeit.__init__ for unified handling of stmt and setup parameters.
2015-05-30 19:44:55 +03:00
Serhiy Storchaka
f28fa66351
Issue #5633 : Fixed timeit when the statement is a string and the setup is not.
2015-05-30 19:38:26 +03:00
Yury Selivanov
7aa5341164
Reverting my previous commit.
...
Something went horribly wrong when I was doing `hg rebase`.
2015-05-30 10:57:56 -04:00
Serhiy Storchaka
f49c42324f
Use test.support.start_threads() in threaded lru_cache tests.
2015-05-30 15:49:42 +03:00
Serhiy Storchaka
bf2b3b72d3
Use test.support.start_threads() in threaded lru_cache tests.
2015-05-30 15:49:17 +03:00
Raymond Hettinger
4c97a62ae3
Issue #23509 : Speed up Counter operators
...
(Based on patch by Serhiy Storchaka.)
2015-05-29 22:14:07 -07:00
Benjamin Peterson
e16f427243
Merge 3.5
2015-05-30 00:02:25 -05:00
Benjamin Peterson
3d1151d2c0
use assert method in another place
2015-05-30 00:02:17 -05:00
Eric Snow
96c6af9b20
Issue #16991 : Add a C implementation of collections.OrderedDict.
2015-05-29 22:21:39 -06:00
Eric Snow
47db71756d
Issue #16991 : Add a C implementation of collections.OrderedDict.
2015-05-29 22:21:39 -06:00
Benjamin Peterson
3979323ca3
merge 3.5
2015-05-29 18:44:50 -05:00
Benjamin Peterson
0a3297d7d4
use assert method ( #24328 )
2015-05-29 18:44:45 -05:00
Benjamin Peterson
0c70ca9aac
merge 3.5 ( #24328 )
2015-05-29 17:11:36 -05:00
Benjamin Peterson
e20056c8f7
fix importing one char extension modules ( closes #24328 )
2015-05-29 17:10:30 -05:00
Serhiy Storchaka
07739f3555
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:58:09 +03:00
Serhiy Storchaka
a663121e10
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:57:21 +03:00
Serhiy Storchaka
50451eb912
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Yury Selivanov
38bc0a7f97
Issue 24316: Wrap gen objects returned from callables in types.coroutine
...
(Merge 3.5)
2015-05-29 16:19:34 -04:00
Yury Selivanov
13f7723d81
Issue 24316: Wrap gen objects returned from callables in types.coroutine
2015-05-29 16:19:18 -04:00
Yury Selivanov
7ad0419c4d
Issue 24316: Fix types.coroutine() to accept objects from Cython
...
(Merge 3.5)
2015-05-29 09:06:24 -04:00
Yury Selivanov
c565cd5d1b
Issue 24316: Fix types.coroutine() to accept objects from Cython
2015-05-29 09:06:05 -04:00
Yury Selivanov
a24fcfdf23
Issue 24315: Make collections.abc.Coroutine derived from Awaitable
...
(Merge 3.5)
2015-05-29 09:01:47 -04:00
Yury Selivanov
56fc614025
Issue 24315: Make collections.abc.Coroutine derived from Awaitable
2015-05-29 09:01:29 -04:00
Benjamin Peterson
0938d98bcc
merge 3.5
2015-05-28 14:40:15 -05:00
Benjamin Peterson
264be6f48f
remove STORE_MAP, since it's unused
2015-05-28 14:40:08 -05:00
Benjamin Peterson
2ec8f9bffc
merge 3.5 ( #11205 )
2015-05-28 14:31:14 -05:00
Benjamin Peterson
ee85339cc6
in dict displays, evaluate the key before the value ( closes #11205 )
...
Patch partially by Steve Dougherty.
2015-05-28 14:30:26 -05:00
Yury Selivanov
26f7057b36
Issue 24297: Add a unittest that Lib/symbol.py is in sync with Grammar
2015-05-28 14:06:12 -04:00
Serhiy Storchaka
6e6883f11a
Issue #24309 : Removed Python 2 idioms.
2015-05-28 20:45:29 +03:00
Yury Selivanov
ee941b0278
asyncio: Drop some useless code from tasks.py.
...
See also issue 24017.
2015-05-28 10:53:04 -04:00
Yury Selivanov
6076a385e3
asyncio: Drop some useless code from tasks.py.
...
See also issue 24017.
2015-05-28 10:52:46 -04:00
Yury Selivanov
1ad08a5555
asyncio: Drop some useless code from tasks.py.
...
See also issue 24017.
2015-05-28 10:52:19 -04:00
Yury Selivanov
72f389fed0
Issue 24298: Fix signature() to properly unwrap wrappers around bound methods
2015-05-27 21:59:27 -04:00
Yury Selivanov
507cd3cf91
Issue 24298: Fix signature() to properly unwrap wrappers around bound methods
2015-05-27 21:59:03 -04:00
Yury Selivanov
46c759d76d
Issue 24298: Fix signature() to properly unwrap wrappers around bound methods
2015-05-27 21:56:53 -04:00
Yury Selivanov
8544e2584d
Issue 24297: Update symbol.py. See also issue 24017.
2015-05-27 11:08:46 -04:00
Yury Selivanov
0109812040
Issue 24297: Update symbol.py. See also issue 24017.
2015-05-27 11:08:19 -04:00
Lars Gustäbel
572183eaab
Merge with 3.5: tarfile.open() with mode 'x' created files without an end of archive marker.
2015-05-27 13:05:30 +02:00
Lars Gustäbel
20703c6969
tarfile.open() with mode 'x' created files without an end of archive marker.
2015-05-27 12:53:44 +02:00
Raymond Hettinger
944db38cb7
Issue #23509 : Speed up Counter operators
...
(Based on patch by Serhiy Storchaka.)
2015-05-26 10:35:15 -07:00
Nick Coghlan
06f155f488
Merge fix for issue #24285 from 3.5
2015-05-26 21:57:16 +10:00
Nick Coghlan
55871f04bf
Issue #24285 : fix importing extensions from packages
2015-05-26 21:48:17 +10:00
Raymond Hettinger
c074e9d765
Issue #24286 : Forward port dict view abstract base class tests.
2015-05-26 01:47:58 -07:00
Benjamin Peterson
09479d0b94
merge 3.4
2015-05-25 21:25:09 -05:00
Benjamin Peterson
82d8f06fcd
merge 3.3
2015-05-25 21:24:48 -05:00
Benjamin Peterson
86c3a3b0b7
merge 3.2
2015-05-25 21:24:26 -05:00
Benjamin Peterson
b03856ab66
keep distutils version in sync with python version automatically
2015-05-25 21:24:00 -05:00
Victor Stinner
24d262af0b
(Merge 3.5) Issue #23840 : tokenize.open() now closes the temporary binary file
...
on error to fix a resource warning.
2015-05-26 00:46:44 +02:00
Victor Stinner
387729e183
Issue #23840 : tokenize.open() now closes the temporary binary file on error to
...
fix a resource warning.
2015-05-26 00:43:58 +02:00
Larry Hastings
aca575cb25
Merge.
2015-05-24 16:41:42 -07:00
Serhiy Storchaka
46c5611948
Backed out changeset: b0a0b9b59012
2015-05-24 21:53:49 +03:00