]> granicus.if.org Git - python/log
python
11 years agoasyncio io: group transports and protocols in a new title
Victor Stinner [Tue, 3 Dec 2013 00:49:43 +0000 (01:49 +0100)]
asyncio io: group transports and protocols in a new title

11 years agoasyncio doc: write a complete TCP echo example, client and server
Victor Stinner [Tue, 3 Dec 2013 00:46:39 +0000 (01:46 +0100)]
asyncio doc: write a complete TCP echo example, client and server

Example based on tcp_echo.py example from Tulip source code.

11 years agoasyncio doc: move coroutine example to the Task page
Victor Stinner [Tue, 3 Dec 2013 00:22:06 +0000 (01:22 +0100)]
asyncio doc: move coroutine example to the Task page

11 years agoSplit asyncio documentation into subfiles
Victor Stinner [Tue, 3 Dec 2013 00:08:00 +0000 (01:08 +0100)]
Split asyncio documentation into subfiles

11 years agoasyncio doc: change level of titles
Victor Stinner [Mon, 2 Dec 2013 23:56:27 +0000 (00:56 +0100)]
asyncio doc: change level of titles

Remove also a duplicated Protocols section!

11 years agoasyncio doc: reorder sections
Victor Stinner [Mon, 2 Dec 2013 23:49:26 +0000 (00:49 +0100)]
asyncio doc: reorder sections

11 years agoasyncio: document wait() function
Victor Stinner [Mon, 2 Dec 2013 23:42:59 +0000 (00:42 +0100)]
asyncio: document wait() function

11 years agoasyncio doc
Victor Stinner [Mon, 2 Dec 2013 23:32:48 +0000 (00:32 +0100)]
asyncio doc

* complete create_connection() prototype
* link to Server
* document get_extra_info() keys

11 years agoIssue #19852: move Path._raw_open() around, as it is now a private method.
Antoine Pitrou [Mon, 2 Dec 2013 20:25:18 +0000 (21:25 +0100)]
Issue #19852: move Path._raw_open() around, as it is now a private method.
Patch by Vajrasky Kok.

11 years agoadd check_hostname arg to ssl._create_stdlib_context()
Christian Heimes [Mon, 2 Dec 2013 19:59:28 +0000 (20:59 +0100)]
add check_hostname arg to ssl._create_stdlib_context()

11 years agoIssue #19785: smtplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:44:17 +0000 (20:44 +0100)]
Issue #19785: smtplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19783: nntplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:20:11 +0000 (20:20 +0100)]
Issue #19783: nntplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19784: poplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:10:50 +0000 (20:10 +0100)]
Issue #19784: poplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agomerge
Christian Heimes [Mon, 2 Dec 2013 19:02:04 +0000 (20:02 +0100)]
merge

11 years agoIssue #19782: imaplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:01:29 +0000 (20:01 +0100)]
Issue #19782: imaplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoFixed formatting (was parsed as description list).
Serhiy Storchaka [Mon, 2 Dec 2013 18:31:00 +0000 (20:31 +0200)]
Fixed formatting (was parsed as description list).

11 years agoFixed regex match representation in an example.
Serhiy Storchaka [Mon, 2 Dec 2013 18:23:19 +0000 (20:23 +0200)]
Fixed regex match representation in an example.

11 years agoasyncio: sort some methods
Victor Stinner [Mon, 2 Dec 2013 16:52:31 +0000 (17:52 +0100)]
asyncio: sort some methods

11 years agoasyncio doc: group transport method by classes
Victor Stinner [Mon, 2 Dec 2013 16:46:04 +0000 (17:46 +0100)]
asyncio doc: group transport method by classes

Declare classes because they are mentionned in documentation of other functions

11 years agoasyncio: more documentation
Victor Stinner [Mon, 2 Dec 2013 16:40:48 +0000 (17:40 +0100)]
asyncio: more documentation

11 years agoasyncio: document network functions, and stream reader/writer
Victor Stinner [Mon, 2 Dec 2013 16:28:32 +0000 (17:28 +0100)]
asyncio: document network functions, and stream reader/writer

