summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove effbot urls (GH-26308)E-Paine2021-05-228-29/+5
|
* Fix typo for configure.ac (GH-26305)Dong-hee Na2021-05-211-1/+1
|
* Specify Python Cookbook edition for reference (GH-26301)Terry Jan Reedy2021-05-211-2/+2
| | | | | | The timeit doc references Tim Peters introduction to the Chapter 18, Algorithms, of the second edition. The first editiion was before timeit. The third edition instead has Chapter 1, Data Structures and Algorithms, without Tim's introduction.
* bpo-40736: Improve the error message for re.search() TypeError (GH-23312)Zackery Spytz2021-05-212-1/+8
| | | Include the invalid type in the error message.
* bpo-44032: Fix downcast conversion in frameobject.c (GH-26291)Pablo Galindo2021-05-211-1/+1
|
* Remove duplicate words in docs. (GH-26167)Mariusz Felisiak2021-05-216-9/+9
|
* bpo-43927: Change 'IOError' to 'OSError' (GH-26289)Terry Jan Reedy2021-05-211-1/+1
| | | This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
* bpo-44180: Fix edge cases in invalid assigment rules in the parser (GH-26283)Pablo Galindo2021-05-216-1186/+1449
| | | | | | | | | | | | | | | The invalid assignment rules are very delicate since the parser can easily raise an invalid assignment when a keyword argument is provided. As they are very deep into the grammar tree, is very difficult to specify in which contexts these rules can be used and in which don't. For that, we need to use a different version of the rule that doesn't do error checking in those situations where we don't want the rule to raise (keyword arguments and generator expressions). We also need to check if we are in left-recursive rule, as those can try to eagerly advance the parser even if the parse will fail at the end of the expression. Failing to do this allows the parser to start parsing a call as a tuple and incorrectly identify a keyword argument as an invalid assignment, before it realizes that it was not a tuple after all.
* bpo-44184: Fix subtype_dealloc() for freed type (GH-26274)Victor Stinner2021-05-214-4/+46
| | | | | | | | | Fix a crash at Python exit when a deallocator function removes the last strong reference to a heap type. Don't read type memory after calling basedealloc() since basedealloc() can deallocate the type and free its memory. _PyMem_IsPtrFreed() argument is now constant.
* [doc] Fix indentation in inspect documentation (GH-24846)Numerlor2021-05-211-4/+4
|
* bpo-43643: Sync with python/importlib_resources@c17a610aad. (GH-26284)Jason R. Coombs2021-05-214-1/+10
| | | | * bpo-43643: Sync with python/importlib_resources@c17a610aad. * Sync with python/importlib_resources@89fd5e961a.
* bpo-44180: Report generic syntax errors in the furthest position reached in ↵Pablo Galindo2021-05-213-1/+10
| | | | the first parser pass (GH-26253)
* bpo-44032: Move data stack to thread from FrameObject. (GH-26076)Mark Shannon2021-05-2120-250/+454
| | | | | | | | | | | | | | | | * Remove 'zombie' frames. We won't need them once we are allocating fixed-size frames. * Add co_nlocalplus field to code object to avoid recomputing size of locals + frees + cells. * Move locals, cells and freevars out of frame object into separate memory buffer. * Use per-threadstate allocated memory chunks for local variables. * Move globals and builtins from frame object to per-thread stack. * Move (slow) locals frame object to per-thread stack. * Move internal frame functions to internal header.
* bpo-44150: Support optional weights parameter for fmean() (GH-26175)Raymond Hettinger2021-05-214-9/+59
|
* bpo-38671: Add test that `pathlib.Path.resolve()` returns an absolute path. ↵Barney Gale2021-05-201-0/+10
| | | | | | | | (GH-26184) Issue should be fixed in bpo-43757 Co-Authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* bpo-38820: Test with OpenSSL 3.0.0-alpha17 (#26266)Christian Heimes2021-05-202-2/+2
|
* 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)