Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | bpo-44616: Mark all clean up instructions at end of named exception block as ↵ | Mark Shannon | 2021-07-14 | 3 | -5/+27 |
| | | | | artificial (GH-27109) | ||||
* | bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107) | Serhiy Storchaka | 2021-07-14 | 3 | -2/+12 |
| | | | | if it is called with a sequence or set, but not list or tuple. | ||||
* | bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. ↵ | Serhiy Storchaka | 2021-07-14 | 3 | -6/+55 |
| | | | | | | | | | | (GH-27120) * Fix issubclass() for None. E.g. issubclass(type(None), int | None) returns now True. * Fix issubclass() for virtual subclasses. E.g. issubclass(dict, int | collections.abc.Mapping) returns now True. * Fix crash in isinstance() if the check for one of items raises exception. | ||||
* | bpo-44630: Fix assertion errors in csv module (GH-27127) | T. Wouters | 2021-07-13 | 2 | -4/+14 |
| | | | | | | | | | | | | | Fix incorrect handling of exceptions when interpreting dialect objects in the csv module. Not clearing exceptions between calls to PyObject_GetAttrString() causes assertion failures in pydebug mode (or with assertions enabled). Add a minimal test that would've caught this (passing None as dialect, or any object that isn't a csv.Dialect subclass, which the csv module allows and caters to, even though it is not documented.) In pydebug mode, the test triggers the assertion failure in the old code. Contributed-By: T. Wouters [Google] | ||||
* | bpo-33346: Allow async comprehensions inside implicit async comprehensions ↵ | Serhiy Storchaka | 2021-07-13 | 6 | -17/+109 |
| | | | | | (GH-6766) Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent ↵ | Konstantin-Glukhov | 2021-07-13 | 2 | -0/+2 |
| | | | | erroneous STDIN consumption (GH-27092) | ||||
* | Fix typos in Mac/README.rst (#27108) | Clemens Brunner | 2021-07-13 | 1 | -3/+3 |
| | |||||
* | bpo-43126: Expand docs on io.IOBase.readlines() method (#27061) | andrei kulakov | 2021-07-13 | 1 | -0/+3 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-44514: Add doctest testcleanup for configparser and bz2 (#26909) | Kevin Follstad | 2021-07-13 | 2 | -0/+10 |
| | | | | | Add testcleanup section to configparser and bz2 documentation which removes temporary files created in the filesystem when 'make doctest' is run. |