summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42781: Document the mechanics of cached_property from a user viewpoint ↵Raymond Hettinger2021-01-011-4/+14
| | | | (GH-24031)
* Fixes a typo in importlib.metadata. (#23921)Tao He2020-12-311-2/+2
| | | Signed-off-by: Tao He <sighingnow@gmail.com>
* bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` ↵Jason R. Coombs2020-12-311-8/+3
| | | | | | | | | | | | | | (#23758) * bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` object referencing the `Distribution` when constructed from a `Distribution`. Also, sync importlib_metadata 3.3: - Add support for package discovery under package normalization rules. - The object returned by `metadata()` now has a formally-defined protocol called `PackageMetadata` with declared support for the `.get_all()` method. * Add blurb * Remove latent footnote.
* bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in ↵Erlend Egeberg Aasland2020-12-311-10/+6
| | | | socket.ntohs and socket.htons (GH-23980)
* Minor improvements to the convolve() recipe (GH-24012)Raymond Hettinger2020-12-301-2/+2
| | | | * Minor improvement to speed and space efficiency for the convolve() recipe * Don't require convolve's kernel to be a sequence.
* bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861)Andre Delfino2020-12-291-0/+2
|
* bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)Michael Wayne Goodman2020-12-291-2/+2
| | | | | | The descriptions of the `codes` and `messages` dictionaries in `xml.parsers.expat.errors` were swapped, and this commit swaps them back. For example, `codes` maps string descriptions of errors to numeric error codes, not the other way around.
* bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)Zackery Spytz2020-12-291-1/+1
| | | Automerge-Triggered-By: GH:zware
* bpo-42222: Modernize integer test/conversion in randrange() (#23064)Raymond Hettinger2020-12-281-0/+9
|
* bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)Erlend Egeberg Aasland2020-12-271-1/+1
| | | The `pages` argument default value now reflects the implementation.
* Add convolve() to the itertools recipes (GH-23928)Raymond Hettinger2020-12-261-0/+12
|
* bpo-35728: Add root parameter to tkinter.font.nametofont() (GH-23885)Desmond Cheong2020-12-251-2/+5
|
* bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)Gregory P. Smith2020-12-251-2/+3
| | | | | | | | | | When the modern text= spelling of the universal_newlines= parameter was added for Python 3.7, check_output's special case around input=None was overlooked. So it behaved differently with universal_newlines=True vs text=True. This reconciles the behavior to be consistent and adds a test to guarantee it. Also clarifies the existing check_output documentation. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914)Raymond Hettinger2020-12-241-9/+12
|
* bpo-41960: Add globalns and localns parameters to inspect.signature and ↵Batuhan Taskaya2020-12-231-3/+19
| | | | Signature.from_callable (GH-22583)
* bpo-9694: Fix misleading phrase "optional arguments" (GH-23858)Raymond Hettinger2020-12-231-27/+27
|
* BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)Matt Fowler2020-12-231-5/+5
|
* bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884)Raymond Hettinger2020-12-221-0/+5
|
* [doc] Fix missing commas in signatures (#23693)Andre Delfino2020-12-222-3/+3
| | | | | * Fix star in signatures * Fix comma in signatures
* bpo-39159: Declare error that might be raised from literal_eval (GH-19899)Batuhan Taskaya2020-12-221-1/+5
|
* bpo-42572: Improve argparse docs for the type parameter. (GH-23849)Raymond Hettinger2020-12-201-50/+57
|
* bpo-41724: Explain when the conversion is not possible with detect_types ↵sblondon2020-12-191-1/+3
| | | | | enabled (GH-23855) * Explain when the conversion is not possible with detect_types enabled
* bpo-42559: Not that getrandbits() is non-negative. (GH-23843)Raymond Hettinger2020-12-191-4/+5
|
* bpo-34805: Guarantee that __subclasses__() is in definition order. (GH-23844)Raymond Hettinger2020-12-191-2/+2
|
* bpo-24792: Fix zipimporter masking the cause of import errors (GH-22204)Irit Katriel2020-12-191-5/+4
| | | | | zipimport's _unmarshal_code swallows import errors and then _get_module_code doesn't know the cause of the error, and returns the generic, and sometimes incorrect, 'could not find...'. Automerge-Triggered-By: GH:brettcannon
* bpo-36769: Document that fnmatch.filter supports any kind of iterable (#13039)Andre Delfino2020-12-181-1/+1
|
* bpo-42675: Document collections.abc.Callable changes (GH-23839)kj2020-12-181-0/+4
|
* bpo-17140: Document multiprocessing's ThreadPool (GH-23812)Matt Wozniski2020-12-181-0/+40
| | | | | 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__`.
* bpo-39096: Format specification documentation fixes for numeric types (GH-23575)Mark Dickinson2020-12-181-12/+23
|
* bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823)Zackery Spytz2020-12-171-1/+1
|
* [doc] Fix a few margins due to bad markup (GH-23619)Andre Delfino2020-12-1710-88/+88
|
* bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly ↵Mark Shannon2020-12-171-1/+2
| | | | | | | | | 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.
* [doc] Fix erroneous backslashes in signatures and names (GH-23658)Andre Delfino2020-12-1732-88/+88
| | | | | 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.
* Fix indentation for get_stats_profile() docs (GH-23618)Matthew Suozzo2020-12-161-1/+1
| | | | The existing method is indented one too many times which makes it look like a sub-method of print_callees().
* bpo-23915: update and elucidate documentation of with_traceback (GH-23680)Irit Katriel2020-12-161-2/+7
|
* Clarify eval() doc from library/functions. (GH-22700)Antoine2020-12-161-8/+9
|
* bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)Jason R. Coombs2020-12-161-1/+14
| | | Automerge-Triggered-By: GH:jaraco
* bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)pxinwr2020-12-151-1/+1
|
* bpo-36675: Doc: Reveal doctest directives (GH-23620)Julien Palard2020-12-151-17/+37
|
* Add two spaces around equal sign (#23719)sblondon2020-12-131-1/+1
| | | Fit to PEP8 coding style
* bpo-42385: [Enum] add `_generate_next_value_` to StrEnum (GH-23735)Ethan Furman2020-12-101-2/+4
| | | 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.
* bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)vabr-g2020-12-101-3/+4
| | | | | | | | | This is a follow-up to https://github.com/python/cpython/commit/4662fa9bfe4a849fe87bfb321d8ef0956c89a772. 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
* bpo-42517: [Enum] do not convert private names into members (GH-23722)Ethan Furman2020-12-101-0/+9
| | | private names, such as `_Color__hue` and `_Color__hue_` are now normal attributes, and do not become members nor raise exceptions
* [doc] Link to issue regarding logging.disable level param default value ↵Andre Delfino2020-12-091-2/+2
| | | | (GH-23726)
* [doc] Document logging.basicConfig default format (GH-23710)Andre Delfino2020-12-091-1/+3
| | | Automerge-Triggered-By: GH:vsajip
* bpo-38843: Document behavior of default when the attribute is already set ↵Raymond Hettinger2020-12-071-1/+9
| | | | (GH-23653)
* [doc] Fix abc.update_abstractmethods markup (GH-23576)Andre Delfino2020-12-011-1/+2
| | | Add link to ABCMeta while at it.
* Fix bz2 examples markup (#23580)Andre Delfino2020-12-011-8/+0
|
* bpo-38200: Add itertools.pairwise() (GH-23549)Raymond Hettinger2020-12-011-6/+17
|
* bpo-28468: Add platform.freedesktop_os_release() (GH-23492)Christian Heimes2020-11-301-0/+38
| | | | | | | 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>