11 years agoAdd NEWS entry for issue #19834: merge with 3.3.
Walter Doerwald [Mon, 2 Dec 2013 16:20:50 +0000 (17:20 +0100)]
Add NEWS entry for issue #19834: merge with 3.3.

11 years agoAdd NEWS entry for issue #19834.
Walter Doerwald [Mon, 2 Dec 2013 16:19:00 +0000 (17:19 +0100)]
Add NEWS entry for issue #19834.

11 years agoIssue #19814: Clarify argparse's docs w.r.t prefix matching
Eli Bendersky [Mon, 2 Dec 2013 13:50:48 +0000 (05:50 -0800)]
Issue #19814: Clarify argparse's docs w.r.t prefix matching

11 years agoIssue #19814: Clarify argparse's docs w.r.t prefix matching
Eli Bendersky [Mon, 2 Dec 2013 13:49:54 +0000 (05:49 -0800)]
Issue #19814: Clarify argparse's docs w.r.t prefix matching

11 years agoasyncio: replace our with asynchronous in docstring
Victor Stinner [Mon, 2 Dec 2013 13:31:43 +0000 (14:31 +0100)]
asyncio: replace our with asynchronous in docstring

11 years agoasyncio: document locks
Victor Stinner [Mon, 2 Dec 2013 13:31:16 +0000 (14:31 +0100)]
asyncio: document locks

11 years agoasyncio: document Queue classes
Victor Stinner [Mon, 2 Dec 2013 13:06:03 +0000 (14:06 +0100)]
asyncio: document Queue classes

11 years agoDocument Task class and task functions
Victor Stinner [Mon, 2 Dec 2013 12:47:23 +0000 (13:47 +0100)]
Document Task class and task functions

11 years agoasyncio: cleanup doc
Victor Stinner [Mon, 2 Dec 2013 12:04:25 +0000 (13:04 +0100)]
asyncio: cleanup doc

11 years agoIssue #19833: Document more asyncio.BaseEventLoop methods
Victor Stinner [Mon, 2 Dec 2013 11:41:54 +0000 (12:41 +0100)]
Issue #19833: Document more asyncio.BaseEventLoop methods

11 years agoIssue #19833: add 2 examples to asyncio doc (hello world)
Victor Stinner [Mon, 2 Dec 2013 11:21:30 +0000 (12:21 +0100)]
Issue #19833: add 2 examples to asyncio doc (hello world)

11 years agoIssue #19833: asyncio doc: add class name to methods
Victor Stinner [Mon, 2 Dec 2013 11:20:57 +0000 (12:20 +0100)]
Issue #19833: asyncio doc: add class name to methods

