summaryrefslogtreecommitdiff
path: root/Doc
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-41879: Doc: Fix description of async for statement (GH-23548)Nick Gaya2020-12-111-4/+4
| | | Fix the wording in the documentation of `async for` to correctly describe asynchronous iterables. This fix is relevant for version 3.7 onward.
* 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-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)Hai Shi2020-12-081-0/+5
| | | | Removed PyModule_GetWarningsModule() which is useless due to the _warnings module was converted to a builtin module in 2.6.
* bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)Matěj Cepl2020-12-071-1/+6
| | | | | | The solution in gh#python/cpython#13236 is too strict because it effectively requires the use of Sphinx >= 2.0. It is not too difficult to make the same solution more robust so it works with all normal versions of Sphinx.
* bpo-30459: Cast the result of PyCell_SET to void (GH-23654)Victor Stinner2020-12-071-0/+7
|
* bpo-38843: Document behavior of default when the attribute is already set ↵Raymond Hettinger2020-12-061-1/+9
| | | | (GH-23653)
* bpo-26131: Deprecate usage of load_module() (GH-23469)Brett Cannon2020-12-041-1/+17
| | | Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning.
* bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)Pablo Galindo2020-12-041-0/+779
|
* bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)Zackery Spytz2020-12-031-2/+2
|
* bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)Victor Stinner2020-12-011-3/+0
|
* [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-302-0/+46
| | | | | | | 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-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532)James Gerity2020-11-301-1/+2
| | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-42501: Revise the usage note for Enums with the choices (GH-23563)Raymond Hettinger2020-11-301-14/+3
|
* bpo-42451: Indicate that PyTuple_GetItem does not support negative indices ↵Yasser A2020-11-301-1/+1
| | | | (GH-23529)
* 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
|
* bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)Zackery Spytz2020-11-281-1/+1
|
* bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)Volker-Weissmann2020-11-271-5/+10
| | | Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)Shane Harvey2020-11-261-1/+4
|
* Typo: fix inverted sense of statement (GH-23288)basak2020-11-251-1/+1
| | | | | | | Looks like a "not" was inadvertently omitted in commit e6a7ea4. Classmethods are useful when data stored in specific instances are *not* needed. Automerge-Triggered-By: GH:JulienPalard
* bpo-42299: Remove formatter module (GH-23476)Dong-hee Na2020-11-254-365/+6
|
* bpo-42202: Store func annotations as a tuple (GH-23316)Yurii Karabas2020-11-252-1/+14
| | | | | | | | | | | | | 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>
* Add more tests to the descriptor howto guide (GH-23506)Raymond Hettinger2020-11-251-4/+25
|
* bpo-42238: Doc: Remove make suspicious from the CI and docs builds. (GH-23313)Julien Palard2020-11-251-1/+0
| | | | | It probably helped a lot a while back, but may not be as usefull today. We'll continue monitoring it before deletion, so true positives can be migrated to rstlint.
* Doc: Minor fixes (GH-23422)kj2020-11-252-3/+3
|
* Add doctests to the descriptor HowTo (GH-23500)Raymond Hettinger2020-11-241-57/+397
|
* Typo (#23482)Jesús Cea2020-11-241-1/+1
|
* Added support for negative indexes to PurePath.parents (GH-21799)Yaroslav Pankovych2020-11-232-2/+6
| | | | | | | | | | 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>
* Descriptor HowTo: Improve the fidelity of the member object simulation ↵Raymond Hettinger2020-11-231-11/+46
| | | | (GH-23475)
* 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-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)Serhiy Storchaka2020-11-222-4/+8
|
* 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-42412: Fix possible leaks and check arguments in ↵Serhiy Storchaka2020-11-211-2/+4
| | | | | | | | PyType_FromModuleAndSpec() (GH-23410) * There were leaks if Py_tp_bases is used more than once or if some call is failed before setting tp_bases. * There was a crash if the bases argument or the Py_tp_bases slot is not a tuple. * The documentation was not accurate.