summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix mistake in barry_as_FLUFL test (GH-31392)Patrick Reader2022-02-181-1/+1
| | | Use assertEqual(), not assertTrue(lineno, 2)
* docs: Link `match` statement in tutorial (GH-31396)William Andrea2022-02-181-1/+1
| | | | | | | | | Add a link to the `match` statement from its section in the tutorial. This should be backported to 3.10. [Initially submitted as #31395 but against the wrong branch. Thanks @Mariatta] Automerge-Triggered-By: GH:Mariatta
* Fix typo in compileall.py's docstring (GH-29865)Alexander Münch2022-02-170-0/+0
|
* bpo-29418: Add inspect.ismethodwrapper to whatsnew (GH-31377)Hakan Çelik2022-02-171-0/+2
|
* bpo-46730: Fix refleak and tighten NULL checks (GH-31389)Christian Heimes2022-02-171-9/+18
| | | | | ``PyType_GetQualName`` returns a new reference. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-46778: Enable multiprocess compilation for source files when building on ↵Jeremy Kloth2022-02-171-0/+1
| | | | Windows (GH-31390)
* Update html.parser.rst (GH-30678)Géry Ogam2022-02-171-1/+1
| | | | | | This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html) module will - fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’); - mention the parameter names of the `HTMLParser.handle_*` methods where missing.
* bpo-41086: Add exception for uninstantiated interpolation (configparser) ↵Brian Faherty2022-02-173-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-21062) * Add exception for uninstantiated interpolation (configparser) The current feedback when users try to pass an uninstantiated interpolation into a ConfigParser is an error message that does not help users solve the problem. This current error of `TypeError: before_set() missing 1 required positional argument: 'value'` does not display until the parser is used, which usually results in the assumption that instantiation of the parser was done correctly. The new exception of InterpolationTypeError, will be raised on the line where the ConfigParser is instantiated. This will result in users see the line that has the error in their backtrace for faster debugging. There have been a number of bugs created in the issue tracker, which could have been addressed by: https://bugs.python.org/issue26831 and https://bugs.python.org/issue26469 * 📜🤖 Added by blurb_it. * Replace custom Error with TypeError Per feedback from @iritkatriel, the custom InterpolationTypeError has been dropped in favour of a TypeError with a custom message, and the unittests have been expanded. * More verbose message Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Close stale PRs without signed CLA (GH-30500)Erlend Egeberg Aasland2022-02-171-1/+14
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* bpo-46745: Fix typo in PositionsIterator (#31322)Robert-André Mauchin2022-02-171-1/+1
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46541: Remove usage of _Py_IDENTIFIER from array module (GH-31376)Dong-hee Na2022-02-172-45/+139
|
* bpo-46333: Honor `module` parameter in ForwardRef (GH-30536)aha792022-02-174-2/+20
| | | | | | | | | The `module` parameter carries semantic information about the forward ref. Forward refs are different if they refer to different module even if they have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods. Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-46066: Deprecate kwargs syntax for TypedDict definitions (GH-31126)97littleleaf112022-02-175-10/+35
| | | | | | Closes python/typing#981 https://bugs.python.org/issue46066
* Become a CODEOWNER for typing (#31374)Jelle Zijlstra2022-02-161-1/+1
|
* bpo-46072: Add detailed failure stats for BINARY_OP (GH-31289)Brandt Bucher2022-02-162-12/+104
|
* bpo-46702: Specialize UNPACK_SEQUENCE (GH-31240)Brandt Bucher2022-02-167-84/+149
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from mmap module (GH-31375)Dong-hee Na2022-02-161-4/+1
|
* bpo-46541: Replace _Py_IDENTIFIER with _Py_ID in sqlite3 (GH-31351)Erlend Egeberg Aasland2022-02-165-39/+61
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from csv module (GH-31372)Dong-hee Na2022-02-161-4/+10
|
* bpo-29418: Implement inspect.ismethodwrapper and fix inspect.isroutine for ↵Hakan Çelik2022-02-164-12/+63
| | | | | cases where methodwrapper is given (GH-19261) Automerge-Triggered-By: GH:isidentical
* Remove offsets from expected output in test.test_dis (GH-31369)Mark Shannon2022-02-162-308/+362
|
* bpo-46762: Fix an assert failure in f-strings where > or < is the last ↵Eric V. Smith2022-02-163-10/+14
| | | | character if the f-string is missing a trailing right brace. (#31365)
* bpo-46541: Remove usage of _Py_IDENTIFIER from dbms modules (GH-31358)Dong-hee Na2022-02-162-6/+2
|
* bpo-46730: Add more info to @property AttributeError messages (GH-31311)Alex-Blade2022-02-165-22/+40
| | | On `obj.read_only_property = x`, raise `AttributeError: property 'read_only_property' of 'A' object has no setter`.
* 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
|