Commit Graph

82902 Commits

Author SHA1 Message Date
Victor Stinner b69d62dcac assyncio doc: rewrite, improve and move coroutine, Future and Task examples 2013-12-10 02:09:46 +01:00
Victor Stinner b077c0552f (Merge 3.3) Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:20:39 +01:00
Victor Stinner d860d5cf6d Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:19:58 +01:00
Stefan Krah 29e64548c5 Fix typo. 2013-12-09 19:18:59 +01:00
Stefan Krah 345ec35da3 Fix whitespace. 2013-12-09 19:11:05 +01:00
Stefan Krah 2d181de44c Merge 3.3. 2013-12-09 19:03:24 +01:00
Serhiy Storchaka 2dae92a807 Issue #15475: Add __sizeof__ implementations for itertools objects. 2013-12-09 17:45:57 +02:00
Victor Stinner a881a7f205 asyncio doc: explain why the loop is running twice 2013-12-09 13:19:23 +01:00
Victor Stinner d8f11e9265 asyncio: another Future example using add_done_callback() 2013-12-09 13:04:12 +01:00
Victor Stinner 45c2fd9f8a asyncio doc: add an example with Future 2013-12-09 12:40:17 +01:00
Victor Stinner 52ce3b04d0 Issue #19817: Fix print_exception(), clear the exception on error 2013-12-09 02:10:08 +01:00
Victor Stinner 383bff4d74 Backed out changeset c4c1c4bc8086 2013-12-09 01:59:07 +01:00
Victor Stinner 1adc2371b8 Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows
os.dup2() is available on Windows.
2013-12-09 01:57:14 +01:00
Victor Stinner 031bd532c4 Close #19880: Fix a reference leak in unittest.TestCase. Explicitly break
reference cycles between frames and the _Outcome instance.
2013-12-09 01:52:50 +01:00
Victor Stinner 28dd6deca8 Fix #19830: Fix a ResourceWarning in test_poplib.
Patch written by Vajrasky Kok.
2013-12-09 01:15:10 +01:00
Victor Stinner 8622ac3ce2 (Merge 3.3) Issue #17429: Oops, remove unused import 2013-12-09 00:26:12 +01:00
Victor Stinner 271493b68c Issue #17429: Oops, remove unused import 2013-12-09 00:25:57 +01:00
Victor Stinner ced3936894 Issue #17429: some PEP 8 compliance fixes for the platform modules, add whitespaces 2013-12-09 00:14:52 +01:00
Victor Stinner 0aba1a2663 (Merge 3.3) Issue #17429: platform.linux_distribution() now decodes files from
the UTF-8 encoding with the surrogateescape error handler, instead of decoding
from the locale encoding in strict mode. It fixes the function on Fedora 19
which is probably the first major distribution release with a non-ASCII name.
Patch written by Toshio Kuratomi.
2013-12-09 00:04:09 +01:00
Victor Stinner 620c48b7ea Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
encoding with the surrogateescape error handler, instead of decoding from the
locale encoding in strict mode. It fixes the function on Fedora 19 which is
probably the first major distribution release with a non-ASCII name. Patch
written by Toshio Kuratomi.
2013-12-09 00:01:27 +01:00
Stefan Krah 1761fa9dd1 Add libmpdec license. 2013-12-08 20:54:02 +01:00
Stefan Krah 37d4e0be3d Fix two typos. 2013-12-08 20:08:32 +01:00
Stefan Krah 42e3b607cb Missed one copyright. 2013-12-08 20:00:56 +01:00
Gregory P. Smith 7b83b18679 Fixes issue #19929: Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency.  A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:58:28 -08:00
Gregory P. Smith 589ecda56e Fixes issue #19929: Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency.  A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:56:07 -08:00
Stefan Krah ecff6554d3 Update copyright. The four year increment is intentional (to save work). 2013-12-08 19:54:05 +01:00
Nadeem Vawda bd6932a576 Closes #18430: Document that peek() may change the position of the underlying
file for the BZ2File, GzipFile and LZMAFile classes.
2013-12-08 19:50:05 +01:00
Nadeem Vawda 6976104a36 #18430: Document that peek() may change the position of the underlying file for
the BZ2File, GzipFile and LZMAFile classes.
2013-12-08 19:47:22 +01:00
Serhiy Storchaka b12cb6a550 Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
2013-12-08 18:16:18 +02:00
Serhiy Storchaka 3e60a9d602 Issue #19535: Fixed test_docxmlrpc when python is run with -OO. 2013-12-08 18:14:49 +02:00
doko@ubuntu.com ca616a2709 - Issue #19736: Add module-level statvfs constants defined for GNU/glibc
based systems.
2013-12-08 15:23:07 +01:00
Christian Heimes b02bcae566 Attempt to fix OpenIndiana build issue introduced by #19922 2013-12-08 15:21:08 +01:00
Christian Heimes 5bb414d176 Issue #19343: Expose FreeBSD-specific APIs in resource module. Original patch by Koobs. 2013-12-08 14:35:55 +01:00
Charles-François Natali ead8d0858b Fix test_selectors failure introduced by 39e7995f9ad1. 2013-12-08 10:06:04 +01:00
Gregory P. Smith f491f92529 Remove mentions of Python 2.x and being externally maintained from
the bundled json module.  Replace that with a mention of it being
a version of the externally maintained simplejson module.
2013-12-08 00:39:36 -08:00
Gregory P. Smith a82f74dee3 Remove mentions of Python 2.x and being externally maintained from
the bundled json module.  Replace that with a mention of it being
a version of the externally maintained simplejson module.
2013-12-08 00:39:07 -08:00
Zachary Ware 34bc8974cd Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
2013-12-08 01:01:42 -06:00
Zachary Ware 4adb37c40f Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
2013-12-08 01:00:14 -06:00
Zachary Ware 101d9e7250 Issue 19572: More silently skipped tests explicitly skipped. 2013-12-08 00:44:27 -06:00
Zachary Ware 7ef00ff91a Normalize whitespace 2013-12-08 00:38:54 -06:00
Zachary Ware 9fe6d86709 Issue 19572: More silently skipped tests explicitly skipped. 2013-12-08 00:20:35 -06:00
Gregory P. Smith 5ca129b8f0 Fixes issue #19506: Use a memoryview to avoid a data copy when piping data
to stdin within subprocess.Popen.communicate.  5-10% less cpu usage.
2013-12-07 19:14:59 -08:00
Gregory P. Smith 774f909489 Fixes issue #19506: Use a memoryview to avoid a data copy when piping data
to stdin within subprocess.Popen.communicate.  5-10% less cpu usage.
2013-12-07 19:12:46 -08:00
Eric Snow 5c29424f4b Issue #19758: silence PendingDeprecationWarnings in test_importlib. 2013-12-07 19:37:31 -07:00
Guido van Rossum c0e71cd6e2 News item for issue 19876. 2013-12-07 16:03:36 -08:00
Guido van Rossum 9710ff04ac Silently ignore unregistering closed files. Fixes issue 19876. With docs and slight test refactor. 2013-12-07 15:57:01 -08:00
Christian Heimes 647cd87169 Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
for mbrtowc().
2013-12-07 23:39:33 +01:00
Charles-François Natali 35175a8f07 Merge. 2013-12-07 20:30:41 +01:00
Charles-François Natali 6c527cf37f Issue #19857: Make sure that test_imaplib reaps server threads even in face of
error upon client disconnection.
2013-12-07 20:30:17 +01:00
Charles-François Natali 7d096c2581 Merge. 2013-12-07 20:28:46 +01:00