Benjamin Peterson
104b9e0cca
fix many custom mro() edge cases and improve code quality ( #22735 )
...
Patch by Eldar Abusalimov.
2015-02-05 22:29:14 -05:00
Ned Deily
9125fe2e50
Issue #23212 : Update OS X installer build OpenSSL to 1.0.1l.
...
(currently only used for builds with <= 10.5 deployment targets)
2015-02-06 14:13:30 +11:00
Victor Stinner
aad7b2e4f5
test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
...
on Windows
2015-02-05 14:25:05 +01:00
Serhiy Storchaka
aef859c5ee
Issue #18982 : Add tests for CLI of the calendar module.
2015-02-05 15:14:35 +02:00
Victor Stinner
a87501fd23
asyncio: BaseEventLoop: rename _owner to _thread_id
2015-02-05 11:45:33 +01:00
Ned Deily
05784a706e
Issue #23345 : Prevent test_ssl failures with large OpenSSL patch level
...
values (like 0.9.8zc).
2015-02-05 17:20:13 +11:00
Donald Stufft
ff0fdef6d0
Update pip to 6.0.8
2015-02-04 22:00:17 -05:00
Gregory P. Smith
c3493aa951
Make the stdlib test suite helper test.script_helper._assert_python no longer
...
pass -I or -E to the child process by default when the environment is required
for the child process interpreter to function properly.
2015-02-04 17:10:19 -08:00
Victor Stinner
6a1b004b83
asyncio doc: explain how to display ResourceWarning in the debug mode section
2015-02-04 16:14:33 +01:00
Victor Stinner
2fc2313038
asyncio: Only call _check_resolved_address() in debug mode
...
* _check_resolved_address() is implemented with getaddrinfo() which is slow
* If available, use socket.inet_pton() instead of socket.getaddrinfo(), because
it is much faster
Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to
validate the IPV4 address "127.0.0.1" or the IPv6 address "::1":
* getaddrinfo() 10.4 usec per loop
* inet_pton(): 0.285 usec per loop
On glibc older than 2.14, getaddrinfo() always requests the list of all local
IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other
known issues, it's better to avoid it when it is possible.
2015-02-04 14:51:23 +01:00
Victor Stinner
aa41b9b22b
asyncio: BaseSelectorEventLoop uses directly the private _debug attribute
...
Just try to be consistent: _debug was already used in some places, and always
used in BaseProactorEventLoop.
2015-02-04 14:50:59 +01:00
Gregory P. Smith
2f90aa6366
Fixes issue23390: make profile-opt causes -fprofile-generate and related flags
...
to end up in distutils CFLAGS.
2015-02-04 02:11:56 -08:00
Gregory P. Smith
b9a3dd9dfb
Skip some tests that require a subinterpreter launched with -E or -I when the
...
interpreter under test is being run in an environment that requires the use of
environment variables such as PYTHONHOME in order to function at all.
Adds a private test.script_helper._interpreter_requires_environment() function
to be used with @unittest.skipIf on stdlib test methods requiring this.
2015-02-04 00:59:40 -08:00
Victor Stinner
17d87f8ae4
asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull
2015-02-03 15:09:24 +01:00
Berker Peksag
3265344a85
Issue #23358 : Add missing BaseServer entry to socketserver.__all__.
...
Patch by Martin Panter.
2015-02-03 11:55:09 +02:00
Serhiy Storchaka
c057c3859c
Issue #23099 : Closing io.BytesIO with exported buffer is rejected now to
...
prevent corrupting exported buffer.
2015-02-03 02:00:18 +02:00
Serhiy Storchaka
b5e8e57555
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:35:10 +02:00
Serhiy Storchaka
dee948b359
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:34:09 +02:00
Serhiy Storchaka
4fdb68491e
Issue #22896 : Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
...
and PyObject_AsWriteBuffer().
2015-02-03 01:21:08 +02:00
Benjamin Peterson
b0ef78535a
merge 3.3
2015-02-02 17:47:26 -05:00
Benjamin Peterson
1572944499
reduce memory usage of test ( closes #23369 )
2015-02-02 17:47:07 -05:00
Benjamin Peterson
f5f9c13551
adjust for py3k module renaming
2015-02-02 14:22:13 -05:00
Benjamin Peterson
3356a2e2f0
_clear_type_cache is cpython-only
2015-02-02 14:06:11 -05:00
Victor Stinner
5d44c08f1c
Issue #23353 , asyncio: Workaround CPython bug #23353
...
Don't use yield/yield-from in an except block of a generator. Store the
exception and handle it outside the except block.
2015-02-02 18:36:31 +01:00
Benjamin Peterson
7a66fc22ad
revert lineno and col_offset changes from #16795 ( closes #21295 )
2015-02-02 10:51:20 -05:00
Benjamin Peterson
c468b537cd
merge 3.3 ( #23364 , #23363 )
2015-02-01 21:35:34 -05:00
Benjamin Peterson
0eaabf1c05
check for overflows in permutations() and product() ( closes #23363 , closes #23364 )
2015-02-01 21:34:07 -05:00
Benjamin Peterson
f635dc32b1
merge 3.3 ( #23365 )
2015-02-01 21:11:39 -05:00
Benjamin Peterson
6f082297b2
check for overflow in combinations_with_replacement ( closes #23365 )
2015-02-01 21:10:47 -05:00
Benjamin Peterson
819c4e9bc4
merge 3.3 ( #23366 )
2015-02-01 21:00:15 -05:00
Benjamin Peterson
4b40eeb339
detect overflow in combinations ( closes #23366 )
2015-02-01 20:59:00 -05:00
Benjamin Peterson
d40f136d35
https goodness
2015-02-01 20:17:22 -05:00
Benjamin Peterson
337578b242
fix tests on systems that can't validate python.org
2015-02-01 20:16:59 -05:00
Benjamin Peterson
c0b743a97b
merge 3.3
2015-02-01 18:02:15 -05:00
Benjamin Peterson
68389eaa3f
remove extra ws
2015-02-01 18:02:09 -05:00
Benjamin Peterson
3675cd9db1
merge 3.3 ( #23369 )
2015-02-01 17:59:49 -05:00
Benjamin Peterson
e3bfe19358
fix possible overflow in encode_basestring_ascii ( closes #23369 )
2015-02-01 17:53:53 -05:00
Stefan Krah
3a43d06321
Whitespace.
2015-02-01 19:46:31 +01:00
Stefan Krah
0dc4e153a2
Issue #23352 : Document that Py_buffer.suboffsets must be NULL if no suboffsets
...
are required.
2015-02-01 19:42:12 +01:00
Stefan Krah
7213fcc27e
Issue #23370 : Fix off-by-one error for non-contiguous buffers.
2015-02-01 16:19:23 +01:00
Vinay Sajip
f046dfe60e
Added a cookbook entry on logging audible messages.
2015-02-01 15:17:34 +00:00
Steve Dower
6b8997391b
Issue #23212 : Update Windows copy of OpenSSL to 1.0.1l
2015-01-31 12:19:10 -08:00
Victor Stinner
26f7b8acdc
Issue #23353 : Fix the exception handling of generators in PyEval_EvalFrameEx().
...
At entry, save or swap the exception state even if PyEval_EvalFrameEx() is
called with throwflag=0. At exit, the exception state is now always restored or
swapped, not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with
Antoine Pitrou.
2015-01-31 10:29:47 +01:00
Serhiy Storchaka
fdc995336f
Issue #22765 : Fixed test_gdb failures. Supressed unexpected gdb output.
...
Patch by Bohuslav Kabrda.
2015-01-31 11:48:52 +02:00
R David Murray
756f0b1982
Fix asyncio doc typo.
2015-01-29 19:53:33 -05:00
Victor Stinner
188f2c0b75
asyncio doc: document the new ResourceWarning warnings
2015-01-30 01:35:14 +01:00
Victor Stinner
f2e43cbbd4
Issue #23347 , asyncio: send_signal(), terminate(), kill() don't check if the
...
transport was closed. The check broken a Tulip example and this limitation is
arbitrary. Check if _proc is None should be enough.
Enhance also close(): do nothing when called the second time.
2015-01-30 01:20:44 +01:00
Victor Stinner
1077dee457
asyncio doc: add a section about task cancellation
2015-01-30 00:55:58 +01:00
Victor Stinner
7a55b88d9c
Issue #21962 , asyncio doc: Suggest the usage of wait_for() to replace
...
the lack of timeout parameter for locks and queues.
2015-01-30 00:37:04 +01:00
Victor Stinner
1241ecc21b
Issue #23347 , asyncio: Make BaseSubprocessTransport.wait() private
2015-01-30 00:16:14 +01:00