Commit graph

6134 commits

Author SHA1 Message Date
Victor Stinner
8b86348dfa asyncio: document add_signal_handler/remove_signal_handler, add an example for
signals
2014-01-27 10:07:50 +01:00
Victor Stinner
b9915973f3 Issue #20367: Fix behavior of concurrent.futures.as_completed() for duplicate
arguments.  Patch by Glenn Langford.
2014-01-27 09:11:48 +01:00
Guido van Rossum
e6994ff6e3 Fix issue #20367: concurrent.futures.as_completed() for duplicate arguments.
Patch by Glenn Langford.
2014-01-26 09:57:51 -08:00
Guido van Rossum
9ad116bcd0 Document asyncio.QueueFull/Empty. 2014-01-25 17:38:31 -08:00
Victor Stinner
669eeaf933 Merge latest Tulip into asyncio
- Make the new granularity attribute private
- Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic
  instead
2014-01-26 00:02:31 +01:00
Eric Snow
6029e08691 Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
The function is also moved to importlib.util.
2014-01-25 15:32:46 -07:00
Victor Stinner
f67255ab94 Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum
between the resolution of the BaseEventLoop.time() method and the resolution of
the selector. The granuarility is used in the scheduler to round time and
deadline.
2014-01-25 15:01:33 +01:00
Victor Stinner
635fca9704 Issue #20311: selectors: Add a resolution attribute to BaseSelector. 2014-01-25 14:56:48 +01:00
Victor Stinner
62f8eccdbf asyncio doc: document StreamWriter.drain() 2014-01-24 18:47:26 +01:00
Victor Stinner
8c462c5a80 asyncio doc: move AbstractServer to the event loop page
Add also entries in the table of content for each synchronization primitive
class.
2014-01-24 18:11:43 +01:00
Victor Stinner
4b4f9ebfea asyncio doc: add a "Coroutines and protocols" section 2014-01-24 17:33:20 +01:00
Victor Stinner
1374bd41b1 asyncio: mention that transports/protocols are low-level, streams are high-level 2014-01-24 15:34:19 +01:00
Larry Hastings
5c66189e88 Issue #20189: Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Victor Stinner
c520edc08b asyncio doc: add an client example using streams 2014-01-23 11:25:48 +01:00
Victor Stinner
24f8ebf4c5 asyncio doc: Move streams to their own dedicated page 2014-01-23 11:05:01 +01:00
Victor Stinner
c8ea81330c asyncio doc: link create_connection() to open_connection() and create_server()
to start_server()

Rename also the "Network functions" section to "Stream functions" and move it to the Stream section.
2014-01-23 11:02:09 +01:00
Victor Stinner
7235c05085 asyncio doc: move stream classes to their own class 2014-01-23 10:54:57 +01:00
Victor Stinner
3eb45d3eae asyncio: Fix open_connection() documentation, writer is a StreamWriter 2014-01-23 10:20:18 +01:00
Zachary Ware
5116f78221 Issue #20301: Merge with 3.3 2014-01-21 13:50:13 -06:00
Zachary Ware
f7d2874d30 Issue #20301: Mention the correct KEY_* value as the default
for 'access' in winreg.DeleteKeyEx.  Already correct in the docs
function signature and docstring.  Noticed by Justin Foo.
2014-01-21 13:49:22 -06:00
Terry Jan Reedy
a67a79da24 Merge with 3.3 2014-01-21 00:02:17 -05:00
Terry Jan Reedy
30ffe7eb68 Issue #20222: file is no longer a builtin in 3.x. 2014-01-21 00:01:51 -05:00
Antoine Pitrou
b6457249bf Fix the description of pickle protocol numbers 2014-01-21 02:39:54 +01:00
Eli Bendersky
679688e70d Fix grammar and add markup 2014-01-20 08:13:31 -08:00
Eli Bendersky
3245e79b82 Formatting & rst link markup fixes 2014-01-20 07:51:31 -08:00
Eli Bendersky
029981bbfc Clarify what the loop arguments means for functions listed in 18.5.2.5 2014-01-20 07:02:22 -08:00
Eli Bendersky
2d26af82c1 Explain the 'result' argument in asyncio.sleep 2014-01-20 06:59:23 -08:00
Gregory P. Smith
5a6d4bf671 Fixes Issue #20165: The unittest module no longer considers tests marked with
@expectedFailure successful if they pass.
2014-01-20 01:11:18 -08:00
Benjamin Peterson
27b490c713 merge 3.3 (#6627) 2014-01-20 00:12:24 -05:00
Benjamin Peterson
1cfe009b96 put notes in a ..note section 2014-01-20 00:10:23 -05:00
Benjamin Peterson
f6ffb4b264 document that a new Python thread context is created in ctypes callbacks (closes #6627)
Patch by Nikolaus Rath.
2014-01-20 00:09:53 -05:00
Benjamin Peterson
dc3cce077d merge 3.3 (#17811) 2014-01-18 22:57:05 -05:00
Benjamin Peterson
e83ed43281 improve description of buffers argument for readv/writev (closes #17811)
Patch by Nikolaus Rath.
2014-01-18 22:54:59 -05:00
Benjamin Peterson
3c16c1d821 merge 3.3 2014-01-18 00:49:30 -05:00
Benjamin Peterson
af69fe2311 rm extra whitespace 2014-01-18 00:49:04 -05:00
Benjamin Peterson
9308c420d3 merge 3.3 2014-01-18 00:47:06 -05:00
Benjamin Peterson
eacec1ccff link to builtin open not io.open 2014-01-18 00:47:00 -05:00
Benjamin Peterson
d8af6700b9 merge 3.3 (#17814) 2014-01-18 00:46:49 -05:00
Benjamin Peterson
3d8814e1d3 describe type of Popen streams (closes #17814)
Patch more or less by Nikolaus Rath.
2014-01-18 00:45:56 -05:00
Brett Cannon
24f60b4616 Issues #20194,20195: Add missing :deprecated: markers to some module
docs.
2014-01-17 12:06:28 -05:00
Brett Cannon
c089f70b54 Issue #18394: Document that cgi.FieldStorage now cleans up after its
'file' attribute properly in Python 3.4.

Thanks to Marcel Hellkamp for pointing out the oversight.
2014-01-17 11:03:19 -05:00
Victor Stinner
9731183390 asyncio: oops, add missing word :-) 2014-01-17 10:31:02 +01:00
Victor Stinner
59759ff234 asyncio doc: replace "coroutine" with "coroutine object" or "coroutine function" 2014-01-16 19:30:21 +01:00
Victor Stinner
db39a0da0c asyncio: add a new "Develop with asyncio" section to the documentation 2014-01-16 18:58:01 +01:00
Benjamin Peterson
5cacb84d83 merge 3.3 (#20272) 2014-01-16 10:10:26 -05:00
Benjamin Peterson
2989f587a7 linkify chain.from_iterable (closes #20272) 2014-01-16 10:10:13 -05:00
Benjamin Peterson
a65d121607 merge 3.3 (#20278) 2014-01-16 09:53:22 -05:00
Benjamin Peterson
216e47d834 update pysqlite website (closes #20278) 2014-01-16 09:52:38 -05:00
Vinay Sajip
3763f2bc07 Merged documentation update from 3.3. 2014-01-15 15:09:43 +00:00
Vinay Sajip
cbefe3b9a0 Added cookbook entry on alternative formatting styles. 2014-01-15 15:09:05 +00:00