summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [doc] Fix typo in asyncio Event Loop (GH-27377)Miss Islington (bot)2021-07-271-1/+1
| | | | | | | | First Pull Request to cpython, so forgive me for any mistakes Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 6fa4060b86a116dc4fb69356795faf6ff1cdde58) Co-authored-by: Vinicius Gubiani Ferreira <vini.g.fer@gmail.com>
* Add windows build.bat counterpart for 'make regen-all' in error message ↵Miss Islington (bot)2021-07-271-1/+1
| | | | | | | (GH-26770) (cherry picked from commit d61b69f02d441ae517109a4428f2a18416c9ff0f) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-2661-107/+109
| | | | | | | | (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-263-6/+13
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit a2c45e5bcf9d3dfff9f2699dbc161489897616b5) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27374)Miss Islington (bot)2021-07-261-6/+6
| | | | | | | | "Mac OS X" has been rebranded as macOS https://www.apple.com/macos (cherry picked from commit 5fdd2a14ce3f81a7db47bb79421c426dec4b25bd) Co-authored-by: partev <petrosyan@gmail.com>
* The current documentation says it returns None if the name is not found, but ↵Miss Islington (bot)2021-07-262-1/+2
| | | | | | | | | | (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-43443: Clarify difference between shelve objects and dicts (GH-27004) ↵Miss Islington (bot)2021-07-261-1/+2
| | | | | | | (GH-27369) (cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44490: Add 'Whats New' docs regarding types.Union changes (GH-27215) ↵Miss Islington (bot)2021-07-261-1/+2
| | | | | | | (GH-27368) (cherry picked from commit 6c1b57d958e2b0d5bcf0f2315b5044838e11638f) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) ↵Miss Islington (bot)2021-07-263-8/+37
| | | | | | | (#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-267-22/+22
| | | | | | | 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-262-11/+4
| | | | | (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-262-6/+9
| | | | | | | | | | | 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-263-4/+89
| | | | | | | | | | (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-44399: Update logging cookbook to document patterns to be ↵Miss Islington (bot)2021-07-251-0/+79
| | | | | avoided. (GH-27348) (GH-27352) (cherry picked from commit 9751f85914e0ef3324671a91da34a635d48b17fb)
* [3.10] bpo-43184: Add information about added attribute and method. ↵Miss Islington (bot)2021-07-251-0/+4
| | | | | (GH-27347) (GH-27355) (cherry picked from commit 50b72768ffe6413424dc4eba916dd1ff89a2fe7b)
* bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340)Miss Islington (bot)2021-07-244-80/+23
| | | | | | | Remove also the _from_args() constructor. (cherry picked from commit 435a0334d341e5f8faed594d9f015746bb7845db) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334)Ken Jin2021-07-243-94/+26
| | | | | Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44676: Add ability to serialize types.Union (GH-27244) (GH-27333)Pablo Galindo Salgado2021-07-244-2/+90
| | | | | (cherry picked from commit fe13f0b0f696464dd6f283576668dbf57cb11399) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44353: Improve tests covering typing.NewType pickling (GH-27302) (GH-27328)Miss Islington (bot)2021-07-241-8/+9
| | | | | (cherry picked from commit a22b05da87bdfb081d6aaecfce136ae8dbb8680c) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* [3.10] bpo-44353: Expand NewType tests for complex __qualname__ (GH-27311) ↵Łukasz Langa2021-07-242-15/+48
| | | | | | | | (GH-27326) Make NewType pickleable by name. (cherry picked from commit e89ef0ad2a299770a88ece8f7a316f7d3eb65c9f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (GH-27298)Miss Islington (bot)2021-07-241-1/+1
| | | | | | | This fixes a small typo. The code fragment should not be quoted. Thank you @merwok for the feedback. (cherry picked from commit 7d25254cf0763b62f4c4a3019e56385cab597b9f) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Miss Islington (bot)2021-07-243-0/+37
| | | | | | | (GH-27316) (GH-27324) (cherry picked from commit 5370f0a82aaa4ba617070d5c71d2b18236096ac0) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-44353: Document that typing.NewType is now a class (GH-27319) (GH-27321)Miss Islington (bot)2021-07-241-10/+19
| | | | | (cherry picked from commit 7aac3f623610cf3dffbf548a5be5bfd4fa6790a0) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and ↵Miss Islington (bot)2021-07-233-12/+15
| | | | | | | | | _ssl._SSLSocket.write (GH-27271) (GH-27308) (cherry picked from commit 83d1430ee5b8008631e7f2a75447e740eed065c1) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make ↵Miss Islington (bot)2021-07-237-56/+24
| | | | | | | | | | | | | | | Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260) (GH-27306) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now. (cherry picked from commit a4760cc32d9e5dac7be262e9736eb30502cd7be3) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27303)Miss Islington (bot)2021-07-233-0/+28
| | | | | (cherry picked from commit 17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-44653: Support typing types in parameter substitution in the union type. ↵Miss Islington (bot)2021-07-223-13/+43
| | | | | | | (GH-27247) (#27296) (cherry picked from commit 2e3744d50b6e30ea24351e55b4352dcc58fd469e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44708: Only re-run test methods that match names of previously failing ↵Miss Islington (bot)2021-07-227-178/+345
| | | | | | | | | | | | | | test methods (GH-27287) (GH-27290) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> (cherry picked from commit f1afef5e0d93d66fbf3c9aaeab8b3b8da9617583) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., ↵Miss Islington (bot)2021-07-221-1/+4
| | | | | | | | | shell=True) (GH-26755) (GH-27288) (cherry picked from commit 50ffbe3dafcae7826d114df61d56c7ac45a6358c) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* Fix typo in collections.rst (GH-27270) (#27285)Miss Islington (bot)2021-07-221-1/+1
|
* bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) ↵Miss Islington (bot)2021-07-223-0/+14
| | | | (GH-27282)
* bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) ↵Miss Islington (bot)2021-07-212-0/+6
| | | | | | | | (GH-27274) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 64f54b7ccd49764b0304e076bfd79b5482988f53) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44566: resolve differences between asynccontextmanager and ↵Miss Islington (bot)2021-07-204-56/+85
| | | | | | | contextmanager (GH-27024) (#27266) (cherry picked from commit 7f1c330da31c54e028dceaf3610877914c2a4497) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.10] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27268)Miss Islington (bot)2021-07-201-1/+2
| | | | | | | | (cherry picked from commit 6564656495d456a1bcc1aaa06abfc696209f37b2) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> Automerge-Triggered-By: GH:gpshead
* Update macOS build-installer script comments for 3.10 and remove unused ↵Miss Islington (bot)2021-07-202-59/+74
| | | | | | | pre-10.5 vestiges. (GH-27253) (cherry picked from commit 42205ee512159de62c01e202ff799d78fac9ac26) Co-authored-by: Ned Deily <nad@python.org>
* bpo-44353: Add test to cover __or__ of two NewType (GH-27259) (#27261)Miss Islington (bot)2021-07-201-4/+7
| | | | | (cherry picked from commit 4868b94c6089d457673b1ba5b5b64c2f38c435af) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44353: Refactor typing.NewType into callable class (GH-27250) (#27258)Miss Islington (bot)2021-07-203-5/+44
| | | | | (cherry picked from commit 965dd76e9060e27e2253ba8c8d21a142b178720d) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44524: Add missed __name__ and __qualname__ to typing module objects ↵Miss Islington (bot)2021-07-193-0/+72
| | | | | | | | (GH-27237) (#27246) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit bce1418541a64a793960182772f985f64afbfa1a) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) ↵Miss Islington (bot)2021-07-193-1/+9
| | | | | | | | | | | (GH-27242) getaddresses() should be able to handle a Header object if passed one. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Clean up comma usage in Doc/library/functions.rst (GH-27083) (#27243)Miss Islington (bot)2021-07-191-38/+38
| | | | | (cherry picked from commit 1e651c6adad8e4e772a15eaa9ee659b1283a96d9) Co-authored-by: α∂мιηιχтяαтσя <sadiqherritage@gmail.com>
* bpo-44490: Improve typing module compatibility with types.Union (GH-27048) ↵Ken Jin2021-07-195-7/+40
| | | | | | | (#27222) (cherry picked from commit bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44645: Check for interrupts on any potentially backwards edge (GH-27216) ↵Miss Islington (bot)2021-07-192-1/+31
| | | | | | | (GH-27235) (cherry picked from commit d09c13417890427f829e3df297beb0e27133f8f4) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.10] bpo-44561: Update hyperlinks in Doc/distributing/index.rst (GH-27032) ↵Miss Islington (bot)2021-07-192-3/+6
| | | | | | | | | | | | | | | (GH-27234) * Update hyperlinks in Doc/distributing/index.rst Update three expired hyperlinks. Closes [bpo-44561](). (cherry picked from commit b494685b2548489efcc66993cc6c13b027ce3b26) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Automerge-Triggered-By: GH:ncoghlan
* Correct the order of check-abidump (GH-27229)Pablo Galindo Salgado2021-07-182-4805/+9743
| | | The check was backwards so we were not correctly detecting removals.
* [3.10] bpo-44654: Do not export the union type related symbols (GH-27223). ↵Serhiy Storchaka2021-07-181-3/+3
| | | | | | (GH-27225) (cherry picked from commit 8f50f44592190b5a8cb115f0d58d577036e68308)
* bpo-44633: Fix parameter substitution of the union type with wrong types. ↵Miss Islington (bot)2021-07-183-16/+36
| | | | | | | | | (GH-27218) (GH-27224) A TypeError is now raised instead of returning NotImplemented. (cherry picked from commit 3ea5332a4365bdd771286b3e9692495116e9ceef) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44654: Refactor and clean up the union type implementation ↵Miss Islington (bot)2021-07-178-120/+85
| | | | | | (GH-27196) (GH-27219) (cherry picked from commit 0fd27375cabd12e68a2f12cfeca11a2d5043429e)
* [3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union ↵Serhiy Storchaka2021-07-175-19/+102
| | | | | | | | | | | (GH-26980) (GH-27207) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>. (cherry picked from commit c45fa1a5d9b419cf13ad4b5a7cb453956495b83e) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Replace @ilevkivskyi with @Fidget-Spinner as typing code owner (GH-27210) ↵Miss Islington (bot)2021-07-171-1/+1
| | | | | | | (#27212) (cherry picked from commit 311ee83adb40a9b549af8e0b546a787e8eb01f5d) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (#27204)Miss Islington (bot)2021-07-174-7/+43
| | | | | | | | | | This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules. This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 889036f7ef7290ef15b6c3373023f6a35387af0c) Co-authored-by: Germán Méndez Bravo <german.mb@gmail.com>