11 years ago(Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentation
Victor Stinner [Mon, 2 Dec 2013 11:17:29 +0000 (12:17 +0100)]
(Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentation

11 years agoIssue #19728: Fix sys.getfilesystemencoding() documentation
Victor Stinner [Mon, 2 Dec 2013 11:16:46 +0000 (12:16 +0100)]
Issue #19728: Fix sys.getfilesystemencoding() documentation

11 years agoFix #19834: merge with 3.3.
Walter Doerwald [Mon, 2 Dec 2013 10:43:20 +0000 (11:43 +0100)]
Fix #19834: merge with 3.3.

11 years agoFix issue #19834: Support unpickling of exceptions pickled by Python 2.
Walter Doerwald [Mon, 2 Dec 2013 10:41:01 +0000 (11:41 +0100)]
Fix issue #19834: Support unpickling of exceptions pickled by Python 2.

11 years agoIssue #19781: ftplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 01:56:02 +0000 (02:56 +0100)]
Issue #19781: ftplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19509: Add SSLContext.check_hostname to match the peer's certificate
Christian Heimes [Mon, 2 Dec 2013 01:41:19 +0000 (02:41 +0100)]
Issue #19509: Add SSLContext.check_hostname to match the peer's certificate
with server_hostname on handshake.

11 years agonull merge (3.4 already has its own fix for this).
Gregory P. Smith [Mon, 2 Dec 2013 01:28:24 +0000 (17:28 -0800)]
null merge (3.4 already has its own fix for this).

11 years agoFixes issue #15798: subprocess.Popen() no longer fails if file
Gregory P. Smith [Mon, 2 Dec 2013 01:27:40 +0000 (17:27 -0800)]
Fixes issue #15798: subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.
The errpipe_write fd will always be >= 3.

11 years agoIssue #19754: Fix typo.
Alexandre Vassalotti [Mon, 2 Dec 2013 00:31:49 +0000 (16:31 -0800)]
Issue #19754: Fix typo.

11 years agoIssue #19754: Make pickletools.optimize respect the frame size target.
Alexandre Vassalotti [Mon, 2 Dec 2013 00:27:46 +0000 (16:27 -0800)]
Issue #19754: Make pickletools.optimize respect the frame size target.

11 years agoFixes issue #15798: subprocess.Popen() no longer fails if file
Gregory P. Smith [Mon, 2 Dec 2013 00:03:24 +0000 (16:03 -0800)]
Fixes issue #15798: subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)

11 years agoIssue #11480: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 21:26:32 +0000 (13:26 -0800)]
Issue #11480: Merge with 3.3.

11 years agoIssue #11480: Fixed copy.copy to work with classes with custom metaclasses.
Alexandre Vassalotti [Sun, 1 Dec 2013 21:25:26 +0000 (13:25 -0800)]
Issue #11480: Fixed copy.copy to work with classes with custom metaclasses.

Patch by Daniel Urban.

11 years agoIssue #18994: Add a missing check for a return value in fcntmodule. Patch by
Charles-François Natali [Sun, 1 Dec 2013 13:30:47 +0000 (14:30 +0100)]
Issue #18994: Add a missing check for a return value in fcntmodule. Patch by
Vajrasky Kok.

11 years agoIssue #19849: selectors: Document the possibility of early select() wakeup upon
Charles-François Natali [Sun, 1 Dec 2013 12:23:48 +0000 (13:23 +0100)]
Issue #19849: selectors: Document the possibility of early select() wakeup upon
EINTR.

11 years agoIssue #19842: Refactor BaseSelector to make it an actual usable ABC.
Charles-François Natali [Sun, 1 Dec 2013 10:04:17 +0000 (11:04 +0100)]
Issue #19842: Refactor BaseSelector to make it an actual usable ABC.

11 years agoCloses #19831: Stop tracemalloc later at Python shutdown to be able to use
Victor Stinner [Sun, 1 Dec 2013 09:03:26 +0000 (10:03 +0100)]
Closes #19831: Stop tracemalloc later at Python shutdown to be able to use
tracemalloc in objects destructor

Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().

11 years agoUndo supposed fix for Issue #15798 until I understand why this is
Gregory P. Smith [Sun, 1 Dec 2013 08:13:35 +0000 (00:13 -0800)]
Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).

11 years agoUndo supposed fix for Issue #15798 until I understand why this is
Gregory P. Smith [Sun, 1 Dec 2013 08:12:24 +0000 (00:12 -0800)]
Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).

11 years agoFixes Issue #15798 - subprocess.Popen() no longer fails if file
Gregory P. Smith [Sun, 1 Dec 2013 03:04:00 +0000 (19:04 -0800)]
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.

11 years agoFixes Issue #15798 - subprocess.Popen() no longer fails if file
Gregory P. Smith [Sun, 1 Dec 2013 03:02:57 +0000 (19:02 -0800)]
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.

11 years agoIssue #6477: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 01:58:53 +0000 (17:58 -0800)]
Issue #6477: Merge with 3.3.

11 years agoIssue #6477: Keep PyNotImplemented_Type and PyNone_Type private.
Alexandre Vassalotti [Sun, 1 Dec 2013 01:55:48 +0000 (17:55 -0800)]
Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.

