summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43879: Add native_thread_id field to PyThreadState (GH-25458)Gabriele N. Tornetta2021-05-264-0/+17
|
* bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757)Erlend Egeberg Aasland2021-05-262-3/+14
|
* bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as ↵Peter Law2021-05-261-3/+4
| | | | context var (GH-21199)
* bpo-44222: Improve _removeHandlerRef() for a very long _handlerList (GH-26325)Yonatan Goldschmidt2021-05-251-2/+3
| | | | | | The list lookups become a big burden for very long lists. This patch changes the "happy flow" path of 2 lookups into 1 lookup. Automerge-Triggered-By: GH:vsajip
* Correct minor spelling typos (GH-26339)Jero Bado2021-05-251-2/+2
| | | | surroundeded to surrounded extensins to extensions
* Fix typo in NEWS. (GH-26346)Mariusz Felisiak2021-05-251-1/+1
|
* Point to recent link to PyFLTK (GH-26315)Mark2021-05-251-1/+1
|
* bpo-44232: Fix type_new() error reporting (GH-26359)Victor Stinner2021-05-253-0/+26
| | | | | | Fix a regression in type() when a metaclass raises an exception. The C function type_new() must properly report the exception when a metaclass constructor raises an exception and the winner class is not the metaclass.
* bpo-42972: Fully implement GC protocol for arraymodule types (GH-26114)Erlend Egeberg Aasland2021-05-251-2/+11
|
* bpo-42972: Fully implement GC protocol for sqlite3 heap types (GH-26104)Erlend Egeberg Aasland2021-05-256-72/+190
|
* bpo-20408: Fix memoryview() signature in docs (GH-24431)Mariusz Felisiak2021-05-252-9/+8
|
* bpo-44231: Don't export internal _PyTuple_FromArray() symbol (GH-26352)Erlend Egeberg Aasland2021-05-251-1/+1
|
* bpo-44156: Make cached string constants in compile.c subinterpreter ↵Ken Jin2021-05-252-52/+45
| | | | compatible (GH-26161)
* bpo-43795: Remove Py_FrozenMain from the Limited API & Stable ABI (GH-26241)Petr Viktorin2021-05-257-7/+9
| | | | | | | | | | | Py_FrozenMain was added to the Limited C API in [bpo-42591]() (3.10.0a4); but to fix that issue it would be enough to add it to the regular C API. The function is undocumented, tests were added very recently ([bpo-44131]()), and most importantly, it is not present in all builds of Python, as the linker sometimes omits it as unused. It should be added back when these issues are fixed. Note that this does not affect Python's regular C API.
* bpo-43109: configure doc: LTO requires "ar" on macOS (GH-26349)Victor Stinner2021-05-251-2/+2
|
* bpo-44151: Various grammar, word order, and markup fixes (GH-26344)Raymond Hettinger2021-05-252-18/+18
|
* bpo-43109: Fix --with-lto configure option on macOS (GH-26341)Ned Deily2021-05-253-6/+14
| | | | Allow --with-lto configure option to work with Apple-supplied Xcode or Command Line Tools which do not provide llvm-ar.
* bpo-44151: linear_regression() minor API improvements (GH-26199)Zack Kneupper2021-05-253-26/+26
|
* bpo-38908: [docs] Add changes to 3.10 whatsnew and fix some minor ↵Ken Jin2021-05-242-4/+12
| | | | | inaccuracies in news (GH-26096) The fix only applies to ``isinstance``. ``issubclass`` isn't affected (because it was always working to begin with). So I also fixed the news to reflect that.
* bpo-41282: Fix broken `make install` (GH-26329)Petr Viktorin2021-05-243-6/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous commit broke a check in sysconfig when building cpython itself. This caused builds of the standard library modules to search a wrong location (the installed location rather than the source directory) for header files with the net effect that a ``make install`` incorrectly caused all extension modules to be rebuilt again and with incorrect include file paths. When building Python, we need two distinct "include" directories: - source .h files - install target for .h files Note that this doesn't matter except when building Python from source. Historically: - source .h files were in the distutils scheme under 'include' - the install directory was in the distutils.command.install scheme under 'headers' GH-24549 merged these; sysconfig is now the single source of truth and distutils is derived from it. This commit introduces a "secret" scheme path, 'headers', which contains the install target. It is only present when building Python. The distutils code uses it if present, and falls back to 'include'. Co-authored-by: Ned Deily <nad@python.org>
* bpo-44195: Use 'TraversableResources' in the docs to match the ↵Jason R. Coombs2021-05-242-2/+4
| | | | implementation. (GH-26317)
* bpo-44032: Delay deletion of stack chunks until thread state is deleted. ↵Mark Shannon2021-05-241-7/+7
| | | | (GH-26285)
* Fix typo in whatsnew/3.10.rst (GH-26310)Tushar Sadhwani2021-05-231-1/+1
|
* bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517)Junnosuke Kuroda2021-05-231-1/+1
| | | | | Making the description of `InspectLoader.is_package` aligned with the current implementation. Automerge-Triggered-By: GH:jaraco
* bpo-44210: make importlib.metadata._meta.PackageMetadata public (GH-26299)Filipe Laíns2021-05-232-0/+3
| | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Automerge-Triggered-By: GH:jaraco
* bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318)Serhiy Storchaka2021-05-232-8/+95
| | | | | | Fix errors: * "%10.s" should be equal to "%10.0s", not "%10s". * Tuples with starred expressions caused a SyntaxError.
* bpo-44201: Avoid side effects of "invalid_*" rules in the REPL (GH-26298)Pablo Galindo2021-05-225-0/+26
| | | | | | | | | | | | When the parser does a second pass to check for errors, these rules can have some small side-effects as they may advance the parser more than the point reached in the first pass. This can cause the tokenizer to ask for extra tokens in interactive mode causing the tokenizer to show the prompt instead of failing instantly. To avoid this, add a new mode to the tokenizer that is activated in the second pass and deactivates asking for new tokens when the interactive line is finished. As the parsing should have reached the last line in the first pass, the second pass should not need to ask for more tokens.
* bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309)Erlend Egeberg Aasland2021-05-222-10/+12
| | | | Co-authored-by: denfromufa <denfromufa@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-33809: add the TracebackException.print() method (GH-24231)Irit Katriel2021-05-224-4/+34
|
* bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100)Anthony Sottile2021-05-223-30/+2
|
* 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
|