Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-43693: Compute deref offsets in compiler (gh-25152) | Mark Shannon | 2021-06-04 | 1 | -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 Aasland | 2021-06-03 | 1 | -1/+1 | |
| | | | | | (GH-24203) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | |||||
* | bpo-43693: Add new internal code objects fields: co_fastlocalnames and ↵ | Eric Snow | 2021-06-03 | 1 | -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 kulakov | 2021-06-03 | 1 | -0/+8 | |
| | | | Added a function that returns a copy of a dict of logging levels. | |||||
* | Typo fix in asyncio-eventloop.rst (GH-26482) | Zac Bentley | 2021-06-02 | 1 | -1/+1 | |
| | ||||||
* | bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428) | MapleCCC | 2021-06-01 | 1 | -2/+3 | |
| | ||||||
* | Fixing typos in turtle.rst (GH-24385) | Jules Lasne | 2021-05-30 | 1 | -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 Na | 2021-05-30 | 1 | -90/+7 | |
| | ||||||
* | bpo-43750: Fix incorrect reference to PACKET_MULTIHOST in the docs (GH-25241) | Zackery Spytz | 2021-05-29 | 1 | -1/+1 | |
| | | | It should be PACKET_MULTICAST, not PACKET_MULTIHOST. | |||||
* | bpo-44045: fix spelling of uppercase vs upper-case (GH-25985) | Jürgen Gmach | 2021-05-28 | 3 | -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 Aasland | 2021-05-27 | 1 | -0/+8 | |
| | ||||||
* | bpo-42392: [docs] Add deprecated-removed loop labels for asyncio (GH-26357) | Ken Jin | 2021-05-26 | 5 | -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 Law | 2021-05-26 | 1 | -3/+4 | |
| | | | | context var (GH-21199) | |||||
* | bpo-20408: Fix memoryview() signature in docs (GH-24431) | Mariusz Felisiak | 2021-05-25 | 2 | -9/+8 | |
| | ||||||
* | bpo-44151: Various grammar, word order, and markup fixes (GH-26344) | Raymond Hettinger | 2021-05-25 | 1 | -10/+10 | |
| | ||||||
* | bpo-44151: linear_regression() minor API improvements (GH-26199) | Zack Kneupper | 2021-05-25 | 1 | -10/+11 | |
| | ||||||
* | bpo-44195: Use 'TraversableResources' in the docs to match the ↵ | Jason R. Coombs | 2021-05-24 | 1 | -2/+2 | |
| | | | | implementation. (GH-26317) | |||||
* | bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517) | Junnosuke Kuroda | 2021-05-23 | 1 | -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 Katriel | 2021-05-22 | 1 | -0/+7 | |
| | ||||||
* | Remove effbot urls (GH-26308) | E-Paine | 2021-05-22 | 3 | -16/+0 | |
| | ||||||
* | Specify Python Cookbook edition for reference (GH-26301) | Terry Jan Reedy | 2021-05-21 | 1 | -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 Felisiak | 2021-05-21 | 4 | -7/+7 | |
| | ||||||
* | [doc] Fix indentation in inspect documentation (GH-24846) | Numerlor | 2021-05-21 | 1 | -4/+4 | |
| | ||||||
* | bpo-44150: Support optional weights parameter for fmean() (GH-26175) | Raymond Hettinger | 2021-05-21 | 1 | -2/+19 | |
| | ||||||
* | [doc] Fix typo in asyncio-eventloop documentation (GH-22311) | Bruno | 2021-05-19 | 1 | -2/+2 | |
| | ||||||
* | bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as ↵ | naglis | 2021-05-19 | 1 | -2/+2 | |
| | | | | coroutine methods (GH-20870) | |||||
* | bpo-26110: Document `CALL_METHOD_KW` (GH-26159) | Ken Jin | 2021-05-19 | 1 | -0/+12 | |
| | | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | |||||
* | bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26198) | Catherine Devlin | 2021-05-19 | 1 | -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 Einat | 2021-05-19 | 1 | -0/+6 | |
| | ||||||
* | bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220) | Erlend Egeberg Aasland | 2021-05-19 | 1 | -1/+5 | |
| | ||||||
* | bpo-41963: document that ConfigParser strips off comments (GH-26197) | Jürgen Gmach | 2021-05-18 | 1 | -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 Hettinger | 2021-05-17 | 1 | -17/+9 | |
| | ||||||
* | [doc] Fix typo in os module (GH-24464) | Rafael Fontenelle | 2021-05-16 | 1 | -1/+1 | |
| | | | Automerge-Triggered-By: GH:iritkatriel | |||||
* | bpo-32133: Improve numbers docs (GH-26124) | Miguel Brito | 2021-05-15 | 1 | -1/+1 | |
| | ||||||
* | bpo-44072: fix Complex, Integral docs for `**` (GH-25986) | Rory Yorke | 2021-05-14 | 1 | -4/+5 | |
| | | | | In numbers module docstrings and docs. | |||||
* | bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129) | Miguel Brito | 2021-05-14 | 1 | -0/+21 | |
| | ||||||
* | Subprocess Protocols Documentation (GH-20950) | kudavid | 2021-05-14 | 1 | -1/+1 | |
| | | | Should be "Subprocess Protocol instances" not "Datagram Protocol instances" | |||||
* | [doc] Fix typos in cgi.rst (#24766) | Géry Ogam | 2021-05-14 | 1 | -4/+4 | |
| | ||||||
* | Updated code example for asyncio.gather (GH-20604) | josephernest | 2021-05-14 | 1 | -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) | Shantanu | 2021-05-14 | 1 | -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 Brito | 2021-05-13 | 1 | -1/+1 | |
| | ||||||
* | bpo-10548: expectedFailure does not apply to fixtures (#23201) | Irit Katriel | 2021-05-11 | 1 | -2/+3 | |
| | ||||||
* | bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) | uniocto | 2021-05-11 | 2 | -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 Katriel | 2021-05-11 | 1 | -4/+5 | |
| | ||||||
* | Doc: http.server: directory is not a class attribute, but an argument. ↵ | Julien Palard | 2021-05-11 | 1 | -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 ↵ | dhoekstra2000 | 2021-05-10 | 1 | -0/+21 | |
| | | | | (GH-25967) | |||||
* | Fix a word in dataclasses docs. (GH-26003) | Eric V. Smith | 2021-05-09 | 1 | -1/+1 | |
| | ||||||
* | bpo-40222: "Zero cost" exception handling (GH-25729) | Mark Shannon | 2021-05-07 | 1 | -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 Kumaran | 2021-05-07 | 1 | -0/+2 | |
| | | | | (GH-25968) | |||||
* | Fix minor grammar problems in dataclasses documentation (GH-25948) | Scott Noyes | 2021-05-06 | 1 | -7/+7 | |
| | | | Some missing words; some odd word choices. |