summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631)Miss Islington (bot)2021-08-091-0/+1
| | | | | (cherry picked from commit b33186bc43bb5aaf652dd9d093a08fdde796d499) Co-authored-by: Johannes Reiff <mail@jreiff.de>
* bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)Miss Islington (bot)2021-08-091-0/+1
| | | | | | | | | | This was causing test___all__ to fail on platforms lacking a shared memory implementation. Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit d0978761118856e8ca8ea7b162a6585b8da83df9) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile ↵Miss Islington (bot)2021-08-091-0/+2
| | | | | | | | (GH-21470) Co-Authored-By: Bo Bayles <bbayles@gmail.com> (cherry picked from commit eb2d4a66ff07aa6e51cfaaa31afed31addf76936) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Upgrade bundled pip and setuptools (GH-27625)Miss Islington (bot)2021-08-071-0/+1
| | | | | | | pip is now 21.2.3 setuptools is now 57.4.0 (cherry picked from commit 738ac00a08cb6a9d104ec85ccb1a44c2399d6baa) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* bpo-44856: Possible reference leak in error paths of update_bases() and ↵Miss Islington (bot)2021-08-071-0/+1
| | | | | | | __build_class__ (GH-27647) (cherry picked from commit a40675c659cd8c0699f85ee9ac31660f93f8c2f5) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-41576: document BaseException in favor of bare except (GH-21917)Miss Islington (bot)2021-08-061-0/+1
| | | | | (cherry picked from commit e9a6f1b78bf57d9f3f99547bd007d7cfc9724cfb) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-27752: improve documentation of csv.Dialect (GH-26795)Miss Islington (bot)2021-08-061-0/+1
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 0ffdced3b64ba5886fcde64266a31a15712da284) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) ↵Miss Islington (bot)2021-08-061-0/+1
| | | | (GH-27640)
* bpo-44756: [docs] revert automated virtual environment creation on `make ↵Miss Islington (bot)2021-08-061-0/+3
| | | | | | | | html` (GH-27635) It turned out to be disruptive for downstream distributors. (cherry picked from commit 55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44822: Don't truncate `str`s with embedded NULL chars returned by ↵Miss Islington (bot)2021-08-061-0/+3
| | | | | | | `sqlite3` UDF callbacks (GH-27588) (cherry picked from commit 8f010dc920e1f6dc6a357e7cc1460a7a567c05c6) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-40928: notify users running test_decimal on macOS of malloc warnings ↵Miss Islington (bot)2021-08-061-0/+2
| | | | | | | | | | | (GH-26783) * When trying to allocate very large regions on macOS, malloc does not fail silently. It sends a noisy error out to STDERR * This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 15d3c14df32a35ac69898a7852115722e30d7857) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44524: Fix an issue wherein `_GenericAlias._name` was not properly set ↵Miss Islington (bot)2021-08-061-0/+2
| | | | | | | | | for specialforms (GH-27614) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 8bdf12e99a3dc7ada5f85bba79c2a9eb9931f5b0) Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)Miss Islington (bot)2021-08-061-0/+4
| | | | | | | | Fix the os.set_inheritable() function on FreeBSD 14 for file descriptor opened with the O_PATH flag: ignore the EBADF error on ioctl(), fallback on the fcntl() implementation. (cherry picked from commit c24896c0e3b32c8a9f614ef51366007b67d5c665) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065)Miss Islington (bot)2021-08-062-0/+4
| | | | | | | | The threading debug (PYTHONTHREADDEBUG environment variable) is deprecated in Python 3.10 and will be removed in Python 3.12. This feature requires a debug build of Python. (cherry picked from commit 4d77691172aae81bdcbb0ea75839d0e896c43781) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-44838: Refine the custom syntax errors for invalid 'if' ↵Pablo Galindo Salgado2021-08-051-0/+2
| | | | | | | | | | | expressions (GH-27615). (GH-27616) … (cherry picked from commit f5cbea6b1b5fc39cca377c6cc93f222916015fc4) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Automerge-Triggered-By: GH:lysnikolaou
* bpo-44801: Check arguments in substitution of ParamSpec in Callable (GH-27585)Miss Islington (bot)2021-08-041-0/+3
| | | | | (cherry picked from commit 3875a6954741065b136650db67ac533bc70a3eac) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166)Miss Islington (bot)2021-08-041-0/+2
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com> (cherry picked from commit a8dc4893d2b28827e82447326ea47759c161a722) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [doc] bpo-43066: zipfile - add note on leading slash in the filename arg ↵Miss Islington (bot)2021-08-041-0/+2
| | | | | | | | (GH-26899) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 7c5dab4340032eb15d3797d8b601ef11649bbab3) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-39091: Fix segfault when Exception constructor returns non-exception for ↵Miss Islington (bot)2021-08-032-0/+2
| | | | | | | | gen.throw. (GH-17658) (GH-27572) Co-authored-by: Benjamin Peterson <benjamin@python.org> (cherry picked from commit 83ca46b7784b7357d82ec47b33295e09ed7380cb) Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
* Python 3.10.0rc1v3.10.0rc1Pablo Galindo2021-08-0265-128/+645
|
* bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)Miss Islington (bot)2021-08-022-0/+2
| | | | | (cherry picked from commit 28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332) Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
* bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27563)Miss Islington (bot)2021-08-021-0/+1
| | | | | (cherry picked from commit aa0894b3792901adb91e5f6d049154b7bcb980ec) Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
* bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)Miss Islington (bot)2021-08-021-0/+2
| | | | | | | Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. (cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44667: Treat correctly lines ending with comments and no newlines in the ↵Miss Islington (bot)2021-08-021-0/+4
| | | | | | | Python tokenizer (GH-27499) (GH-27500) (cherry picked from commit b6bde9fc42aecad5be0457198d17cfe7b481ad79) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44793: Fix checking the number of arguments when subscribe a generic ↵Miss Islington (bot)2021-08-021-0/+2
| | | | | | | | | | | type with ParamSpec parameter. (GH-27515) For example Callable[P, T][[int], str, float] will now raise an error. Use also term "arguments" instead of "parameters" in error message for too few/many arguments. (cherry picked from commit f92b9133ef67e77605cbd315b6b6c81036ce110e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) (#27510)Miss Islington (bot)2021-08-011-0/+2
| | | | | | | | | | Addressing issues with tests under error on warnings. Automerge-Triggered-By: GH:jaraco (cherry picked from commit 1cf8424a62db38a041d421a46618e025bbb87f89) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-44648: Fix error type in inspect.getsource() in interactive session ↵Miss Islington (bot)2021-07-301-0/+3
| | | | | | | (GH-27171) (GH-27495) (cherry picked from commit 48a62559dfaf775e4f1cc56b19379c799e8e2587) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) ↵Miss Islington (bot)2021-07-301-0/+2
| | | | | | | (GH-27494) (cherry picked from commit ceea579ccc51791f3e115155d6f27905bc7544a9) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-42892: fix email multipart attribute error (GH-26903) (GH-27492)Miss Islington (bot)2021-07-301-0/+1
| | | | | (cherry picked from commit e3f877c32d7cccb734f45310f26beeec793364ce) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44666: Use default encoding as fallback for compile_file (GH-27236) ↵Miss Islington (bot)2021-07-302-0/+3
| | | | | | | | | | (GH-27488) When sys.stdout.encoding is None compile_file will fall back to sys.getdefaultencoding to encode/decode error messages. Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de> Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr> (cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)
* bpo-44662: Add ability to annotate types.Union (GH-27214) (GH-27461)Miss Islington (bot)2021-07-301-0/+3
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 8182c8329c709f42218a8a17d81639ece5b7b627) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (GH-27444)Miss Islington (bot)2021-07-291-0/+2
| | | | | | | | | | | * rlcompleter was calling these methods to identify whether to add parenthesis to the completion, based on if the attribute is callable. * for property objects, completion with parenthesis are never desirable. * property methods with print statements behaved very strangely, which was especially unfriendly to language newcomers. <tab> could suddenly produce output unexpectedly. (cherry picked from commit 50de8f74f8e92b20e76438c22b6a8f91afd6df75) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-41103: Resurrect the old buffer protocol. (GH-27437) (GH-27441)Miss Islington (bot)2021-07-292-0/+13
| | | | | | | | Revert "bpo-41103: Remove old buffer protocol support (GH-21117)" This reverts commit 6f8a6ee59cb7f99f68df8ee9c3e8c8cf19af3eed. (cherry picked from commit ce5e1a6809b714eb0383219190a076d9f883e008) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl ↵Miss Islington (bot)2021-07-281-0/+3
| | | | | | | (GH-19501) (cherry picked from commit 92b5dc780db968f6277f42cb06926dddb7475dc6) Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
* bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27424)Miss Islington (bot)2021-07-281-0/+4
| | | | | (cherry picked from commit c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-27827: identify a greater range of reserved filename on Windows. ↵Miss Islington (bot)2021-07-281-0/+2
| | | | | | | | | | (GH-26698) (GH-27421) `pathlib.PureWindowsPath.is_reserved()` now identifies as reserved filenames with trailing spaces or colons. Co-authored-by: Barney Gale <barney.gale@foundry.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> (cherry picked from commit 56c1f6d7edad454f382d3ecb8cdcff24ac898a50)
* bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27410)Miss Islington (bot)2021-07-281-0/+6
| | | | | | | - venv rule is now conditional, and only does anything if $VENVDIR does not exist - add rule "clean-venv" (cherry picked from commit d22c876d5ac5fa464337d2e82654b8d87a83cb1b) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* [3.10] bpo-44461: Check early that a pdb target is valid for execution. ↵Jason R. Coombs2021-07-281-0/+1
| | | | | (GH-27227) (GH-27399) Automerge-Triggered-By: GH:jaraco
* [3.10] bpo-34013: Generalize the invalid legacy statement error message ↵Pablo Galindo Salgado2021-07-271-0/+3
| | | | | | | (GH-27389). (GH-27391) (cherry picked from commit 6948964ecf94e858448dd28eea634317226d2913) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) ↵Miss Islington (bot)2021-07-271-1/+1
| | | | | | | | (#27386) Follow up to 11749e2dc20ad6a76e9a39e948853e89b2b4bbed (cherry picked from commit 2e41df4d60d71a2551b9605d07321f75cfb52adf) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-263-9/+11
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379)Miss Islington (bot)2021-07-261-0/+2
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit a2c45e5bcf9d3dfff9f2699dbc161489897616b5) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* The current documentation says it returns None if the name is not found, but ↵Miss Islington (bot)2021-07-261-0/+1
| | | | | | | | | | (GH-26785) (GH-27371) the implementation uses [] and will raise KeyError instead. Noticed by @srittau in python/typeshed@5659. (cherry picked from commit f22737abfa07605f4ed1a99cfa97a26520b6c5c2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) ↵Miss Islington (bot)2021-07-261-0/+1
| | | | | | | (#27366) (cherry picked from commit 1d582bbc969e05896addf97844ddf17ce9830e5e) Co-authored-by: T. Wouters <thomas@python.org>
* bpo-44732: Rename types.Union to types.UnionType (GH-27342)Miss Islington (bot)2021-07-261-0/+1
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0) Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
* bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27361)Miss Islington (bot)2021-07-261-0/+1
| | | | | (cherry picked from commit 3f135c073a53793ec68902f6b513934ddff47235) Co-authored-by: Logan Jones <loganasherjones@gmail.com>
* bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27357)Miss Islington (bot)2021-07-261-0/+2
| | | | | | | | | | | Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a4014d90df17a29042de008ef0b659f92505) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
* [3.10] bpo-44600: Fix line numbers for pattern matching cleanup code ↵Miss Islington (bot)2021-07-261-0/+1
| | | | | | | | | | (GH-27346) (GH-27356) (cherry picked from commit 4214f470f0cb9b6fef9a90758756fbc00ba95b5a) Co-authored-by: Charles Burkland <charles.aburkland@gmail.com> Automerge-Triggered-By: GH:brandtbucher
* [3.10] bpo-44676: Add ability to serialize types.Union (GH-27244) (GH-27333)Pablo Galindo Salgado2021-07-241-0/+2
| | | | | (cherry picked from commit fe13f0b0f696464dd6f283576668dbf57cb11399) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Miss Islington (bot)2021-07-241-0/+1
| | | | | | | (GH-27316) (GH-27324) (cherry picked from commit 5370f0a82aaa4ba617070d5c71d2b18236096ac0) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>