Matt Wozniski
84ebcf271a
bpo-17140: Document multiprocessing's ThreadPool (GH-23812)
...
Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
2020-12-18 13:05:46 +00:00
Mark Dickinson
886b2e5c7a
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)
2020-12-18 10:24:06 +01:00
Zackery Spytz
074ad5123f
bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823)
2020-12-17 12:24:43 -08:00
Andre Delfino
96a09df644
[doc] Fix a few margins due to bad markup (GH-23619)
2020-12-17 09:25:55 -08:00
Mark Shannon
bf353f3c2d
bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly after raising or reraising an exception (GH-23803)
...
* Ensure that f_lasti is set correctly after an exception is raised to conform to PEP 626.
* Update importlib
* Add NEWS.
2020-12-17 13:55:28 +00:00
Andre Delfino
dcc997cd28
[doc] Fix erroneous backslashes in signatures and names (GH-23658)
...
The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch).
The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.
2020-12-16 17:37:28 -08:00
Matthew Suozzo
a6ba2b9015
Fix indentation for get_stats_profile() docs (GH-23618)
...
The existing method is indented one too many times which
makes it look like a sub-method of print_callees().
2020-12-17 01:17:22 +02:00
Irit Katriel
c590c2338e
bpo-23915: update and elucidate documentation of with_traceback (GH-23680)
2020-12-16 17:03:32 +01:00
Antoine
fc3dca3e16
Clarify eval() doc from library/functions. (GH-22700)
2020-12-16 16:45:19 +01:00
Jason R. Coombs
928dbfc16c
bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)
...
Automerge-Triggered-By: GH:jaraco
2020-12-15 18:12:54 -08:00
pxinwr
e1e3c2dac3
bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)
2020-12-15 22:20:07 +01:00
Julien Palard
c8a10d2fab
bpo-36675: Doc: Reveal doctest directives (GH-23620)
2020-12-15 17:23:03 +01:00
sblondon
da431f789b
Add two spaces around equal sign ( #23719 )
...
Fit to PEP8 coding style
2020-12-12 21:27:22 -08:00
Ethan Furman
efb13be72c
bpo-42385: [Enum] add `_generate_next_value_` to StrEnum (GH-23735)
...
The default for auto() is to return an integer, which doesn't work for `StrEnum`. The new `_generate_next_value_` for `StrEnum` returns the member name, lower cased.
2020-12-10 12:20:06 -08:00
vabr-g
9fc571359a
bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)
...
This is a follow-up to
4662fa9bfe
.
That original commit expanded guards against misspelling assertions on
mocks. This follow-up updates the documentation and improves the error
message by pointing out the potential cause and solution.
Automerge-Triggered-By: GH:gpshead
2020-12-10 10:35:28 -08:00
Ethan Furman
7cf0aad96d
bpo-42517: [Enum] do not convert private names into members (GH-23722)
...
private names, such as `_Color__hue` and `_Color__hue_` are now normal attributes, and do not become members nor raise exceptions
2020-12-09 17:12:11 -08:00
Andre Delfino
2a35137328
[doc] Link to issue regarding logging.disable level param default value (GH-23726)
2020-12-09 15:37:39 -08:00
Andre Delfino
35cacce525
[doc] Document logging.basicConfig default format (GH-23710)
...
Automerge-Triggered-By: GH:vsajip
2020-12-09 13:56:17 -08:00
Raymond Hettinger
752cdf21eb
bpo-38843: Document behavior of default when the attribute is already set (GH-23653)
2020-12-06 18:29:08 -08:00
Andre Delfino
bc662c0bd7
[doc] Fix abc.update_abstractmethods markup (GH-23576)
...
Add link to ABCMeta while at it.
2020-12-01 01:45:11 -08:00
Andre Delfino
80a429eae9
Fix bz2 examples markup ( #23580 )
2020-12-01 10:41:12 +01:00
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