summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* [doc] Improve punctuation atexit docGéry Ogam2021-06-221-7/+8
|
* bpo-41621: Document defaultdict's default_factory parameter (GH-21945)Dennis Sweeney2021-06-221-2/+2
| | | It defaults to None and is positional only.
* bpo-13814: Explain why generators are not context managers (GH-26835)Terry Jan Reedy2021-06-211-0/+9
| | | | | Put entry in Design FAQ after a question about a context manager for assignment. Original patch by Aidan Lowe.
* bpo-44466: Faulthandler now detects the GC (GH-26823)Victor Stinner2021-06-212-0/+11
| | | | The faulthandler module now detects if a fatal error occurs during a garbage collector collection (only if all_threads is true).
* bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)Georg Sauthoff2021-06-202-0/+6
| | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* Fix typos and grammatical changes in the 3.10 what's new document (GH-26319)Hemangii2021-06-201-1/+1
|
* bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798)Mark Dickinson2021-06-191-2/+2
|
* Remove dubious suggestion (GH-26789)Raymond Hettinger2021-06-191-18/+0
| | | Remove the weakref example. If a new instance is created and the same arguments are passes, it raises a ReferenceError.
* Add a note about NameError/AttributeError suggestions with custom error ↵Pablo Galindo2021-06-181-0/+11
| | | | functions (GH-26794)
* bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)Ethan Furman2021-06-181-4/+29
| | | | | | | | | | | | | | | | | | | | | * [Enum] reduce scope of new format behavior Instead of treating all Enums the same for format(), only user mixed-in enums will be affected. In other words, IntEnum and IntFlag will not be changing the format() behavior, due to the requirement that they be drop-in replacements of existing integer constants. If a user creates their own integer-based enum, then the new behavior will apply: class Grades(int, Enum): A = 5 B = 4 C = 3 D = 2 F = 0 Now: format(Grades.B) -> DeprecationWarning and '4' 3.12: -> no warning, and 'B'
* bpo-44310: Add a FAQ entry for caching method calls (GH-26731)Raymond Hettinger2021-06-171-0/+97
|
* bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it ↵Mark Dickinson2021-06-161-2/+2
| | | | to 'num'. (GH-26744)
* bpo-44392: Add Py_GenericAlias to C API docs (GH-26724)Ken Jin2021-06-163-1/+49
| | | | Also fix stable ABI type definitions
* bpo-43795: Don't list private names in the limited API (GH-26740)Petr Viktorin2021-06-161-2/+1
| | | | | | | | | | | | | * Remove struct _node from the stable ABI list This struct was removed along with the old parser in Python 3.9 (PEP 617) * Stable ABI list: Use the public name "PyFrameObject" rather than "_frame" * Ensure limited API doesn't contain private names Names prefixed by an underscore are private by definition. * Add a blurb
* bpo-44342: [Enum] sync current docs to 3.10 (GH-26750)Ethan Furman2021-06-161-1/+1
|
* bpo-43475: Add what's new entry for NaN hash changes (GH-26725)Mark Dickinson2021-06-151-0/+7
|
* bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)Sebastian Rittau2021-06-141-2/+10
| | | | | They were originally removed in GH-10173 per bpo-35089, but then readded in GH-21574. Cf. bpo-38291 for decision to remove.
* bpo-44310: Note that lru_cache keep references to both arguments and ↵Raymond Hettinger2021-06-141-6/+9
| | | | | | | | results (GH-26715) * Simplify the count_vowels example * Hits and misses are fetched while a lock is held * Add note that references are kept for arguments and return values * Clarify behavior when *typed* is false.
* bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)Serhiy Storchaka2021-06-121-1/+1
|
* bpo-44339: Fix math.pow corner case to comply with IEEE 754 (GH-26606)Mark Dickinson2021-06-122-3/+14
| | | Change the behaviour of `math.pow(0.0, -math.inf)` and `math.pow(-0.0, -math.inf)` to return positive infinity instead of raising `ValueError`. This makes `math.pow` consistent with the built-in `pow` (and the `**` operator) for this particular special case, and brings the `math.pow` special-case handling into compliance with IEEE 754.
* bpo-44362: ssl: improve deprecation warnings and docs (GH-26646)Christian Heimes2021-06-112-18/+41
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Doc: Prettier exception hierarchy. (GH-26533)Julien Palard2021-06-111-0/+1
|
* bpo-44357:Add `math.cbrt()` function: Cube Root (GH-26622)Ajith Ramachandran2021-06-102-0/+14
| | | | | | * Add math.cbrt() function: Cube Root Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* bpo-35800: Remove smtpd.MailmanProxy since 3.11 (GH-26617)Dong-hee Na2021-06-092-18/+7
|
* bpo-21760: fix __file__ description (GH-19097)Furkan Onder2021-06-091-3/+8
|
* bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586)Ethan Furman2021-06-091-4/+82
| | | | Move the check for missing named flags in flag aliases from Flag creation to a new *verify* decorator.
* bpo-43833: Emit warnings for numeric literals followed by keyword (GH-25466)Serhiy Storchaka2021-06-081-0/+23
| | | | | | | | Emit a deprecation warning if the numeric literal is immediately followed by one of keywords: and, else, for, if, in, is, or. Raise a syntax error with more informative message if it is immediately followed by other keyword or identifier. Automerge-Triggered-By: GH:pablogsal
* bpo-43693: Un-revert commit f3fa63e. (#26609)Eric Snow2021-06-081-0/+8
| | | | | | | | | This was reverted in GH-26596 (commit 6d518bb) due to some bad memory accesses. * Add the MAKE_CELL opcode. (gh-26396) The memory accesses have been fixed. https://bugs.python.org/issue43693
* bpo-43795: Note Stable ABI PEP in What's New (GH-26479)Petr Viktorin2021-06-081-0/+10
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Revert "bpo-43693: Add the MAKE_CELL opcode and interleave fast locals ↵Pablo Galindo2021-06-081-8/+0
| | | | | offsets. (gh-26396)" (GH-26597) This reverts commit 631f9938b1604d4f893417ec339b9e0fa9196fb1.
* bpo-44348: Revert "bpo-39573: Py_TYPE becomes a static inline function ↵Pablo Galindo2021-06-082-38/+3
| | | | | | (GH-26493)" (GH-26596) This reverts commit f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 as is causing crashes in some Windows tests in the buildbots.
* bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offsets. ↵Eric Snow2021-06-071-0/+8
| | | | | | | (gh-26396) This moves logic out of the frame initialization code and into the compiler and eval loop. Doing so simplifies the runtime code and allows us to optimize it better. https://bugs.python.org/issue43693
* bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577)Eric Snow2021-06-071-7/+23
| | | | | | | | | | These were reverted in gh-26530 (commit 17c4edc) due to refleaks. * 2c1e258 - Compute deref offsets in compiler (gh-25152) * b2bf2bc - Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388) This change fixes the refleaks. https://bugs.python.org/issue43693
* bpo-44258: support PEP 515 for Fraction's initialization from string (GH-26422)Sergey B Kirpichev2021-06-072-1/+11
| | | | | | | | | | | | | | | | | | | * bpo-44258: support PEP 515 for Fraction's initialization from string * regexps's version * A different regexps version, which doesn't suffer from catastrophic backtracking * revert denom -> den * strip "_" from the decimal str, add few tests * drop redundant tests * Add versionchanged & whatsnew entry * Amend Fraction constructor docs * Change .. versionchanged:...
* bpo-44322: Document more SyntaxError details. (GH-26562)Terry Jan Reedy2021-06-071-2/+9
| | | | | | 1. SyntaxError args have a tuple of other attributes. 2. Attributes are adjusted for errors in f-string field expressions. 3. Compile() can raise SyntaxErrors.
* bpo-44320: Fix markup for W3C C14N test suite (GH-26556)NAKAMURA Osamu2021-06-061-1/+1
|
* bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492)Irit Katriel2021-06-041-1/+1
|
* bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and ↵Pablo Galindo2021-06-041-23/+7
| | | | | | | | | | | | | b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530) * Revert "bpo-43693: Compute deref offsets in compiler (gh-25152)" This reverts commit b2bf2bc1ece673d387341e06c8d3c2bc6e259747. * Revert "bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)" This reverts commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f. These two commits are breaking the refleak buildbots.
* 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-44305: Improve syntax error for try blocks without except or finally ↵Pablo Galindo2021-06-031-0/+14
| | | | (GH-26523)
* 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-39573: Py_TYPE becomes a static inline function (GH-26493)Victor Stinner2021-06-032-3/+38
| | | | | Convert the Py_TYPE() and Py_SIZE() macros to static inline functions. The Py_SET_TYPE() and Py_SET_SIZE() functions must now be used to set an object type and size.
* 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-39560: Document PyUnicode_FromKindAndData() kind transformation (GH-23848)Zackery Spytz2021-06-031-0/+6
|
* 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.
* Add bpo-42914 to What's New (GH-25124)Wm. Keith van der Meulen2021-06-031-0/+3
| | | | | BPO-42914 was not added to the What's New in #24864. This includes it in the "Improved Modules" section. Automerge-Triggered-By: GH:gpshead
* Typo fix in asyncio-eventloop.rst (GH-26482)Zac Bentley2021-06-021-1/+1
|
* bpo-44263: Py_TPFLAGS_HAVE_GC requires tp_traverse (GH-26463)Victor Stinner2021-06-011-1/+6
| | | | | The PyType_Ready() function now raises an error if a type is defined with the Py_TPFLAGS_HAVE_GC flag set but has no traverse function (PyTypeObject.tp_traverse).
* bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428)MapleCCC2021-06-011-2/+3
|
* bpo-44246: Remove note about access by index now that a compatibility shim ↵Jason R. Coombs2021-05-311-4/+1
| | | | is offered. (GH-26472)