summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-46541: Scan Fewer Files in generate_global_objects.py (gh-31364)Eric Snow2022-02-161-15/+19
| | | https://bugs.python.org/issue46541
* bpo-46541: Drop the check for orphaned global strings. (gh-31363)Eric Snow2022-02-163-147/+1
| | | https://bugs.python.org/issue46541
* bpo-46752: Add TaskGroup; add Task..cancelled(),.uncancel() (GH-31270)Guido van Rossum2022-02-159-3/+1100
| | | | | | | | | | | | | | | | | asyncio/taskgroups.py is an adaptation of taskgroup.py from EdgeDb, with the following key changes: - Allow creating new tasks as long as the last task hasn't finished - Raise [Base]ExceptionGroup (directly) rather than TaskGroupError deriving from MultiError - Instead of monkey-patching the parent task's cancel() method, add a new public API to Task The Task class has a new internal flag, `_cancel_requested`, which is set when `.cancel()` is called successfully. The `.cancelling()` method returns the value of this flag. Further `.cancel()` calls while this flag is set return False. To reset this flag, call `.uncancel()`. Thus, a Task that catches and ignores `CancelledError` should call `.uncancel()` if it wants to be cancellable again; until it does so, it is deemed to be busy with uninterruptible cleanup. This new Task API helps solve the problem where TaskGroup needs to distinguish between whether the parent task being cancelled "from the outside" vs. "from inside". Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)Zackery Spytz2022-02-154-4/+16
|
* bpo-46741: Update `asyncio.protocols.BufferedProtocol` docstring (31327)Alex Waygood2022-02-151-4/+0
| | | The docstring for `BufferedProtocol` states that the class is still an "experimental API", but it has been considered stable since 3.8.
* Fix copyright years in `README.rst` (#31347)Nikita Sobolev2022-02-151-2/+2
|
* bpo-44011: New asyncio ssl implementation (#31275)Kumar Aditya2022-02-1512-527/+2478
| | | | | | | | | | | * bpo-44011: New asyncio ssl implementation Co-Authored-By: Andrew Svetlov <andrew.svetlov@gmail.com> * fix warning * fix typo Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46724: Use `JUMP_ABSOLUTE` for all backward jumps. (GH-31326)Mark Shannon2022-02-153-0/+17
| | | | | | | | | * Make sure all backward jumps use JUMP_ABSOLUTE. * Add news. * Fix up news item. * Make test use consistent style.
* bpo-46541: Discover the global strings. (gh-31346)Eric Snow2022-02-159-272/+101
| | | | | | | Instead of manually enumerating the global strings in generate_global_objects.py, we extrapolate the list from usage of _Py_ID() and _Py_STR() in the source files. This is partly inspired by gh-31261. https://bugs.python.org/issue46541
* bpo-46728: fix docstring of combinations_with_replacement for consistency ↵DongGeon Lee2022-02-152-4/+4
| | | | (GH-31293)
* Regen the global objects using PYTHON_FOR_REGEN. (gh-31344)Eric Snow2022-02-142-3/+3
| | | https://bugs.python.org/issue46541
* Update the OMG link (GH-30383)David Gilbertson2022-02-141-1/+1
|
* Update the copyright symbols in README.rst (GH-25514)MishManners®™2022-02-141-5/+6
| | | | | | | Updated a couple copyright symbols from (c) to © The rest of the doc are already using © Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* Fix missing import in dataclass code snippet (GH-29214)Leo2022-02-141-1/+1
| | | field was not imported. It has been added now.
* doc: use colon for all color's rangs (GH-28998)Rafael Fontenelle2022-02-141-2/+2
|
* bpo-38619: Update the documentation for UUID.hex (GH-29830)1809092022-02-141-1/+1
| | | | | Explicitly state that it is lowercase. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Update __main__.rst (GH-30896)David Gilbertson2022-02-141-1/+1
| | | | The reference to `venv` appears in the paragraph below, instead of above. Fixed the documentation.
* Update further README references from 3.10 to 3.11 (GH-31009)Jacob Walls2022-02-141-4/+4
|
* Fix a typo in Doc/faq/programming.rst (GH-31243)Cooper Lees2022-02-141-1/+1
| | | is not longer used -> is no longer used
* Fix minor grammar error (#31325)Scott Noyes2022-02-141-1/+1
| | | "an" followed by consonant should be "a"
* Remove unnecessary basic block from comprehensions (GH-31263)Brandt Bucher2022-02-141-6/+3
|
* bpo-46747: Add missing key parameters in the bisect docs (GH-31323)Zackery Spytz2022-02-141-2/+2
| | | Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs.
* Add pair counts to stats output and summary. (GH-31324)Mark Shannon2022-02-142-10/+46
|
* Include length in stats for UNPACK_SEQUENCE. (GH-31254)Mark Shannon2022-02-142-8/+30
|
* Corrections to format precision description. (GH-31291)John Belmonte2022-02-141-5/+6
| | | | | | | | | | | * `precision` field is a decimal integer * clarify that stated limitations are on presentation type rather than input value type. Especially misleading is "precision is not allowed for integer values", since integer value input to a format like `.1f` is fine. * regarding max field size, replace "non-number" with "string", which is the only non-numeric presentation type Automerge-Triggered-By: GH:ericvsmith
* Improve docstring for set.discard() (GH-31315)Raymond Hettinger2022-02-131-1/+2
|
* bpo-45447: Fix entry in What's New 3.11 (GH-31307)Terry Jan Reedy2022-02-131-1/+1
|
* bpo-45447: Add entry to What's new 3.9 (GH-31305)Terry Jan Reedy2022-02-131-0/+3
|
* bpo-45447: Add entry to What's new 3.10 (GH-31304)Terry Jan Reedy2022-02-131-1/+6
|
* bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)Alex Waygood2022-02-1311-3/+83
| | | | | | | | Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues. Add util.py to contain objects that are used in multiple idlelib modules and have no dependencies on any of them. Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-46333: include `module` in `ForwardRef.__repr__` (#31283)aha792022-02-123-1/+10
| | | | | | | | The module parameter carries semantic information about the forward ref. Show to the user that forward refs with same argument but different module are different. Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022)Cyril Jouve2022-02-126-31/+238
|
* bpo-45948: Remove constructor discrepancy in C version of ↵Jacob Walls2022-02-124-5/+19
| | | | | ElementTree.XMLParser (GH-31152) Both implementations accept target=None now.
* bpo-46586: Fix documentation links (GH-31216)Meer Suri2022-02-121-1/+1
| | | * Fix enum.property documentation link
* bpo-46355: Amend What's New in Python 3.11 C API wording (GH-31288)Erlend Egeberg Aasland2022-02-121-2/+2
|
* bpo-46483: [doc] pathlib classes no longer support parameterized generics ↵Alex Waygood2022-02-111-4/+0
| | | | | | (GH-31281) Remove pathlib classes from the list in stdtypes.rst of classes that can be parameterized at runtime.
* bpo-46615: Don't crash when set operations mutate the sets (GH-31120)Dennis Sweeney2022-02-113-8/+226
| | | Ensure strong references are acquired whenever using `set_next()`. Added randomized test cases for `__eq__` methods that sometimes mutate sets when called.
* bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)Petr Viktorin2022-02-1121-36/+56
| | | | | * Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45490: Rename static inline functions (GH-31217)Victor Stinner2022-02-113-32/+32
| | | | | | | | | | | | When a static inline function is wrapped by a macro which casts its arguments to the expected type, there is no need that the function has a different name than the macro. Use the same name for the macro and the function to avoid confusion. Rename _PyUnicode_get_wstr_length() to PyUnicode_WSTR_LENGTH(). Don't rename static inline _Py_NewRef() and _Py_XNewRef() functions, since the C API exports Py_NewRef() and Py_XNewRef() functions as regular functions. The name cannot be reused in this case.
* Fix the signature of multiprocessing.set_executable (GH-31276)Géry Ogam2022-02-111-2/+2
| | | Automerge-Triggered-By: GH:merwok
* bpo-46323: Fix double-free issue for borrowed refs (GH-31272)Dong-hee Na2022-02-111-1/+0
|
* bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452)Arie Bovenberg2022-02-113-0/+9
| | | | | | | Confirmed with @jaraco that this indeed needs a fix. A question that came up while I was digging into the code: I think `SelectableGroups` could similarly use `__slots__ = ()`, since its purpose seems only for convenience around `dict`, not to have attributes of its own. Automerge-Triggered-By: GH:jaraco
* bpo-36876: Make sure the c-analyzer is checking all the source files.' ↵Eric Snow2022-02-105-22/+159
| | | | | (gh-31264) https://bugs.python.org/issue36876
* bpo-44953: Add newline at end of NEWS entry (GH-31265)Dennis Sweeney2022-02-101-1/+1
|
* bpo-44953: Add vectorcall for itemgetter and attrgetter instances (GH-27828)Dennis Sweeney2022-02-102-12/+79
|
* bpo-45923: Add `RESUME_QUICK` (GH-31244)Brandt Bucher2022-02-106-22/+30
|
* Gather stats for PRECALL_METHOD. (GH-31259)Mark Shannon2022-02-102-2/+14
|
* Don't print rejected tokens when using the debug flags in the parser (GH-31258)Pablo Galindo Salgado2022-02-101-1/+0
|
* Allow the parser to avoid nested processing of invalid rules (GH-31252)Pablo Galindo Salgado2022-02-106-1053/+1054
|
* bpo-46532: Reduce number of memory writes to update call_shape.kwnames. ↵Mark Shannon2022-02-101-7/+15
| | | | (GH-31231)