summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38605: bump the magic number for 'annotations' future (#22630)Batuhan Taskaya2020-10-102-112/+113
|
* bpo-41991: Remove _PyObject_HasAttrId (GH-22629)Serhiy Storchaka2020-10-105-22/+28
| | | It can silence arbitrary exceptions.
* bpo-42000: Cleanup the AST related C-code (GH-22641)Batuhan Taskaya2020-10-103-53/+5
| | | | | | | | - Use the proper asdl sequence when creating empty arguments - Remove reduntant casts (thanks to new typed asdl_sequences) - Remove MarshalPrototypeVisitor and some utilities from asdl generator - Fix the header of `Python/ast.c` (kept from pgen times) Automerge-Triggered-By: @pablogsal
* bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to ↵Serhiy Storchaka2020-10-103-8/+9
| | | | limited API (GH-22621)
* Fix incorrect parameter name (GH-22613)Xie Yanbo2020-10-101-1/+1
| | | Automerge-Triggered-By: @Mariatta
* bpo-41756: Add PyIter_Send function (#22443)Vladimir Matveev2020-10-1012-42/+78
|
* bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for ↵Serhiy Storchaka2020-10-0910-94/+61
| | | | "fildes". (GH-22620)
* bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH-22619)Saiyang Gou2020-10-091-2/+2
| | | | | There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names. Automerge-Triggered-By: @gvanrossum
* bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)Serhiy Storchaka2020-10-092-3/+5
|
* bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)Serhiy Storchaka2020-10-091-0/+48
|
* bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593)Serhiy Storchaka2020-10-098-66/+81
| | | | | | Remove complex special methods __int__, __float__, __floordiv__, __mod__, __divmod__, __rfloordiv__, __rmod__ and __rdivmod__ which always raised a TypeError.
* bpo-41979: Accept star-unpacking on with-item targets (GH-22611)Batuhan Taskaya2020-10-094-8/+18
| | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Updated README for python 3.10 (GH-22605)Nishit2020-10-091-1/+1
| | | Updated python version and link to the release schedule
* Fix the attribute names in the docstring of GenericAlias (GH-22594)Mikhail Golubev2020-10-081-1/+1
|
* bpo-39337: Add a test case for normalizing of codec names (GH-19069)Hai Shi2020-10-081-0/+25
|
* bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)Erlend Egeberg Aasland2020-10-084-3/+4
|
* bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using ↵Pablo Galindo2020-10-083-7/+38
| | | | gcc>9 (GH-22598)
* bpo-41306: Allow scale value to not be rounded (GH-21715)E-Paine2020-10-082-1/+3
| | | | | | | This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed). Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.c#L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`). Automerge-Triggered-By: @pablogsal
* bpo-41970: Avoid test failure in test_lib2to3 if the module is already ↵Pablo Galindo2020-10-082-1/+4
| | | | | | | imported (GH-22595) … Automerge-Triggered-By: @pablogsal
* bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602)Phil Elson2020-10-081-1/+3
| | | | | | | | | | | | | | | | | | | `site.getusersitepackages()` returns the location of the user-specific site-packages directory even when the user-specific site-packages is disabled. ``` $ python -s -m site sys.path = [ '/home/user/conda/lib/python37.zip', '/home/user/conda/lib/python3.7', '/home/user/conda/lib/python3.7/lib-dynload', '/home/user/conda/lib/python3.7/site-packages', ] USER_BASE: '/home/user/.local' (exists) USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist) ENABLE_USER_SITE: False ``` It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
* Revert "bpo-26680: Incorporate is_integer in all built-in and standard ↵Raymond Hettinger2020-10-0716-223/+24
| | | | | library numeric types (GH-6121)" (GH-22584) This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162.
* bpo-41923: PEP 613: Add TypeAlias to typing module (#22532)Mikhail Golubev2020-10-076-2/+94
| | | | | This special marker annotation is intended to help in distinguishing proper PEP 484-compliant type aliases from regular top-level variable assignments.
* Fix comment about PyObject_IsTrue. (GH-22343)Stefan Pochmann2020-10-071-1/+1
| | | The `for` statement doesn't use a condition and this function, the `while` statement does.
* bpo-38605: Make 'from __future__ import annotations' the default (GH-20434)Batuhan Taskaya2020-10-0627-300/+404
| | | | | The hard part was making all the tests pass; there are some subtle issues here, because apparently the future import wasn't tested very thoroughly in previous Python versions. For example, `inspect.signature()` returned type objects normally (except for forward references), but strings with the future import. We changed it to try and return type objects by calling `typing.get_type_hints()`, but fall back on returning strings if that function fails (which it may do if there are future references in the annotations that require passing in a specific namespace to resolve).
* bpo-41905: Add abc.update_abstractmethods() (GH-22485)Ben Avrahami2020-10-067-5/+256
| | | | This function recomputes `cls.__abstractmethods__`. Also update `@dataclass` to use it.
* bpo-41944: No longer call eval() on content received via HTTP in the ↵Florian Bruhin2020-10-061-1/+2
| | | | | | | | | | | UnicodeNames tests (GH-22575) Similarly to GH-22566, those tests called eval() on content received via HTTP in test_named_sequences_full. This likely isn't exploitable because unicodedata.lookup(seqname) is called before self.checkletter(seqname, None) - thus any string which isn't a valid unicode character name wouldn't ever reach the checkletter method. Still, it's probably better to be safe than sorry.
* bpo-41944: No longer call eval() on content received via HTTP in the CJK ↵Serhiy Storchaka2020-10-062-14/+9
| | | | codec tests (GH-22566)
* Post 3.10.0a1Pablo Galindo2020-10-051-1/+1
|
* Python 3.10.0a1v3.10.0a1Pablo Galindo2020-10-05353-1177/+4132
|
* bpo-41584: clarify when the reflected method of a binary arithemtic operator ↵Brett Cannon2020-10-051-7/+8
| | | | is called (#22505)
* bpo-41939: Fix test_site.test_license_exists_at_url() (#22559)Victor Stinner2020-10-052-0/+5
| | | | Call urllib.request.urlcleanup() to reset the global urllib.request._opener.
* bpo-41774: Tweak new programming FAQ entry (GH-22562)Terry Jan Reedy2020-10-051-1/+1
| | | Remove mention of space in "remove multiple items from list".
* bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)Serhiy Storchaka2020-10-056-14/+8
|
* bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)Erlend Egeberg Aasland2020-10-052-3/+4
| | | https://sqlite.org/releaselog/3_33_0.html
* bpo-41428: Documentation for PEP 604 (gh-22517)Fidget-Spinner2020-10-056-0/+156
|
* bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids ↵scoder2020-10-041-0/+6
| | | | modifying an XML tree while iterating over it. (GH-22464)
* bpo-41909: Enable previously disabled recursion checks. (GH-22536)Serhiy Storchaka2020-10-044-4/+12
| | | | | | | | | | | Enable recursion checks which were disabled when get __bases__ of non-type objects in issubclass() and isinstance() and when intern strings. It fixes a stack overflow when getting __bases__ leads to infinite recursion. Originally recursion checks was disabled for PyDict_GetItem() which silences all errors including the one raised in case of detected recursion and can return incorrect result. But now the code uses PyDict_GetItemWithError() and PyDict_SetDefault() instead.
* Typo fix (GH-22496)Manan Kumar Garg2020-10-041-5/+5
| | | | | Multiple typo fixes in code comments Automerge-Triggered-By: @Mariatta
* bpo-41490: Bump vendored pip to version 20.2.3 (#22527)Pablo Galindo2020-10-042-17/+14
|
* Delete extra 'the' from `Formatter` class docstring (GH-22530)Hansraj Das2020-10-041-1/+1
|
* bpo-41898: add caveat on root logger seeing all messages in assertLogs doc ↵Irit Katriel2020-10-041-1/+2
| | | | (GH-22526)
* bpo-41887: omit leading spaces/tabs on ast.literal_eval (#22469)Batuhan Taskaya2020-10-045-2/+16
| | | Also document that eval() does this (the same way).
* [doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)Andre Delfino2020-10-032-8/+8
| | | | | This changes a few occurrences left behind by #22340. Automerge-Triggered-By: @gvanrossum
* bpo-41840: Report module-level globals as both local and global in the ↵Pablo Galindo2020-10-033-9/+31
| | | | symtable module (GH-22391)
* bpo-41922: Use PEP 590 vectorcall to speed up reversed() (GH-22523)Dong-hee Na2020-10-032-0/+21
|
* [doc] Fix link to abc.collections.Iterable (GH-22520)Andre Delfino2020-10-031-2/+2
| | | | | Missed this occurrence before, sorry. Also changed "the PEP" to "PEP". Automerge-Triggered-By: @gvanrossum
* bpo-40564: Avoid copying state from extant ZipFile. (GH-22371)Jason R. Coombs2020-10-033-6/+51
| | | bpo-40564: Avoid copying state from extant ZipFile.
* bpo-41826: Fix compiler warnings in test_peg_generator (GH-22455)Pablo Galindo2020-10-031-16/+17
| | | Co-authored-by: Skip Montanaro
* bpo-41867: List options for timespec in docstrings of isoformat methods ↵Ram Rachum2020-10-032-6/+12
| | | | (GH-22418)
* bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)Ram Rachum2020-10-032-5/+22
|