Raymond Hettinger
cc061d0e6f
bpo-38200: Add itertools.pairwise() (GH-23549)
2020-11-30 20:42:54 -08:00
Christian Heimes
5c73afc36e
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)
...
Add platform.freedesktop_os_release() function to parse freedesktop.org
os-release files.
Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2020-11-30 22:34:45 +01:00
Raymond Hettinger
7f82f22eba
bpo-42501: Revise the usage note for Enums with the choices (GH-23563)
2020-11-30 09:55:13 -08:00
Raymond Hettinger
fc40b3020c
bpo-42450: Minor updates to the itertools recipes (GH-23555)
2020-11-29 10:47:22 -08:00
Yurii Karabas
86150d39c8
bpo-42392: Remove deprecated loop parameter from docs (GH-23552)
2020-11-29 14:50:57 +02:00
Mark Dickinson
c642374b3e
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types ( #23537 )
...
* Improve description of 'e', 'f' and 'g' presentation types
* Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications
* Fix false statement that the alternate form is valid for Decimal
* Nitpick: remove the Harvard/Oxford comma
* Add note that the decimal point is also removed if no digits follow it, except in alternate form
2020-11-29 09:34:36 +00:00
pxinwr
a86a274b72
bpo-31904: add shell requirement for test_pipes (GH-23489)
...
VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.
2020-11-28 14:04:50 -08:00
Andre Delfino
fa840cc81d
Fix dis markup (GH-23524)
2020-11-28 13:43:22 -08:00
Andre Delfino
4b44472966
Fix multiprocessing markup (GH-23525)
2020-11-28 13:42:23 -08:00
Shane Harvey
a1652da2c8
Document optional 'task'/'asyncgen' fields in call_exception_handler ( #21735 )
2020-11-26 15:24:48 +02:00
Dong-hee Na
be319c0c10
bpo-42299: Remove formatter module (GH-23476)
2020-11-25 22:17:30 +09:00
Yurii Karabas
7301979b23
bpo-42202: Store func annotations as a tuple (GH-23316)
...
Reduce memory footprint and improve performance of loading modules having many func annotations.
>>> sys.getsizeof({"a":"int","b":"int","return":"int"})
232
>>> sys.getsizeof(("a","int","b","int","return","int"))
88
The tuple is converted into dict on the fly when `func.__annotations__` is accessed first.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-11-25 19:43:18 +09:00
kj
8d17d2bd0a
Doc: Minor fixes (GH-23422)
2020-11-25 13:59:59 +09:00
Jesús Cea
989af25616
Typo ( #23482 )
2020-11-24 00:56:30 +01:00
Yaroslav Pankovych
79d2e62c00
Added support for negative indexes to PurePath.parents (GH-21799)
...
This commit also fixes up some of the overlapping documentation changed
in bpo-35498, which added support for indexing with slices.
Fixes bpo-21041.
https://bugs.python.org/issue21041
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
2020-11-23 15:06:22 -05:00
Nick Crews
2f2f9d0b5c
bpo-15450: Allow subclassing of dircmp (GH-23424) ( #23424 )
...
Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
2020-11-23 18:29:37 +02:00
John Belmonte
5ef53a88f3
Doc: fix typo in typing.Type docs (GH-23460)
2020-11-22 23:54:19 +09:00
Ram Rachum
bd8c22e1fa
bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)
...
Removing 'evaluate' makes it more consistent with other assertX entries.
2020-11-22 00:59:48 -05:00
Richard Levasseur
68f68fa423
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272)
2020-11-21 11:56:24 -08:00
David CARLIER
0e62efc51e
bpo-42232: mmap module add Darwin specific madvise options. (GH-23076)
2020-11-21 03:39:56 -08:00
ArioA
6edf06b24a
bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)
2020-11-20 21:37:54 -05:00
Raymond Hettinger
9fc319dc03
bpo-42360: Add advice to help avoid pickling issues. (GH-23305)
2020-11-20 12:49:32 -08:00
Zhang Maiyun
4c24b08cd3
Fix wrong availability for signal.SIGCHLD ( #23285 )
...
I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
2020-11-20 20:16:46 +02:00
Joshua Cannon
4520584483
bpo-35498: Added slice support to PathLib parents attribute. (GH-11165)
...
Added slice support to the `pathlib.Path.parents` sequence. For a `Path` `p`, slices of `p.parents` should return the same thing as slices of `tuple(p.parents)`.
2020-11-20 10:40:39 -05:00
Christian Heimes
03c8ddd9e9
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
...
Signed-off-by: Christian Heimes <christian@python.org>
2020-11-20 00:26:07 -08:00
kj
e1dc0db8c7
bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)
...
* Whatsnew entry in 3.9 same as the one in 3.10.
* versionchanged for typing.Literal docs
Needs backport to 3.9.
2020-11-19 09:37:26 -08:00
Yurii Karabas
1b54077ff6
bpo-42345: Fix hash implementation of typing.Literal (GH-23383)
...
Fix hash implementation of `typing.Literal`.
Update docs regarding `typing.Litaral` caching.
Base implementation was done in PR #23294 .
2020-11-19 08:17:38 -08:00
Andre Delfino
829b177436
[doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769)
2020-11-18 23:45:17 +01:00
Pablo Galindo
e59958f8b6
bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… (GH-23351)
...
…ed for splice()
2020-11-17 11:57:03 -08:00
Pablo Galindo
fa96608513
bpo-41625: Add versionadded to os.splice() constants (GH-23340)
2020-11-17 18:13:50 +00:00
Pablo Galindo
a57b3d30f6
bpo-41625: Expose the splice() system call in the os module (GH-21947)
2020-11-17 00:00:38 +00:00
Victor Stinner
3df5c68487
bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284)
...
time.perf_counter() on Windows and time.monotonic() on macOS are now
system-wide. Previously, they used an offset computed at startup to
reduce the precision loss caused by the float type. Use
time.perf_counter_ns() and time.monotonic_ns() added in Python 3.7 to
avoid this precision loss.
2020-11-16 13:21:45 +01:00
Yash Shete
aa01011003
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
...
The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
2020-11-15 21:02:35 -08:00
Dominik1123
c3b9592244
bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)
2020-11-15 17:30:55 -08:00
Thomas Grainger
8836574a0f
fix typo in ThreadedChildWatcher docs (GH-23277)
2020-11-14 14:02:15 +02:00
Brett Cannon
d2e94bb084
bpo-42131: Add PEP 451-related methods to zipimport (GH-23187)
...
Specifically, find_spec(), create_module(), and exec_module().
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2020-11-13 15:14:58 -08:00
Christian Heimes
cd9fed6afb
bpo-41001: Add os.eventfd() ( #20930 )
...
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2020-11-13 19:48:52 +01:00
Jürgen Gmach
bbeb2d266d
bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264)
2020-11-13 13:15:37 -05:00
Christian Heimes
f97406be4c
bpo-40968: Send http/1.1 ALPN extension ( #20959 )
...
Signed-off-by: Christian Heimes <christian@python.org>
2020-11-13 16:37:52 +01:00
Mario Corchero
750c5abf43
bpo-42308: Add threading.__excepthook__ (GH-23218)
...
Add threading.__excepthook__ to allow retrieving the original value
of threading.excepthook in case it is set to a broken or a different
value.
2020-11-12 18:27:44 +01:00
Ammar Askar
f9a8386e44
bpo-40932: Note security caveat of shlex.quote on Windows (GH-21502)
...
Added a note in the `subprocess` docs that recommend using `shlex.quote` without mentioning that this is only applicable to Unix.
Also added a warning straight into the `shlex` docs since it only says "for simple syntaxes resembling that of the Unix shell" and says using `quote` plugs the security hole without mentioning this important caveat.
2020-11-10 23:29:56 -08:00
Batuhan Taskaya
fa476fe132
bpo-39411: pyclbr rewrite on AST ( #18103 )
...
- Rewrite pyclbr using an AST processor
- Add is_async to the pyclbr.Function
2020-11-11 10:14:12 +03:00
Tom Gringauz
a117167d8d
bpo-41543: contextlib.nullcontext can fill in for an async context manager (GH-21870)
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-11-09 14:34:07 +02:00
Ammar Askar
97e8b1eaea
bpo-40624: Add support for the XPath != operator in xml.etree (GH-22147)
2020-11-09 08:02:39 +01:00
Don Kirkby
fd6f6fa403
Minor wording change in concurrent.futures. (GH-23194)
...
Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
2020-11-08 11:01:23 +02:00
Andre Delfino
7c01f1540f
Remove outdated reference to pywin32 from platform module (GH-22005)
2020-11-06 18:58:14 +00:00
Zackery Spytz
91e93794d5
bpo-26389: Allow passing an exception object in the traceback module (GH-22610)
...
The format_exception(), format_exception_only(), and
print_exception() functions can now take an exception object as a positional-only argument.
Co-Authored-By: Matthias Bussonnier <bussonniermatthias@gmail.com>
2020-11-05 22:18:44 +00:00
kj
133aa2d581
[docs] fix wrongly named AsyncContextDecorator (GH-23164)
...
Also added versionchanged.
2020-11-05 18:16:27 +02:00
Kazantcev Andrey
178695b7ae
bpo-40816 Add AsyncContextDecorator class (GH-20516)
...
Co-authored-by: Yury Selivanov <yury@edgedb.com>
2020-11-05 10:52:24 +02:00
Victor Stinner
3529718925
bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119)
...
On Unix, the os.device_encoding() function now returns 'UTF-8' rather
than the device encoding if the Python UTF-8 Mode is enabled.
2020-11-04 11:20:10 +01:00