aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Temporary hack: handle all extensions via .addext()gentoo-3.11.0b3Michał Górny2022-06-022-9/+15
| | | | | Use .addext() for all modules in order to enable Makefile control over building them.
* ssl: Hard-disable SSLv3 to avoid automagic depsMichał Górny2022-06-021-0/+4
| | | | Bug: https://bugs.gentoo.org/767886
* Skip RDS socket tests that hang frequentlyMichał Górny2022-06-021-0/+1
|
* Blacklist test_pickletools from __all__ test as it imports numpyMichał Górny2022-06-021-0/+2
| | | | | The test imports numpy, bringing its warnings along with it and causing the test to fail.
* distutils: make -OO enable both opt-1 and opt-2 optimizationMichał Górny2022-06-022-10/+10
| | | | | Bug: http://bugs.python.org/issue27226 Bug: https://bugs.gentoo.org/585060
* Python 3.11.0b3v3.11.0b3Pablo Galindo2022-06-017-9/+31
|
* gh-92597: Improve error message for AST nodes with invalid ranges (GH-93398) ↵Miss Islington (bot)2022-06-011-3/+3
| | | | | | | (GH-93414) (cherry picked from commit 8a221a853787c18d5acaf46f5c449d28339cde21) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Remove the execution bit to some socket-related files. (GH-93368)Miss Islington (bot)2022-06-013-0/+0
| | | | | (cherry picked from commit 5247389369ac3da35c44f7c0d8f4facc0300883a) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple ↵Miss Islington (bot)2022-05-313-2/+10
| | | | | | | | (GH-93346) For example: tuple[*Ts, list[T]][int, str, bool] (cherry picked from commit f545fc955aeb701ae4e73b07ff2283f823d857b8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-91162: Fix substitution of unpacked tuples in generic aliases ↵Miss Islington (bot)2022-06-016-3254/+3349
| | | | | | | | | | | | | (GH-92335) (#92484) * gh-91162: Fix substitution of unpacked tuples in generic aliases (GH-92335) (cherry picked from commit 9d25db9db1617f012d7dba118b5b8f2b9e25e116) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Regenerate ABI file Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-92597: Ensure that AST nodes without explicit end positions can be ↵Miss Islington (bot)2022-05-314-13/+35
| | | | | | | compiled (GH-93359) (cherry picked from commit 705eaec28f7bee530b1c1635ba385a49a1feaf32) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-69093: Fix Setup.local.in rule for _sqlite3 (GH-93380)Miss Islington (bot)2022-05-312-1/+2
| | | | | (cherry picked from commit 8a5e3c2ec6254b2ce06d17545f58a6719e0c8fdb) Co-authored-by: Christian Heimes <christian@python.org>
* Remove VOC reference (93333)Miss Islington (bot)2022-05-311-2/+1
| | | | | | | VOC has been archived by the BeeWare project, and they are instead embedding CPython, rather than transpiling to Java bytecode. (cherry picked from commit bb900712a5511ba82ef64105fe28d2a6886a8fed) Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
* Post 3.11.0b2Pablo Galindo2022-05-311-1/+1
|
* Python 3.11.0b2v3.11.0b2Pablo Galindo2022-05-3051-112/+499
|
* gh-93351: Ensure the position information in AST nodes created by the parser ↵Miss Islington (bot)2022-05-302-0/+53
| | | | | | | is always consistent (GH-93352) (cherry picked from commit 5893b5db98b38b17750c0572c7209774a5034898) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Update macOS installer Welcome and ReadMe display wording to "beta". (GH-93344)Ned Deily2022-05-302-4/+4
|
* Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332) (#93339)Miss Islington (bot)2022-05-291-2/+2
| | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 4f195f9db168bfe3360607eb45ba8d9ac98506ec) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
* bpo-42272: fix misleading warning filter message/module docs (GH-23172)Miss Islington (bot)2022-05-292-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-42272: improve message/module warning filter docs "The Warnings Filter" section of the warnings module documentation describes the message and module filters as "a string containing a regular expression". While that is true when they are arguments to the filterwarnings function, it is not true when they appear in -W or $PYTHONWARNINGS where they are matched literally (after stripping any starting/ending whitespace). Update the documentation to note when they are matched literally. Also clarify that module matches the "fully-qualified module name", rather than "module name" which is ambiguous. skip news (since this is a doc fix) Signed-off-by: Kevin Locke <kevin@kevinlocke.name> * bpo-42272: remove bad submodule warning filter doc The `error:::mymodule[.*]` example in the "Describing Warning Filters" section of the warnings module documentation does not behave as the comment describes. Since the module portion of the filter string is interpreted literally, it would match a module with a fully-qualified name that is literally `mymodule[.*]`. Unfortunately, there is not a way to match '"module" and any subpackages of "mymodule"' as documented, since the module part of a filter string is matched literally. Instead, update the filter and comment to match only "mymodule". skip news (since this is a doc fix) Signed-off-by: Kevin Locke <kevin@kevinlocke.name> * bpo-42272: add warning filter doc changes to NEWS Signed-off-by: Kevin Locke <kevin@kevinlocke.name> (cherry picked from commit 8136606769661c103c46d142e52ecbbbb88803f6) Co-authored-by: Kevin Locke <kevin@kevinlocke.name>
* gh-92240 : Include release dates for "What's New In Python 3.X" (GH-92937)Miss Islington (bot)2022-05-289-8/+13
| | | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit 877ad7b3b2778a305d3989d58ebd68cb01baf26e) Co-authored-by: georgically <40323509+georgically@users.noreply.github.com>
* gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849)Miss Islington (bot)2022-05-283-2/+9
| | | | | (cherry picked from commit 7fa9b7daa5a8bb5760724ac2d94f5298c60dc905) Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
* gh-92727: Add example of named group in doc for re.Match.__getitem__ (GH-92730)Miss Islington (bot)2022-05-281-0/+8
| | | | | (cherry picked from commit 642d1fa81fed8ac260e1719013d77b9dfd93920f) Co-authored-by: Baptiste Mispelon <bmispelon@gmail.com>
* [3.11] bpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185) ↵Eric Snow2022-05-2718-234/+10
| | | | | | | | | | | | | (GH-93306) (cherry picked from commit caa279d6fd5f151e57f891cd4f6ba51b532501c6) This was added for bpo-40514 (gh-84694) to test out a per-interpreter GIL. However, it has since proven unnecessary to keep the experiment in the repo. (It can be done as a branch in a fork like normal.) So here we are removing: * the configure option * the macro * the code enabled by the macro Automerge-Triggered-By: GH:ericsnowcurrently
* gh-93297: Make asyncio task groups prevent child tasks from being GCed ↵Miss Islington (bot)2022-05-272-13/+7
| | | | | | | | | (GH-93299) (#93305) (cherry picked from commit e6a57678cafe18ca132ee9510252168fcc392a8d) Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Yury Selivanov <yury@edgedb.com>
* gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility ↵Miss Islington (bot)2022-05-272-3/+11
| | | | | | | | (GH-93302) (GH-93304) In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type. This change restores that behavior. (cherry picked from commit 70cfe56cafb2b549983f63d5d1a54654fe63c15c) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-91243: Document Required and NotRequired (GH-93173)Miss Islington (bot)2022-05-271-7/+58
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 711eda7dec1f62ecb2a87b274b5f6bfc2b6fbef4) Co-authored-by: David Foster <david@dafoster.net>
* gh-77024: test.support: Improve documentation (GH-92513)Miss Islington (bot)2022-05-271-42/+68
| | | | | | | | | | | | | This is a rework of GH-5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue GH-77024 and the discussion on GH-5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 8995177030c8b41885ad92b260279b7e622ecaea) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92898: Enhance _testcppext test on cast to PyObject* (GH-93111)Miss Islington (bot)2022-05-263-36/+56
| | | | | | | * Add StrongRef class. * Rename and reformat functions of the _Py_CAST() implementation. (cherry picked from commit 20d30ba2ccf9182e4f08db112f428c909148a40b) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-93217: fix some issues in man page and --help (GH-93219)Miss Islington (bot)2022-05-262-8/+20
| | | | | (cherry picked from commit da397194832c4b8db8446af42919d8ad47b3cb4a) Co-authored-by: Éric <merwok@netwok.org>
* test.pythoninfo logs more build info (GH-93225)Miss Islington (bot)2022-05-261-3/+47
| | | | | | Log also test.support.check_sanitizer() values. (cherry picked from commit 06dd26f89f35b6d6ef4b68c169cb6c675af7e4a4) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-93005: Fix py.exe launcher test to search for intended tag (GH-93190)Miss Islington (bot)2022-05-251-1/+1
| | | | | (cherry picked from commit ca58e4a2c596d1b4cdcae9ec92844d3d3272c4ce) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-90817: Deprecate explicitly locale.resetlocale() (GH-93196)Miss Islington (bot)2022-05-254-2/+21
| | | | | | | The function was already deprecated in Python 3.11 since it calls locale.getdefaultlocale() which was deprecated in Python 3.11. (cherry picked from commit bf58cd01b313837511d9399f18588ccd2e5dc5a9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-93035: [Enum] Fix IntFlag crash when no single-bit members ↵Miss Islington (bot)2022-05-251-1/+1
| | | | | | | | (GH-93076) (GH-93197) `EnumType` attempts to create a custom docstring for each enum/flag, but that was failing with pathological flags that had no members (only multi-bit aliases). (cherry picked from commit 08cfc3dabf0f81a4494cd0d697befc7d0dec77b7) Co-authored-by: Tobin Yehle <tobinyehle@gmail.com>
* gh-90473: Misc test fixes for WASI (GH-93218)Miss Islington (bot)2022-05-258-7/+26
| | | | | | | | | | | * ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible (cherry picked from commit 1f134e96ba994bea3aaea533d4a558df3c5cc3c0) Co-authored-by: Christian Heimes <christian@python.org>
* gh-91924: Fix __lltrace__ for non-UTF-8 stdout encoding (GH-93199)Miss Islington (bot)2022-05-252-1/+5
| | | | | | | | | | | Fix __lltrace__ debug feature if the stdout encoding is not UTF-8. If the stdout encoding is not UTF-8, the first call to lltrace_resume_frame() indirectly sets lltrace to 0 when calling unicode_check_encoding_errors() which calls encodings.search_function(). (cherry picked from commit 5695c0e0a25da58dfc1d22fc1cd68c2fda0a320d) Co-authored-by: Victor Stinner <vstinner@python.org>
* test_threaded_import: Fix unittest.main spelling (GH-93114)Miss Islington (bot)2022-05-251-1/+1
| | | | | (cherry picked from commit 19710145b496b5e5341630d80be9c400aa792bd1) Co-authored-by: Florian Bruhin <me@the-compiler.org>
* [3.11] gh-83245: Raise BadZipFile instead of ValueError when reading a ↵Miss Islington (bot)2022-05-253-0/+15
| | | | | | | | | | | corrupt ZIP file (GH-32291) (GH-93141) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 202ed2506c84cd98e9e35621b5b2929ceb717864) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
* gh-92728: Restore re.template, but deprecate it (GH-93161)Miss Islington (bot)2022-05-2410-5/+65
| | | | | | | | Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)" This reverts commit b09184bf05b07b77c5ecfedd4daa846be3cbf0a9. (cherry picked from commit 16a7e4a0b75080275bf12cfb71d54b01d85099b2) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* test.pythoninfo no longer requires socket (GH-93191)Miss Islington (bot)2022-05-241-1/+4
| | | | | | | test.pythoninfo no longer fails if "import socket" fails: the socket module is now optional. (cherry picked from commit 4a31ed8a32699973ae1f779022794fdab9fa08ee) Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-89369: test_contextlib_async finalizes event loop after each test (GH-93074)Miss Islington (bot)2022-05-241-7/+4
| | | | | | Use asyncio.run(). (cherry picked from commit d2ef66a10be1250b13c32fbf3c0f9a9d2d98b124) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113)Miss Islington (bot)2022-05-241-0/+1
| | | | | | | | The code was moved out of test.support in 311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making ResourceDenied undefined. (cherry picked from commit 37c9a351b15c3fc4fcdca5dcb9ce19e51d7d2dd7) Co-authored-by: Florian Bruhin <me@the-compiler.org>
* gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) ↵Miss Islington (bot)2022-05-245-4/+65
| | | | | | | | | | | | (GH-93145) Also while there, clarify a few things about why we reduce the hash to 32 bits. Co-authored-by: Eli Libman <eli@hyro.ai> Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit c1f5c903a7e4ed27190488f4e33b00d3c3d952e5)
* gh-93099: Fix _pyio to use locale module properly (gh-93136)Miss Islington (bot)2022-05-232-8/+15
| | | | | (cherry picked from commit f7fabae75c7b8ecd0c5673b5d62a15db24a05953) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* Doc: No need to use rst syntax in code comments. (GH-93102)Miss Islington (bot)2022-05-231-2/+2
| | | | | | And it raises `make suspicious` false positives. (cherry picked from commit e739ff141680fd7e2a762cf98c4352c6c850af1f) Co-authored-by: Julien Palard <julien@palard.fr>
* gh-93118: [Enum] fix error message (GH-93138) (GH-93142)Miss Islington (bot)2022-05-231-2/+3
| | | | Include member names in error message. (cherry picked from commit a49721ea075a18a7787ace6752b4eb0954e1b607)
* gh-92859: Doc: add info about logging.debug() calling basicConfig() ↵Miss Islington (bot)2022-05-232-4/+13
| | | | | (GH-93063) (GH-93151) (cherry picked from commit 2176898308acafedf87a48d33f29645e79b9af86)
* gh-93061: Mark as artificial: backwards jump after async for (GH-93062) ↵Miss Islington (bot)2022-05-233-0/+55
| | | | | | | (GH-93110) (cherry picked from commit a458be3263b4cb92f3fde726461e8ef44b2a4a9d) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.11] gh-93100: [Enum] fix missing variable in global_str (GH-93107) (GH-93134)Ethan Furman2022-05-232-0/+12
| | | | | (cherry picked from commit 046df59658c9f64a9f0fc909ed62e92c6c4dd668) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-93010: InvalidHeaderError used but nonexistent (GH-93015)Miss Islington (bot)2022-05-233-9/+16
| | | | | | | | * fix issue 93010 Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 71abeb0895f7563dc5ac4b4f077a8f87dab57e7a) Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
* gh-92913: Fix typos in documentation (GH-93129)Miss Islington (bot)2022-05-231-3/+3
| | | | | (cherry picked from commit 6a6f823ea7f565722148462a0372aa90085637bc) Co-authored-by: Steve Dower <steve.dower@python.org>