Jake Stockwin
aa0894b379
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286)
2021-08-02 19:01:53 +02:00
Ken Jin
d382bde220
Document PyMember_GetOne and PyMember_SetOne (GH-27555)
2021-08-02 18:26:57 +02:00
Serhiy Storchaka
043cd60abe
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
...
Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
2021-08-02 18:23:22 +02:00
Serhiy Storchaka
36d952d228
bpo-44785: Silence deprecation warnings in test_pickle ( #27538 )
2021-08-02 18:11:12 +02:00
dependabot[bot]
db3774d063
build(deps): bump actions/stale from 3 to 4 ( #27526 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 3 to 4.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v3...v4 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 18:04:18 +02:00
Mark Shannon
e06ae75e16
bpo-44206: Make sure that dict-keys's version is set to zero when value is popped (GH-27542)
2021-08-02 14:54:23 +01:00
Pablo Galindo Salgado
626d397cc1
bpo-44808: Fix test_inspect in refleak mode (GH-27544)
2021-08-02 13:54:20 +02:00
partev
414dcb13aa
doc: "Mac OS X" -> "macOS" (GH-27535)
2021-08-02 11:40:40 +02:00
partev
1342248f3a
doc: "Mac OS " -> "macOS" (GH-27534)
2021-08-02 11:39:56 +02:00
Irit Katriel
a9134fa2ff
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485)
2021-08-02 11:34:55 +02:00
Serhiy Storchaka
f92b9133ef
bpo-44793: Fix checking the number of arguments when subscribe a generic 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.
2021-08-02 09:17:46 +03:00
Pablo Galindo Salgado
208a7e957b
bpo-34013: Don't consider a grouped expression when reporting legacy print syntax errors (GH-27521)
2021-08-01 02:10:50 +01:00
Anthony Sottile
b08c48e617
bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516)
2021-07-31 15:15:45 -04:00
Serhiy Storchaka
be4cb9089a
bpo-44794: Merge tests for typing.Callable and collection.abc.Callable (GH-27507)
2021-07-31 20:05:45 +03:00
Jack DeVries
0ad173249d
bpo-37880: for argparse add_argument with action='store_const', const now defaults to None. (GH-26707)
2021-07-31 17:27:55 +01:00
Jason R. Coombs
1cf8424a62
bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508)
...
Addressing issues with tests under error on warnings.
Automerge-Triggered-By: GH:jaraco
2021-07-31 06:08:13 -07:00
Pablo Galindo Salgado
302cf35505
Divide the grammar into sections to improve readability (GH-27502)
2021-07-31 13:04:37 +01:00
Jesús Cea
4b4227b907
Trivial typo in docstring
2021-07-31 06:36:10 +02:00
Pablo Galindo Salgado
b6bde9fc42
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499)
2021-07-31 02:17:09 +01:00
Jason R. Coombs
e63e6311aa
bpo-44771: Sync with importlib_resources 5.2.2, fixing refleak. ( #27497 )
...
* bpo-44771: Sync with importlib_resources 5.2.2, fixing refleak.
* Include new 'resources' dir in the Makefile.
2021-07-30 20:37:09 -04:00
andrei kulakov
48a62559df
bpo-44648: Fix error type in inspect.getsource() in interactive session (GH-27171)
2021-07-30 19:17:46 +02:00
andrei kulakov
ceea579ccc
bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939)
2021-07-30 19:10:37 +02:00
andrei kulakov
e3f877c32d
bpo-42892: fix email multipart attribute error (GH-26903)
2021-07-30 19:05:49 +02:00
andrei kulakov
4bd9caafb6
bpo-41911: Update docs for various expressions (GH-27470)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-30 18:52:44 +02:00
Stefan Hoelzl
80f0707629
bpo-44666: Use default encoding as fallback for compile_file (GH-27236)
...
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>
2021-07-30 18:38:42 +02:00
Pablo Galindo Salgado
7cad0bee80
Fail the CI if an optional module fails to compile (GH-27466)
2021-07-30 16:21:09 +02:00
Ori Avtalion
f4367ba3c5
Doc: Change errant 3.10.0 to 3.10, to match other mentions (GH-27459)
2021-07-30 15:55:09 +02:00
Noah Kantrowitz
be42c06bb0
Update URLs in comments and metadata to use HTTPS (GH-27458)
2021-07-30 15:54:46 +02:00
Yurii Karabas
ea4673ed07
bpo-44747: Refactor usage of sys._getframe at typing module ( #27387 )
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-30 15:49:24 +02:00
Yurii Karabas
7b975f81e4
bpo-44761: Change default value of NewType __module__ attr (GH-27406)
2021-07-30 14:56:12 +02:00
Vinay Sajip
6ff8903809
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475)
2021-07-30 12:48:50 +01:00
Jason R. Coombs
aaa83cdfab
bpo-44771: Apply changes from importlib_resources 5.2.1 (GH-27436)
...
* bpo-44771: Apply changes from importlib_resources@3b24bd6307
* Add blurb
* Exclude namespacedata01 from eol conversion.
2021-07-29 21:05:05 -04:00
Pablo Galindo Salgado
851cca8c22
Add missing gdbm dependencies to the UNIX CI (GH-27467)
2021-07-29 22:42:21 +01:00
Erlend Egeberg Aasland
2d34664051
bpo-31746: Fix broken call in GH-27431 (GH-27464)
2021-07-29 21:47:23 +01:00
Steve Dower
3edec5d142
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profile. (GH-27460)
2021-07-29 20:53:29 +01:00
Mark Shannon
2116909b3e
Minor fixes to specialization stats. (GH-27457)
...
* Use class, not value for fail stats for BINARY_SUBSCR.
* Fix counts for unquickened instructions.
2021-07-29 20:50:03 +01:00
Erlend Egeberg Aasland
7e311e496b
bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431)
2021-07-29 20:45:32 +01:00
Yurii Karabas
8182c8329c
bpo-44662: Add ability to annotate types.Union ( #27214 )
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-29 21:44:48 +02:00
HaeckelK
6b61d74a3b
Fix typo in ast.rst (GH-27449)
...
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
2021-07-29 19:15:35 +02:00
Hai Shi
9101b39e67
To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240)
2021-07-29 19:05:49 +02:00
Pavel
ccefa8a905
bpo-44765: [doc] fix typo (GH-27430)
2021-07-29 18:55:04 +02:00
Irit Katriel
ddd1c418c0
bpo-44725 : expose specialization stats in python (GH-27192)
2021-07-29 17:26:53 +01:00
Jack DeVries
6741794dd4
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433)
2021-07-29 16:01:21 +02:00
Jack DeVries
50de8f74f8
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401)
...
* 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.
2021-07-29 13:40:29 +02:00
Serhiy Storchaka
e5c8ddb171
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292)
2021-07-29 12:36:24 +01:00
Inada Naoki
ce5e1a6809
bpo-41103: Resurrect the old buffer protocol. (GH-27437)
...
Revert "bpo-41103: Remove old buffer protocol support (#21117 )"
This reverts commit 6f8a6ee59c
.
2021-07-29 12:46:47 +02:00
Erlend Egeberg Aasland
d542742128
bpo-42064: Optimise `sqlite3` state access, part 1 (GH-27273)
...
Prepare for module state:
- Add "get state by defining class" and "get state by module def" stubs
- Add AC defining class when needed
- Add state pointer to connection context
- Pass state as argument to utility functions
Automerge-Triggered-By: GH:encukou
2021-07-29 02:21:45 -07:00
Ammar Askar
47fd4726a2
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724)
2021-07-29 11:10:03 +02:00
Hai Shi
a390ebea17
bpo-42035: Add a PyType_GetName() to get type's short name. (GH-23903)
2021-07-29 09:57:02 +02:00
Erlend Egeberg Aasland
5269c09145
bpo-44688: Remove ASCII limitation from `sqlite3` collation names (GH-27395)
2021-07-29 09:47:56 +02:00