11 years agoIssue #6477: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 00:21:20 +0000 (16:21 -0800)]
Issue #6477: Merge with 3.3.

11 years agoIssue #6477: Added support for pickling the types of built-in singletons.
Alexandre Vassalotti [Sun, 1 Dec 2013 00:06:39 +0000 (16:06 -0800)]
Issue #6477: Added support for pickling the types of built-in singletons.

11 years agoasyncio: Use Interface instead of ABC. Fixes issue 19726.
Guido van Rossum [Sat, 30 Nov 2013 23:35:42 +0000 (15:35 -0800)]
asyncio: Use Interface instead of ABC.  Fixes issue 19726.

11 years agoIssue #19845: Updated the Compiling Python on Windows docs.
Zachary Ware [Sat, 30 Nov 2013 23:03:03 +0000 (17:03 -0600)]
Issue #19845: Updated the Compiling Python on Windows docs.

11 years agoIssue #19845: Updated the Compiling Python on Windows docs.
Zachary Ware [Sat, 30 Nov 2013 22:59:33 +0000 (16:59 -0600)]
Issue #19845: Updated the Compiling Python on Windows docs.

11 years agoCloses #19789: Merged update from 3.3.
Vinay Sajip [Sat, 30 Nov 2013 22:46:29 +0000 (22:46 +0000)]
Closes #19789: Merged update from 3.3.

11 years agoIssue #19789: Clarified documentation for logging.disable.
Vinay Sajip [Sat, 30 Nov 2013 22:45:29 +0000 (22:45 +0000)]
Issue #19789: Clarified documentation for logging.disable.

11 years agoMerge with 3.3.
Alexandre Vassalotti [Sat, 30 Nov 2013 21:55:39 +0000 (13:55 -0800)]
Merge with 3.3.

11 years agoFixed _pickle.Unpickler to handle empty persistent IDs correctly.
Alexandre Vassalotti [Sat, 30 Nov 2013 21:52:35 +0000 (13:52 -0800)]
Fixed _pickle.Unpickler to handle empty persistent IDs correctly.

11 years agoIssue #17897: Optimized unpickle prefetching.
Serhiy Storchaka [Sat, 30 Nov 2013 21:15:38 +0000 (23:15 +0200)]
Issue #17897: Optimized unpickle prefetching.

11 years agoIssue #19088: Merge with 3.3.
Alexandre Vassalotti [Sat, 30 Nov 2013 09:05:51 +0000 (01:05 -0800)]
Issue #19088: Merge with 3.3.

11 years agoIssue #19088: Fix incorrect caching of the copyreg module.
Alexandre Vassalotti [Sat, 30 Nov 2013 08:53:09 +0000 (00:53 -0800)]
Issue #19088: Fix incorrect caching of the copyreg module.

This fix does not cause any degradation in performance.

11 years agoIssue #19728: don't be sensitive to line endings
Nick Coghlan [Sat, 30 Nov 2013 08:35:32 +0000 (18:35 +1000)]
Issue #19728: don't be sensitive to line endings

11 years agoIssue #19726: actually running 'hg add' helps...
Nick Coghlan [Sat, 30 Nov 2013 07:45:09 +0000 (17:45 +1000)]
Issue #19726: actually running 'hg add' helps...

11 years agoIssue #19728: add private ensurepip._uninstall CLI
Nick Coghlan [Sat, 30 Nov 2013 07:15:09 +0000 (17:15 +1000)]
Issue #19728: add private ensurepip._uninstall CLI

MvL would like to be able to preserve CPython's existing clean
uninstall behaviour on Windows before enabling the pip
installation option by default.

This private CLI means running "python -m ensurepip._uninstall"
will remove pip and setuptools before proceeding with the rest
of the uninstallation process.

If the version of pip differs from the one bootstrapped by
CPython, then the uninstallation helper will leave it alone
(just like any other pip installed packages)

11 years agoFix and test pip version consistency
Nick Coghlan [Sat, 30 Nov 2013 05:56:58 +0000 (15:56 +1000)]
Fix and test pip version consistency

