summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-36160: Fix test_site so that it can run independently of other tests ↵native-api2021-05-201-2/+4
| | | | (GH-12131)
* bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() (GH-26201)Victor Stinner2021-05-204-100/+51
| | | | | Moreover, Py_FrozenMain() relies on Py_InitializeFromConfig() to handle the PYTHONUNBUFFERED environment variable and configure C stdio streams like stdout (make the stream unbuffered).
* Update link in SECURITY.md (GH-21320)Marcono12342021-05-201-3/+2
|
* bpo-43693: Group the code in codeobject.c logically. (gh-26216)Eric Snow2021-05-191-572/+622
|
* [doc] Fix typo in asyncio-eventloop documentation (GH-22311)Bruno2021-05-191-2/+2
|
* bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as ↵naglis2021-05-191-2/+2
| | | | coroutine methods (GH-20870)
* bpo-26110: Document `CALL_METHOD_KW` (GH-26159)Ken Jin2021-05-192-1/+27
| | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Remove unused function in ceval.c (GH-26246)Pablo Galindo2021-05-191-9/+0
|
* Fix compiler warning for misleading guarding in the tkinter (GH-26244)Pablo Galindo2021-05-191-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | The newest gcc emmits this warning: ``` /Modules/_tkinter.c:272:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON | ^~~~~~~~~~~~ /Modules/_tkinter.c:243:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 243 | (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*))) | ^ /Modules/_tkinter.c:272:57: note: in expansion of macro ‘tcl_tstate’ 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~~~~~~~~~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON ``` that's because the macro packs together two statements at the same level as the "if". The warning is misleading but is very noisy so it makes sense to fix it.
* Fix compiler warning in the xml module (GH-26245)Pablo Galindo2021-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The newest version of gcc complains about passing un-initialized arrays as constant pointers: ``` /Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’: /Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized] 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ /Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’} 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ In file included from /Modules/expat/xmltok.c:1657: /Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here 92 | char buf[ENCODING_MAX]; ```
* bpo-44168: Fix error message in the parser for keyword arguments for invalid ↵Pablo Galindo2021-05-194-561/+611
| | | | expressions (GH-26210)
* Enable GitHub Actions on the 3.10 branch (GH-26242)Hugo van Kemenade2021-05-193-24/+30
|
* bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26198)Catherine Devlin2021-05-193-0/+8
| | | | | | | * bpo-4928 Document NamedTemporaryFile non-deletion after SIGKILL * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216)Ian Norton2021-05-191-2/+3
| | | Automerge-Triggered-By: GH:vsajip
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Tal Einat2021-05-196-73/+345
|
* bpo-44106: Purge unused sqlite3 doc includes (GH-26234)Erlend Egeberg Aasland2021-05-198-138/+0
|
* bpo-44106: Improve sqlite3 example database contents (GH-26027)Erlend Egeberg Aasland2021-05-199-42/+37
|
* bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)Erlend Egeberg Aasland2021-05-191-1/+5
|
* bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411)Zackery Spytz2021-05-181-1/+2
|
* bpo-41963: document that ConfigParser strips off comments (GH-26197)Jürgen Gmach2021-05-183-1/+12
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Laura Gutierrez Funderburk <58710704+lgfunderburk@users.noreply.github.com>
* bpo-25872: Add unit tests for linecache and threading (GH-25913)uniocto2021-05-182-1/+60
|
* bpo-44131: Fix Makefile for test_frozenmain (GH-26203)Victor Stinner2021-05-183-4/+5
| | | | Remove Programs/test_frozenmain.h Makefile target: it ran make in parallel which caused build errors on LTO+PGO builds.
* bpo-44131: Test Py_FrozenMain() (GH-26126)Victor Stinner2021-05-1710-32/+203
| | | | | | | | | * Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add Programs/freeze_test_frozenmain.py * Add Programs/test_frozenmain.h * Add make regen-test-frozenmain * Add test_frozenmain command to Programs/_testembed * _testembed.c: add error(msg) function
* bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large ↵Igor Bolshakov2021-05-172-10/+8
| | | | | | | files (GH-25058) `shutil.unpack_archive()` tries to read the whole file into memory, making no use of any kind of smaller buffer. Process crashes for really large files: I.e. archive: ~1.7G, unpacked: ~10G. Before the crash it can easily take away all available RAM on smaller systems. Had to pull the code form `zipfile.Zipfile.extractall()` to fix this Automerge-Triggered-By: GH:gpshead
* bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)Pete Wicken2021-05-173-1/+13
| | | | | For IPv4 mapped IPv6 addresses, defer privacy check to the mapped IPv4 address. Solves bug where public mapped IPv4 addresses are considered private by the IPv6 check. Automerge-Triggered-By: GH:gpshead
* bpo-44145: Release the GIL around HMAC_Update. (GH-26157)Gregory P. Smith2021-05-172-2/+7
| | | | | | It was always meant to be released for parallelization. This now matches the other similar code in the module. Thanks michaelforney for noticing!
* bpo-44154: optimize Fraction pickling (GH-26186)Sergey B Kirpichev2021-05-173-2/+5
|
* Apply edits from Allen Downey's review of the linear_regression docs. (GH-26176)Raymond Hettinger2021-05-172-23/+15
|
* [doc] Fix typo in os module (GH-24464)Rafael Fontenelle2021-05-161-1/+1
| | | Automerge-Triggered-By: GH:iritkatriel
* Fix a typo/error in a news entry (bidst_wheel -> bdist_wheel) (GH-24284)Zackery Spytz2021-05-161-1/+1
| | | | | This error was fixed recently in `Doc/whatsnew/3.10.rst`. Automerge-Triggered-By: GH:iritkatriel
* fix docstring typo in bdb.py (GH-22323)flizzywine2021-05-161-1/+1
|
* Remove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438)Serhii Hidenko2021-05-161-1/+0
|
* Fix typo in comment (GH-26162)Ashwin Ramaswami2021-05-161-1/+1
|
* bpo-44142: drop redundant parantheses when unparsing tuples as assignment ↵Batuhan Taskaya2021-05-164-4/+47
| | | | targets (GH-26156)
* bpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` ↵Barney Gale2021-05-162-2/+3
| | | | (GH-26155)
* Improve speed and accuracy for correlation() (GH-26135)Raymond Hettinger2021-05-151-12/+14
|
* bpo-44143: Fix crash in the parser when raising tokenizer errors with an ↵Pablo Galindo2021-05-153-0/+4
| | | | exception set (GH-26144)
* bpo-32133: Improve numbers docs (GH-26124)Miguel Brito2021-05-151-1/+1
|
* bpo-44139: Use a more descriptive syntax error comprehension case in the ↵Pablo Galindo2021-05-151-2/+2
| | | | What's New for 3.10 (GH-26145)
* bpo-26110: Add ``CALL_METHOD_KW`` opcode to speedup method calls with ↵Ken Jin2021-05-1510-180/+247
| | | | | | | | | keywords (GH-26014) * Add CALL_METHOD_KW * Make CALL_METHOD branchless too since it shares the same code * Place parentheses in STACK_SHRINK
* bpo-44081: improve ast.unparse() for lambdas with no parameters (GH-26000)Batuhan Taskaya2021-05-153-5/+21
|
* bpo-44072: fix Complex, Integral docs for `**` (GH-25986)Rory Yorke2021-05-143-6/+13
| | | | In numbers module docstrings and docs.
* bpo-37788: Fix reference leak when Thread is never joined (GH-26103)Antoine Pitrou2021-05-143-1/+26
| | | When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown. If many threads are created this way, the _shutdown_locks set could therefore grow endlessly. To avoid such a situation, purge expired locks each time a new one is added or removed.
* bpo-43729: Clarify comment in tutorial example (GH-25191)Erlend Egeberg Aasland2021-05-141-1/+1
|
* bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129)Miguel Brito2021-05-144-0/+93
|
* Subprocess Protocols Documentation (GH-20950)kudavid2021-05-141-1/+1
| | | Should be "Subprocess Protocol instances" not "Datagram Protocol instances"
* [doc] Fix typos in cgi.rst (#24766)Géry Ogam2021-05-141-4/+4
|
* sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032)Erlend Egeberg Aasland2021-05-141-1/+1
|
* Doc: Fix ambiguous pronoun (GH-26037)Daniel Shahaf2021-05-141-1/+1
|
* Updated code example for asyncio.gather (GH-20604)josephernest2021-05-141-8/+11
| | | | | The previous example did not fully showcase the interest of using gather. Here the example showcases "the result is an aggregate list of returned values".