summaryrefslogtreecommitdiff
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* Remove latent footnote.importlib_metadata-3.3Jason R. Coombs2020-12-161-6/+0
|
* bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` ↵Jason R. Coombs2020-12-131-2/+3
| | | | | | | | | 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 two spaces around equal sign (#23719)sblondon2020-12-121-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-091-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-061-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-11-301-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>
* bpo-42501: Revise the usage note for Enums with the choices (GH-23563)Raymond Hettinger2020-11-301-14/+3
|
* bpo-42450: Minor updates to the itertools recipes (GH-23555)Raymond Hettinger2020-11-291-5/+5
|
* bpo-42392: Remove deprecated loop parameter from docs (GH-23552)Yurii Karabas2020-11-295-80/+22
|
* bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (#23537)Mark Dickinson2020-11-291-12/+31
| | | | | | | | | | | * 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
* bpo-31904: add shell requirement for test_pipes (GH-23489)pxinwr2020-11-281-0/+2
| | | VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.
* Fix dis markup (GH-23524)Andre Delfino2020-11-281-6/+6
|
* Fix multiprocessing markup (GH-23525)Andre Delfino2020-11-281-3/+3
|
* Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)Shane Harvey2020-11-261-1/+4
|
* bpo-42299: Remove formatter module (GH-23476)Dong-hee Na2020-11-253-365/+0
|
* bpo-42202: Store func annotations as a tuple (GH-23316)Yurii Karabas2020-11-251-1/+3
| | | | | | | | | | | | | 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>
* Doc: Minor fixes (GH-23422)kj2020-11-251-1/+1
|
* Typo (#23482)Jesús Cea2020-11-241-1/+1
|
* Added support for negative indexes to PurePath.parents (GH-21799)Yaroslav Pankovych2020-11-231-1/+1
| | | | | | | | | | 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>
* bpo-15450: Allow subclassing of dircmp (GH-23424) (#23424)Nick Crews2020-11-231-1/+7
| | | Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
* Doc: fix typo in typing.Type docs (GH-23460)John Belmonte2020-11-221-1/+1
|
* bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)Ram Rachum2020-11-221-2/+1
| | | Removing 'evaluate' makes it more consistent with other assertX entries.
* Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272)Richard Levasseur2020-11-211-1/+1
|
* bpo-42232: mmap module add Darwin specific madvise options. (GH-23076)David CARLIER2020-11-211-0/+2
|
* bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)ArioA2020-11-201-1/+1
|
* bpo-42360: Add advice to help avoid pickling issues. (GH-23305)Raymond Hettinger2020-11-201-0/+3
|
* Fix wrong availability for signal.SIGCHLD (#23285)Zhang Maiyun2020-11-201-1/+1
| | | I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
* bpo-35498: Added slice support to PathLib parents attribute. (GH-11165)Joshua Cannon2020-11-201-0/+2
| | | 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)`.
* bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)Christian Heimes2020-11-202-2/+7
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)kj2020-11-191-0/+6
| | | | | | * Whatsnew entry in 3.9 same as the one in 3.10. * versionchanged for typing.Literal docs Needs backport to 3.9.
* bpo-42345: Fix hash implementation of typing.Literal (GH-23383)Yurii Karabas2020-11-191-3/+3
| | | | | | | Fix hash implementation of `typing.Literal`. Update docs regarding `typing.Litaral` caching. Base implementation was done in PR #23294.
* [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769)Andre Delfino2020-11-182-3/+3
|
* bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… ↵Pablo Galindo2020-11-171-1/+1
| | | | | (GH-23351) …ed for splice()
* bpo-41625: Add versionadded to os.splice() constants (GH-23340)Pablo Galindo2020-11-171-0/+1
|
* bpo-41625: Expose the splice() system call in the os module (GH-21947)Pablo Galindo2020-11-171-0/+32
|
* bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284)Victor Stinner2020-11-161-7/+36
| | | | | | | 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.
* bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)Yash Shete2020-11-151-3/+3
| | | The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
* bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)Dominik11232020-11-151-0/+3
|
* fix typo in ThreadedChildWatcher docs (GH-23277)Thomas Grainger2020-11-141-1/+1
|
* bpo-42131: Add PEP 451-related methods to zipimport (GH-23187)Brett Cannon2020-11-131-3/+43
| | | | | Specifically, find_spec(), create_module(), and exec_module(). Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-41001: Add os.eventfd() (#20930)Christian Heimes2020-11-131-0/+96
| | | Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264)Jürgen Gmach2020-11-131-1/+3
|
* bpo-40968: Send http/1.1 ALPN extension (#20959)Christian Heimes2020-11-132-0/+10
| | | Signed-off-by: Christian Heimes <christian@python.org>