Ethan Furman
5bdab641da
bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328)
...
* bpo-29577: allow multiple mixin classes
2018-09-21 19:03:09 -07:00
Yury Selivanov
db1a80e97a
bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475)
2018-09-21 16:23:15 -04:00
Xiang Zhang
7d161726e4
Make docs of exitcode for subprocess.getstatusoutput more clear. (GH-9477)
...
Make it more accurate and not limited to UNIX.
2018-09-21 13:18:20 -07:00
Yury Selivanov
e247b46cba
bpo-33649: More improvements (GH-9439)
2018-09-20 12:43:59 -04:00
Yury Selivanov
ffef50f1f5
bpo-34746: Fix stop -> close (GH-9437)
2018-09-20 01:17:09 -04:00
Yury Selivanov
471503954a
bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)
...
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
2018-09-18 17:55:44 -04:00
Nathaniel J. Smith
a3c88ef12c
Clarify that AsyncExitStack works with coroutine functions (GH-9405)
...
The docs were ambiguous about whether you pass in a coroutine function
or a coroutine object, e.g. is it:
aestack.push_async_exit(some_async_func)
or
aestack.push_async_exit(some_async_func())
(It's the first one.)
2018-09-18 14:27:59 -07:00
Serhiy Storchaka
0185f34ddc
bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. ( #7695 )
...
Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(),
os.path.isfile(), os.path.islink(), and os.path.ismount() now return False
instead of raising ValueError or its subclasses UnicodeEncodeError
and UnicodeDecodeError for paths that contain characters or bytes
unrepresentative at the OS level.
2018-09-18 11:28:51 +03:00
Serhiy Storchaka
7bdf28265a
bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)
...
Add C API function PyCompile_OpcodeStackEffectWithJump().
2018-09-18 09:54:26 +03:00
Yury Selivanov
b042cf10c6
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
2018-09-18 02:47:54 -04:00
Miguel Ángel García
9c53fa6ad9
Fix syntax error on Asyncio example in doc (GH-9387)
...
The `gather` method requires to close the parenthesis, but it is being closed twice.
2018-09-18 02:01:26 -04:00
Danny Hermes
7bfbda46f4
Change "set_after" reference to `say_after`. (GH-9384)
2018-09-18 00:49:21 -04:00
Yury Selivanov
ac94e38d07
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
2018-09-17 23:58:00 -04:00
Elvis Pranskevichus
1fa2ec49be
bpo-33649: A copy-editing pass on asyncio documentation (GH-9376)
2018-09-17 19:16:44 -04:00
Yury Selivanov
3085534c39
bpo-33649: Add a hello world example to asyncio.rst (GH-9374)
2018-09-17 18:41:59 -04:00
Yury Selivanov
c62ab2862d
bpo-34717: Stop numbering stdlib titles/sections in the docs (GH-9370)
2018-09-17 18:12:21 -04:00
Yury Selivanov
394374e30c
bpo-33649: Add low-level APIs index. (GH-9364)
2018-09-17 15:35:24 -04:00
Serhiy Storchaka
5e99b56d6b
bpo-33216: Improve the documentation for CALL_FUNCTION_* (GH-8338) (GH-8784)
2018-09-17 15:15:03 +03:00
Bumsik Kim
5cc583d940
bpo-33649: Clarify protocol_factory as a method parameter (GH-9330)
2018-09-16 16:40:44 -07:00
Yury Selivanov
805e27eff6
bpo-33649: Fix asyncio-dev (GH-9324)
2018-09-14 16:57:11 -07:00
Yury Selivanov
7372c3bbef
bpo-33649: Add high-level APIs cheat-sheet (GH-9319)
2018-09-14 15:11:24 -07:00
Yury Selivanov
6c7316439d
bpo-33649: Refresh asyncio docs landing page (GH-9322)
2018-09-14 14:57:39 -07:00
Grant
5acccfaf68
Grammar fix (GH-9318)
2018-09-14 14:37:48 -07:00
Yury Selivanov
3faaa8857a
bpo-33649: Refresh Tasks and Futures pages ( #9314 )
...
* bpo-33649: Refresh Tasks and Futures pages
* Fixes
* Fix markup
2018-09-14 13:32:07 -07:00
Andrés Delfino
271818fe27
Fix "Python" casing in a few places (GH-9001)
2018-09-14 10:13:09 -07:00
Carol Willing
c9d66f0ed4
bpo-33649 Polish asyncio docs on queues, protocols, and subproccesses ( #9306 )
...
* small clarification
* edits to protocols doc
* Edit async queue doc
2018-09-14 10:06:55 -07:00
Raymond Hettinger
902bcd9a1e
Note that distinct argument patterns can be cached separately (GH-9298)
2018-09-14 00:53:20 -07:00
Lisa Roach
5ac704306f
bpo-33073: Adding as_integer_ratio to ints. (GH-8750)
2018-09-13 23:56:23 -07:00
Windson yang
1aeba7458d
bpo-34552: Clarify built-in types comparisons (GH-9035)
...
Some updates to ancient text about comparisons; fixes bp-34552.
2018-09-13 21:50:18 -07:00
Carol Willing
4e824e9649
bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)
...
Second pass for asyncio subprocess and sync docs.
https://bugs.python.org/issue33649
2018-09-13 18:28:19 -07:00
Andrew Svetlov
11194c877c
bpo-34666: Implement stream.awrite() and stream.aclose() (GH-9274)
2018-09-13 16:53:49 -07:00
Carol Willing
a3c8ba7235
polish exceptions and platforms (GH-9272)
2018-09-13 16:14:41 -07:00
Carol Willing
1abba455d1
Polish doc as part of asyncio doc improvement (GH-9185)
2018-09-12 22:40:37 -07:00
Carol Willing
6d9767fb26
edit async policy doc - second pass (GH-9235)
2018-09-12 17:09:08 -07:00
Carol Willing
5b7cbd602e
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
2018-09-12 17:05:17 -07:00
Tony Flury
2087023fde
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
2018-09-13 01:21:16 +03:00
Benjamin Peterson
5b10d5111d
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
...
Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX
feature. musl does not provide this feature, so some threadsignal tests fail
when Python is built against it.
There's no good way to test for musl, so we skip if we're on Linux and not using
glibc pthreads.
Also, hedge in the threading documentation about when we can provide interrupts
from lock acquisition.
2018-09-12 13:48:03 -07:00
Bumsik Kim
aca819fb49
bpo-33649: Fix doc to reflect changes in 47cd10d
(or bpo-23347) (GH-9219)
2018-09-12 11:31:56 -07:00
Raymond Hettinger
9dfa0fe587
bpo-34637: Make the *start* argument for *sum()* visible as a keyword argument. (GH-9208)
2018-09-12 10:54:06 -07:00
Ethan Furman
f52237400b
bpo-33437: add __new__ vs __init__ example (GH-9145)
...
Improve Enum docs.
https://bugs.python.org/issue33437
2018-09-12 10:00:30 -07:00
Cheryl Sabella
731ff68eee
closes bpo-25041: Document AF_PACKET socket address format. (GH-4092)
2018-09-11 17:32:15 -07:00
Yury Selivanov
8be876e44b
bpo-33649: Cleanup asyncio/streams and asyncio/synchronization docs (GH-9192)
2018-09-11 17:10:37 -07:00
Danish Prakash
9c223794c7
bpo-34365: Update date object documentation (GH-8814)
...
Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects.
<!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365 ) -->
https://bugs.python.org/issue34365
<!-- /issue-number -->
2018-09-11 13:59:23 -07:00
Bram
b4ec36200a
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
...
The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`.
<!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613 ) -->
https://bugs.python.org/issue34613
<!-- /issue-number -->
2018-09-11 11:45:26 -07:00
wim glenn
08bcf647d8
bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)
...
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617 ) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->
2018-09-11 10:44:52 -07:00
Yury Selivanov
7c7605ff11
bpo-33649: First asyncio docs improvement pass (GH-9142)
...
Rewritten/updated sections:
* Event Loop APIs
* Transports & Protocols
* Streams
* Exceptions
* Policies
* Queues
* Subprocesses
* Platforms
2018-09-11 09:54:40 -07:00
Zackery Spytz
3666b3c1f6
bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700)
...
Mention the implicit cache in struct.Struct() docs.
Consistent with the re.compile documentation note.
2018-09-10 21:37:33 -07:00
Raymond Hettinger
2064bb6d57
Fix missing line from example shell session (GH-9143)
2018-09-10 18:43:08 -07:00
Matthias Bussonnier
ffa198c642
bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785)
...
Emit warning when None passed explicitly, list Python version since
deprecation in warning message and docs.
2018-09-10 18:15:56 -07:00
Ville Skyttä
959625b5a5
Use bytes.hex instead of binascii.hexlify in pbkdf2_hmac example (GH-8420)
2018-09-10 18:07:19 -07:00