summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43693: Compute deref offsets in compiler (gh-25152)Mark Shannon2021-06-041-6/+23
| | | | | | Merges locals and cells into a single array. Saves a pointer in the interpreter and means that we don't need the LOAD_CLOSURE opcode any more https://bugs.python.org/issue43693
* bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module ↵Erlend Egeberg Aasland2021-06-031-1/+1
| | | | | (GH-24203) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43693: Add new internal code objects fields: co_fastlocalnames and ↵Eric Snow2021-06-031-3/+2
| | | | | | | | | | | | | | | | | co_fastlocalkinds. (gh-26388) A number of places in the code base (notably ceval.c and frameobject.c) rely on mapping variable names to indices in the frame "locals plus" array (AKA fast locals), and thus opargs. Currently the compiler indirectly encodes that information on the code object as the tuples co_varnames, co_cellvars, and co_freevars. At runtime the dependent code must calculate the proper mapping from those, which isn't ideal and impacts performance-sensitive sections. This is something we can easily address in the compiler instead. This change addresses the situation by replacing internal use of co_varnames, etc. with a single combined tuple of names in locals-plus order, along with a minimal array mapping each to its kind (local vs. cell vs. free). These two new PyCodeObject fields, co_fastlocalnames and co_fastllocalkinds, are not exposed to Python code for now, but co_varnames, etc. are still available with the same values as before (though computed lazily). Aside from the (mild) performance impact, there are a number of other benefits: * there's now a clear, direct relationship between locals-plus and variables * code that relies on the locals-plus-to-name mapping is simpler * marshaled code objects are smaller and serialize/de-serialize faster Also note that we can take this approach further by expanding the possible values in co_fastlocalkinds to include specific argument types (e.g. positional-only, kwargs). Doing so would allow further speed-ups in _PyEval_MakeFrameVector(), which is where args get unpacked into the locals-plus array. It would also allow us to shrink marshaled code objects even further. https://bugs.python.org/issue43693
* bpo-43858: Add logging.getLevelNamesMapping() (GH-26459)andrei kulakov2021-06-031-0/+8
| | | Added a function that returns a copy of a dict of logging levels.
* Typo fix in asyncio-eventloop.rst (GH-26482)Zac Bentley2021-06-021-1/+1
|
* bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428)MapleCCC2021-06-011-2/+3
|
* Fixing typos in turtle.rst (GH-24385)Jules Lasne2021-05-301-5/+5
| | | | | | | | | | | * Fixing typos in turtle.rst * Update turtle.rst * Update turtle.rst * Update turtle.rst * Update turtle.rst
* bpo-44235: Remove deprecated functions in the gettext module. (GH-26378)Dong-hee Na2021-05-301-90/+7
|
* bpo-43750: Fix incorrect reference to PACKET_MULTIHOST in the docs (GH-25241)Zackery Spytz2021-05-291-1/+1
| | | It should be PACKET_MULTICAST, not PACKET_MULTIHOST.
* bpo-44045: fix spelling of uppercase vs upper-case (GH-25985)Jürgen Gmach2021-05-283-3/+3
| | | | | And also of lowercase vs lower-case. The `-` notation should only be used for adjectives.
* bpo-43988: Document test.support.check_disallow_instantiation() (GH-26394)Erlend Egeberg Aasland2021-05-271-0/+8
|
* bpo-42392: [docs] Add deprecated-removed loop labels for asyncio (GH-26357)Ken Jin2021-05-265-0/+150
| | | | * Add deprecated-removed loop labels for all reelvant functions/classes in asyncio
* bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as ↵Peter Law2021-05-261-3/+4
| | | | context var (GH-21199)
* bpo-20408: Fix memoryview() signature in docs (GH-24431)Mariusz Felisiak2021-05-252-9/+8
|
* bpo-44151: Various grammar, word order, and markup fixes (GH-26344)Raymond Hettinger2021-05-251-10/+10
|
* bpo-44151: linear_regression() minor API improvements (GH-26199)Zack Kneupper2021-05-251-10/+11
|
* bpo-44195: Use 'TraversableResources' in the docs to match the ↵Jason R. Coombs2021-05-241-2/+2
| | | | implementation. (GH-26317)
* bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517)Junnosuke Kuroda2021-05-231-1/+1
| | | | | Making the description of `InspectLoader.is_package` aligned with the current implementation. Automerge-Triggered-By: GH:jaraco
* bpo-33809: add the TracebackException.print() method (GH-24231)Irit Katriel2021-05-221-0/+7
|
* Remove effbot urls (GH-26308)E-Paine2021-05-223-16/+0
|
* Specify Python Cookbook edition for reference (GH-26301)Terry Jan Reedy2021-05-211-2/+2
| | | | | | The timeit doc references Tim Peters introduction to the Chapter 18, Algorithms, of the second edition. The first editiion was before timeit. The third edition instead has Chapter 1, Data Structures and Algorithms, without Tim's introduction.
* Remove duplicate words in docs. (GH-26167)Mariusz Felisiak2021-05-214-7/+7
|
* [doc] Fix indentation in inspect documentation (GH-24846)Numerlor2021-05-211-4/+4
|
* bpo-44150: Support optional weights parameter for fmean() (GH-26175)Raymond Hettinger2021-05-211-2/+19
|
* [doc] Fix typo in asyncio-eventloop documentation (GH-22311)Bruno2021-05-191-2/+2
|
* bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as ↵naglis2021-05-191-2/+2
| | | | coroutine methods (GH-20870)
* bpo-26110: Document `CALL_METHOD_KW` (GH-26159)Ken Jin2021-05-191-0/+12
| | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26198)Catherine Devlin2021-05-191-0/+3
| | | | | | | * bpo-4928 Document NamedTemporaryFile non-deletion after SIGKILL * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Tal Einat2021-05-191-0/+6
|
* bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)Erlend Egeberg Aasland2021-05-191-1/+5
|
* bpo-41963: document that ConfigParser strips off comments (GH-26197)Jürgen Gmach2021-05-181-0/+7
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Laura Gutierrez Funderburk <58710704+lgfunderburk@users.noreply.github.com>
* Apply edits from Allen Downey's review of the linear_regression docs. (GH-26176)Raymond Hettinger2021-05-171-17/+9
|
* [doc] Fix typo in os module (GH-24464)Rafael Fontenelle2021-05-161-1/+1
| | | Automerge-Triggered-By: GH:iritkatriel
* bpo-32133: Improve numbers docs (GH-26124)Miguel Brito2021-05-151-1/+1
|
* bpo-44072: fix Complex, Integral docs for `**` (GH-25986)Rory Yorke2021-05-141-4/+5
| | | | In numbers module docstrings and docs.
* bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129)Miguel Brito2021-05-141-0/+21
|
* Subprocess Protocols Documentation (GH-20950)kudavid2021-05-141-1/+1
| | | Should be "Subprocess Protocol instances" not "Datagram Protocol instances"
* [doc] Fix typos in cgi.rst (#24766)Géry Ogam2021-05-141-4/+4
|
* Updated code example for asyncio.gather (GH-20604)josephernest2021-05-141-8/+11
| | | | | The previous example did not fully showcase the interest of using gather. Here the example showcases "the result is an aggregate list of returned values".
* bpo-38250: add version added for FlagBoundary (GH-25820)Shantanu2021-05-141-0/+5
| | | | | | | * bpo-38250: add version added for FlagBoundary * Also add versionadded for utilities Co-authored-by: hauntsaninja <>
* bpo-44030: Fix formatting error in exceptions docs (GH-25929)Miguel Brito2021-05-131-1/+1
|
* bpo-10548: expectedFailure does not apply to fixtures (#23201)Irit Katriel2021-05-111-2/+3
|
* bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016)uniocto2021-05-112-5/+11
| | | | | | | | | * Document os-system, subprocess Patch * Update Doc/library/os.rst Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (#23192)Irit Katriel2021-05-111-4/+5
|
* Doc: http.server: directory is not a class attribute, but an argument. ↵Julien Palard2021-05-111-8/+8
| | | | | (GH-26017) * Doc: http.server: directory is not a class attribute, but an argument.
* bpo-43558: Add note about base class initialization to dataclasses doc ↵dhoekstra20002021-05-101-0/+21
| | | | (GH-25967)
* Fix a word in dataclasses docs. (GH-26003)Eric V. Smith2021-05-091-1/+1
|
* bpo-40222: "Zero cost" exception handling (GH-25729)Mark Shannon2021-05-071-31/+27
| | | | | | | | "Zero cost" exception handling. * Uses a lookup table to determine how to handle exceptions. * Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements. * Reduces the size of the frame object by about 60%.
* Simple Enhancement. Add missing return statements in ftplib documentation. ↵Senthil Kumaran2021-05-071-0/+2
| | | | (GH-25968)
* Fix minor grammar problems in dataclasses documentation (GH-25948)Scott Noyes2021-05-061-7/+7
| | | Some missing words; some odd word choices.