11 years agoIssue #3693: Fix array obscure error message when given a str.
Alexandre Vassalotti [Sat, 30 Nov 2013 04:47:15 +0000 (20:47 -0800)]
Issue #3693: Fix array obscure error message when given a str.

11 years agoNull merge
Zachary Ware [Sat, 30 Nov 2013 03:14:22 +0000 (21:14 -0600)]
Null merge

11 years agoMore realistic example for selectors.py.
Guido van Rossum [Fri, 29 Nov 2013 22:51:18 +0000 (14:51 -0800)]
More realistic example for selectors.py.

11 years agoNull merge
Serhiy Storchaka [Fri, 29 Nov 2013 21:42:55 +0000 (23:42 +0200)]
Null merge

11 years agoRevert unrelated changes introduced by changeset b2066bc8cab9 (issue #19795).
Serhiy Storchaka [Fri, 29 Nov 2013 21:40:35 +0000 (23:40 +0200)]
Revert unrelated changes introduced by changeset b2066bc8cab9  (issue #19795).

11 years agoIssue #19712: Port test.test_importlib.import_ tests to use PEP 451
Brett Cannon [Fri, 29 Nov 2013 21:17:05 +0000 (16:17 -0500)]
Issue #19712: Port test.test_importlib.import_ tests to use PEP 451
that don't require changing test.test_importlib.util.mock_modules().

11 years agoRemove trailing blanks.
Charles-François Natali [Fri, 29 Nov 2013 17:57:47 +0000 (18:57 +0100)]
Remove trailing blanks.

11 years agoSet the FDs non-blocking in the selectors example.
Charles-François Natali [Fri, 29 Nov 2013 17:52:51 +0000 (18:52 +0100)]
Set the FDs non-blocking in the selectors example.

11 years agoasyncio: Add 'shield' to __all__.
Guido van Rossum [Fri, 29 Nov 2013 17:29:00 +0000 (09:29 -0800)]
asyncio: Add 'shield' to __all__.

11 years agoIssue #19698: Remove exec_module() from the built-in and extension
Brett Cannon [Fri, 29 Nov 2013 16:00:11 +0000 (11:00 -0500)]
Issue #19698: Remove exec_module() from the built-in and extension
module loaders.

Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.

11 years agoIssue #19795: Improved markup of True/False constants.
Serhiy Storchaka [Fri, 29 Nov 2013 10:19:53 +0000 (12:19 +0200)]
Issue #19795: Improved markup of True/False constants.

11 years agoIssue #19795: Improved markup of True/False constants.
Serhiy Storchaka [Fri, 29 Nov 2013 10:17:13 +0000 (12:17 +0200)]
Issue #19795: Improved markup of True/False constants.

11 years agoUse PyDict_GetItemWithError instead of PyDict_GetItem in cpickle.
Alexandre Vassalotti [Fri, 29 Nov 2013 01:09:16 +0000 (17:09 -0800)]
Use PyDict_GetItemWithError instead of PyDict_GetItem in cpickle.

11 years agoRemove explicit empty tuple reuse in cpickle.
Alexandre Vassalotti [Thu, 28 Nov 2013 23:17:29 +0000 (15:17 -0800)]
Remove explicit empty tuple reuse in cpickle.

PyTuple_New(0) always returns the same empty tuple from its free list anyway,
so we are not saving much here. Plus, the code where this was used is on
uncommon run paths.

11 years agoRemove the tuple reuse optimization in _Pickle_FastCall.
Alexandre Vassalotti [Thu, 28 Nov 2013 22:56:09 +0000 (14:56 -0800)]
Remove the tuple reuse optimization in _Pickle_FastCall.

I have noticed a race-condition occurring on one of the buildbots because of
this optimization. The function called may release the GIL which means
multiple threads may end up accessing the shared tuple. I could fix it up by
storing the tuple to the Pickler and Unipickler object again, but honestly it
really not worth the trouble.

I ran many benchmarks and the only time the optimization helps is when using a
fin-memory file, like io.BytesIO on which reads are super cheap, combined with
pickle protocol less than 4. Even in this contrived case, the speedup is a
about 5%. For everything else, this optimization does not provide any
noticable improvements.

11 years agoSome minor clarifications in the documentation of pathlib + inheritance diagram
Eli Bendersky [Thu, 28 Nov 2013 14:53:05 +0000 (06:53 -0800)]
Some minor clarifications in the documentation of pathlib + inheritance diagram

11 years agoIssue #19815: Fix segfault when parsing empty namespace declaration.
Eli Bendersky [Thu, 28 Nov 2013 14:35:40 +0000 (06:35 -0800)]
Issue #19815: Fix segfault when parsing empty namespace declaration.

Based on patches by Christian Heimes and Vajrasky Kok

11 years agoFix indentation from previous commit
Eli Bendersky [Thu, 28 Nov 2013 14:33:21 +0000 (06:33 -0800)]
Fix indentation from previous commit

11 years agoIssue #19815: Fix segfault when parsing empty namespace declaration.
Eli Bendersky [Thu, 28 Nov 2013 14:31:58 +0000 (06:31 -0800)]
Issue #19815: Fix segfault when parsing empty namespace declaration.

Based on patches by Christian Heimes and Vajrasky Kok

11 years agoSNI was added in OpenSSL 0.9.8f [11 Oct 2007], too
Christian Heimes [Thu, 28 Nov 2013 14:12:15 +0000 (15:12 +0100)]
SNI was added in OpenSSL 0.9.8f  [11 Oct 2007], too

11 years agossl.create_default_context() sets OP_NO_COMPRESSION to prevent CRIME
Christian Heimes [Thu, 28 Nov 2013 07:06:54 +0000 (08:06 +0100)]
ssl.create_default_context() sets OP_NO_COMPRESSION to prevent CRIME

11 years agoIssue #19595: Re-enable a long-disabled test in test_winsound
Zachary Ware [Thu, 28 Nov 2013 05:56:04 +0000 (23:56 -0600)]
Issue #19595: Re-enable a long-disabled test in test_winsound

11 years agoIssue #19595: Re-enable a long-disabled test in test_winsound
Zachary Ware [Thu, 28 Nov 2013 05:56:04 +0000 (23:56 -0600)]
Issue #19595: Re-enable a long-disabled test in test_winsound

11 years agoEncapsulate cpickle global state in a dedicated object.
Alexandre Vassalotti [Thu, 28 Nov 2013 03:36:52 +0000 (19:36 -0800)]
Encapsulate cpickle global state in a dedicated object.

This implements PEP 3121 module finalization as well. This change does not
cause any significant impact on performance.

11 years agoChange pathlib documentation to use "raise" instead of "throw".
Ned Deily [Wed, 27 Nov 2013 22:42:55 +0000 (14:42 -0800)]
Change pathlib documentation to use "raise" instead of "throw".

11 years agoIssue #19818: tracemalloc, the number of frame limit cannot be zero anymore
Victor Stinner [Wed, 27 Nov 2013 22:39:55 +0000 (23:39 +0100)]
Issue #19818: tracemalloc, the number of frame limit cannot be zero anymore

11 years agoasyncio: Change write buffer use to avoid O(N**2). Make write()/sendto() accept bytea...
Guido van Rossum [Wed, 27 Nov 2013 22:12:48 +0000 (14:12 -0800)]
asyncio: Change write buffer use to avoid O(N**2). Make write()/sendto() accept bytearray/memoryview too. Change some asserts with proper exceptions.

11 years agoCloses #19786: tracemalloc, remove the arbitrary limit of 100 frames
Victor Stinner [Wed, 27 Nov 2013 21:27:13 +0000 (22:27 +0100)]
Closes #19786: tracemalloc, remove the arbitrary limit of 100 frames

The limit is now 178,956,969 on 64 bit (it is greater on 32 bit because
structures are smaller).

Use int instead of Py_ssize_t to store the number of frames to have smaller
traceback_t objects.