Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41546: make pprint (like print) not write to stdout when it is None ↵ | Irit Katriel | 2021-07-19 | 4 | -28/+26 |
| | | | | (GH-26810) | ||||
* | bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992) | Jason R. Coombs | 2021-07-19 | 4 | -66/+111 |
| | | | | | | | | - Refactor module/script handling to share an interface (check method). - Import functools and adjust tests for the new line number for find_function. - Use cached_property for details. - Add blurb. Automerge-Triggered-By: GH:jaraco | ||||
* | bpo-43086: Add handling for out-of-spec data in a2b_base64 (GH-24402) | Idan Moral | 2021-07-19 | 5 | -15/+132 |
| | | | | | | | binascii.a2b_base64 gains a strict_mode= parameter. When enabled it will raise an error on input that deviates from the base64 spec in any way. The default remains False for backward compatibility. Code reviews and minor tweaks by: Gregory P. Smith <greg@krypto.org> [Google] | ||||
* | bpo-44561: Update hyperlinks in Doc/distributing/index.rst (#27032) | Steven Hsu | 2021-07-19 | 2 | -3/+6 |
| | | | | | | | | * Update hyperlinks in Doc/distributing/index.rst Update three expired hyperlinks. Closes bpo-44561. | ||||
* | bpo-42355: symtable.get_namespace() now checks whether there are multiple or ↵ | Batuhan Taskaya | 2021-07-18 | 3 | -5/+13 |
| | | | | any namespaces found (GH-23278) | ||||
* | bpo-44654: Do not export the union type related symbols (GH-27223) | Serhiy Storchaka | 2021-07-18 | 1 | -4/+4 |
| | |||||
* | bpo-44633: Fix parameter substitution of the union type with wrong types. ↵ | Serhiy Storchaka | 2021-07-18 | 3 | -16/+36 |
| | | | | | | (GH-27218) A TypeError is now raised instead of returning NotImplemented. | ||||
* | bpo-44654: Refactor and clean up the union type implementation (GH-27196) | Serhiy Storchaka | 2021-07-17 | 9 | -125/+88 |
| | |||||
* | bpo-20291: Fix MSVC warnings in getargs.c (GH-27211) | Ken Jin | 2021-07-17 | 1 | -1/+2 |
| | | | | | | | | | * Fix MSVC warnings in getargs.c * apply suggestions Co-Authored-By: Batuhan Taskaya <batuhan@python.org> Co-authored-by: Batuhan Taskaya <batuhan@python.org> | ||||
* | bpo-42095: plistlib: Add tests that compare with plutil(1) (#27173) | Hasan | 2021-07-17 | 2 | -0/+76 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-43425: Remove test2to3 from Tools (#26981) | Dong-hee Na | 2021-07-17 | 9 | -74/+3 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | Replace @ilevkivskyi with @Fidget-Spinner as typing code owner (#27210) | Łukasz Langa | 2021-07-17 | 1 | -1/+1 |
| | |||||
* | bpo-41249: Fix postponed annotations for TypedDict (GH-27017) | Germán Méndez Bravo | 2021-07-17 | 4 | -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> | ||||
* | bpo-44490: Improve typing module compatibility with types.Union (GH-27048) | Yurii Karabas | 2021-07-17 | 5 | -7/+40 |
| | |||||
* | bpo-44655: Include the name of the type in unset __slots__ attribute errors ↵ | Pablo Galindo Salgado | 2021-07-16 | 3 | -4/+17 |
| | | | | (GH-27199) | ||||
* | bpo-44655: Don't include suggestions for attributes that are the same as the ↵ | Pablo Galindo Salgado | 2021-07-16 | 3 | -0/+17 |
| | | | | missing one (GH-27197) | ||||
* | Revert "bpo-44645: Check for interrupts on any potentially backwards edge. ↵ | Pablo Galindo Salgado | 2021-07-16 | 2 | -31/+1 |
| | | | | | (GH-27167)" (#27194) This reverts commit 000e70ad5246732fcbd27cf59268185cbd5ad734. | ||||
* | Remove legacy opcache structs (GH-27164) | Ken Jin | 2021-07-16 | 3 | -26/+1 |
| | |||||
* | bpo-20201: variadic arguments support for AC (GH-18609) | Batuhan Taskaya | 2021-07-16 | 8 | -100/+664 |
| | | | Implement support for `*args` in AC, and port `print()` to use it. | ||||
* | bpo-44647: Add a permanent Unicode-valued env var to regrtest (#27187) | Łukasz Langa | 2021-07-16 | 3 | -1/+23 |
| | |||||
* | bpo-44638: Add a reference to the zipp project and hint as to how to use it. ↵ | Jason R. Coombs | 2021-07-16 | 2 | -0/+5 |
| | | | | | (GH-27188) Automerge-Triggered-By: GH:jaraco | ||||
* | bpo-44652: Preserve natural order of args in the union type. (GH-27185) | Serhiy Storchaka | 2021-07-16 | 3 | -11/+39 |
| | |||||
* | bpo-40897:Give priority to using the current class constructor in ↵ | Weipeng Hong | 2021-07-16 | 3 | -8/+59 |
| | | | | | `inspect.signature` (#27177) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-44569: Decouple frame formatting in traceback.py (GH-27038) | Ammar Askar | 2021-07-16 | 4 | -34/+70 |
| | |||||
* | Remove unnecessary 'invalid_primary' rule in the parser (GH-27186) | Pablo Galindo Salgado | 2021-07-16 | 4 | -309/+239 |
| | |||||
* | bpo-44645: Check for interrupts on any potentially backwards edge. (GH-27167) | Mark Shannon | 2021-07-16 | 2 | -1/+31 |
| | |||||
* | bpo-44636: Collapse union of equal types (GH-27178) | Serhiy Storchaka | 2021-07-16 | 3 | -9/+23 |
| | | | | | | The result of `int | int` is now `int`. Fix comparison of the union type with non-hashable objects. `int | str == {}` no longer raises a TypeError. | ||||
* | bpo-44646: Fix the hash of the union type. (#27179) | Serhiy Storchaka | 2021-07-16 | 3 | -4/+12 |
| | | | | | | It no longer depends on the order of arguments. hash(int | str) == hash(str | int) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com> | ||||
* | bpo-43950: make BinOp specializations more reliable (GH-27126) | Batuhan Taskaya | 2021-07-15 | 3 | -2/+40 |
| | |||||
* | bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc ↵ | T. Wouters | 2021-07-15 | 1 | -3/+11 |
| | | | | | | | | (GH-27165) The non-GC-type branch of subtype_dealloc is using the type of an object after freeing in the same unsafe way as GH-26274 fixes. (I believe the old news entry covers this change well enough.) https://bugs.python.org/issue44184 | ||||
* | bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ ↵ | Łukasz Langa | 2021-07-15 | 1 | -4/+13 |
| | | | | | on Windows (GH-27161) GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test. | ||||
* | bpo-44626: Merge basic blocks earlier to enable better handling of exit ↵ | Mark Shannon | 2021-07-15 | 5 | -4337/+4411 |
| | | | | blocks without line numbers (GH-27138) | ||||
* | bpo-44641: Use vectorcall in sqlite3 collation callback (GH-27158) | Erlend Egeberg Aasland | 2021-07-15 | 1 | -3/+3 |
| | |||||
* | Remove sys._deactivate_opcache() now that is not needed (GH-27154) | Pablo Galindo Salgado | 2021-07-15 | 4 | -50/+1 |
| | |||||
* | bpo-44622: Set line number of END_ASYNC_FOR to match that of iterator. ↵ | Mark Shannon | 2021-07-15 | 2 | -2/+14 |
| | | | | (GH-27160) | ||||
* | bpo-42073: allow classmethod to wrap other classmethod-like descriptors (#27115) | Łukasz Langa | 2021-07-15 | 3 | -1/+89 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Erik Welch. bpo-19072 (#8405) allows `classmethod` to wrap other descriptors, but this does not work when the wrapped descriptor mimics classmethod. The current PR fixes this. In Python 3.8 and before, one could create a callable descriptor such that this works as expected (see Lib/test/test_decorators.py for examples): ```python class A: @myclassmethod def f1(cls): return cls @classmethod @myclassmethod def f2(cls): return cls ``` In Python 3.8 and before, `A.f2()` return `A`. Currently in Python 3.9, it returns `type(A)`. This PR make `A.f2()` return `A` again. As of #8405, classmethod calls `obj.__get__(type)` if `obj` has `__get__`. This allows one to chain `@classmethod` and `@property` together. When using classmethod-like descriptors, it's the second argument to `__get__`--the owner or the type--that is important, but this argument is currently missing. Since it is None, the "owner" argument is assumed to be the type of the first argument, which, in this case, is wrong (we want `A`, not `type(A)`). This PR updates classmethod to call `obj.__get__(type, type)` if `obj` has `__get__`. Co-authored-by: Erik Welch <erik.n.welch@gmail.com> | ||||
* | bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter (GH-27043) | Irit Katriel | 2021-07-15 | 7 | -23/+203 |
| | |||||
* | Remove unnecessary pass statement in msvccompiler.py (GH-27123) | Leonardo Freua | 2021-07-15 | 1 | -1/+0 |
| | |||||
* | bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084) | andrei kulakov | 2021-07-15 | 3 | -1/+8 |
| | |||||
* | Remove unnecessary test for `xc == 1` in _pydecimal (GH-27102) | Elisha Hollander | 2021-07-15 | 1 | -2/+2 |
| | | | | - if `xc == 1` then the function returns on line 2140; - other assignments to `xc` are inside the `y.sign == 1` condition block which always returns early | ||||
* | Fix osx_framework_user include to match distutils (#27093) | Tzu-ping Chung | 2021-07-15 | 2 | -1/+3 |
| | |||||
* | bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal ↵ | Jack DeVries | 2021-07-15 | 4 | -19/+82 |
| | | | | keys (GH-27131) | ||||
* | bpo-44473: Update docstring and documentation for QueueHandler.prepar… ↵ | Vinay Sajip | 2021-07-15 | 2 | -6/+13 |
| | | | | | (GH-27140) …e(). | ||||
* | bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079) | Shane Harvey | 2021-07-14 | 4 | -0/+14 |
| | |||||
* | Add release highlights for the 3.10 what's new document (GH-27150) | Pablo Galindo Salgado | 2021-07-14 | 1 | -1/+29 |
| | |||||
* | Fix docstring typo in ↵ | Erlend Egeberg Aasland | 2021-07-14 | 4 | -8/+8 |
| | | | | | | | | sqlite3.Connection.executescript/sqlite3.Cursor.executescript (GH-27147) Both `executescript` methods contain the same docstring typo: _"Executes a multiple SQL statements at once."_ => _"Executes multiple SQL statements at once."_ Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) | Jack DeVries | 2021-07-14 | 1 | -1/+1 |
| | | | | | | | To my understanding, this is supposed to say "transaction". See the relevant source: https://github.com/python/cpython/blob/a158b20019b50e3ece6e4743ec4e6ae8d818b690/Modules/_sqlite/connection.c#L1434-L1467 | ||||
* | bpo-44632: Fix support of TypeVar in the union type (GH-27139) | Serhiy Storchaka | 2021-07-14 | 2 | -2/+8 |
| | | | | int | TypeVar('T') returns now an instance of types.Union instead of typing.Union. | ||||
* | bpo-44635: Convert None to NoneType in the union type constructor (GH-27136) | Serhiy Storchaka | 2021-07-14 | 3 | -9/+21 |
| | |||||
* | bpo-42064: Move `sqlite3` exceptions to global state, part 2 of 2 (GH-26884) | Erlend Egeberg Aasland | 2021-07-14 | 8 | -92/+90 |
| | | | Automerge-Triggered-By: GH:encukou |