summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` ↵Nikita Sobolev2023-07-021-1/+4
| | | | | | (#106329) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-104922: remove PY_SSIZE_T_CLEAN (#106315)Inada Naoki2023-07-0264-90/+0
|
* gh-106320: Remove private _PyInterpreterState functions (#106325)Victor Stinner2023-07-029-70/+86
| | | | | | | | | Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API.
* gh-106320: Remove private _PyTraceMalloc C API functions (#106324)Victor Stinner2023-07-0210-98/+99
| | | | | | | * Remove private _PyTraceMalloc C API functions: move them to the internal C API. * Don't export most of these functions anymore, but still export _PyTraceMalloc_GetTraceback() used by tests. * Rename Include/tracemalloc.h to Include/cpython/tracemalloc.h
* gh-106320: Remove _PyInterpreterState_Get() alias (#106321)Victor Stinner2023-07-0111-22/+29
| | | | Replace calls to the (removed) slow _PyInterpreterState_Get() with fast inlined _PyInterpreterState_GET() function.
* gh-102541: Fix Helper.help("mod") for non-existent mod (#105934)Kirill Podoprigora2023-07-013-1/+13
| | | | | | If the output arg to Helper() is a stream rather than the default None, which means 'page to stdout', the ImportError from pydoc.resolve is currently not caught in pydoc.doc. The same error is caught when output is None. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-106316: Remove pytime.h header file (#106317)Victor Stinner2023-07-0125-667/+650
| | | | | | | | | | | | | | | | | Remove the "cpython/pytime.h" header file: it only contained private functions. Move functions to the internal pycore_time.h header file. Move tests from _testcapi to _testinternalcapi. Rename also test methods to have the same name than tested C functions. No longer export these functions: * _PyTime_Add() * _PyTime_As100Nanoseconds() * _PyTime_FromMicrosecondsClamp() * _PyTime_FromTimespec() * _PyTime_FromTimeval() * _PyTime_GetPerfCounterWithInfo() * _PyTime_MulDiv()
* Fix duplicate word typos in comments (#106225)Md Sadman Chowdhury2023-07-013-3/+3
|
* GH-89812: Improve test for `pathlib.Path.stat()` (GH-106064)Barney Gale2023-07-011-8/+18
| | | | | Make assertions about the `st_mode`, `st_ino` and `st_dev` attributes of the stat results from two files and a directory, rather than checking if `chmod()` affects `st_mode` (which is already tested elsewhere).
* GH-89812: Miscellaneous pathlib test improvements (GH-106063)Barney Gale2023-07-011-18/+17
| | | | | | | - Split out dedicated test for unbuffered `open()` - Split out dedicated test for `is_mount()` at the filesystem root - Avoid `os.stat()` when checking that empty paths point to '.' - Remove unnecessary `rmtree()` call - Remove unused `assertSame()` method
* GH-89812: Test that `pathlib.Path.is_junction()` returns false (GH-106062)Barney Gale2023-07-011-0/+9
| | | | Slightly expand the test coverage of `is_junction()`. The existing test only checks that `os.path.isjunction()` is called under-the-hood.
* GH-89812: Make symlink support configurable in pathlib tests. (GH-106060)Barney Gale2023-07-011-36/+52
| | | | | | | Adjust the pathlib tests to add a new `PathTest.can_symlink` class attribute, which allows us to enable or disable symlink support in tests. A (near-)future commit will add an `AbstractPath` class; its tests will hard-code the value to `True` or `False` depending on a stub subclass's capabilities.
* gh-106149: move unconditional jump direction resolution from optimizer to ↵Irit Katriel2023-07-014-20/+44
| | | | assembler (#106291)
* build(deps): bump mheap/github-action-required-labels from 4 to 5 (#106306)dependabot[bot]2023-07-011-1/+1
| | | | | | | | | | | | | | | Bumps [mheap/github-action-required-labels](https://github.com/mheap/github-action-required-labels) from 4 to 5. - [Release notes](https://github.com/mheap/github-action-required-labels/releases) - [Commits](https://github.com/mheap/github-action-required-labels/compare/v4...v5) --- updated-dependencies: - dependency-name: mheap/github-action-required-labels dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump mypy from 1.3.0 to 1.4.1 in /Tools/clinic (#106305)dependabot[bot]2023-07-011-1/+1
| | | | | | | | | | | | | | Bumps [mypy](https://github.com/python/mypy) from 1.3.0 to 1.4.1. - [Commits](https://github.com/python/mypy/compare/v1.3.0...v1.4.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-106232: Make timeit doc command lines compatible with Windows. (#106296)Terry Jan Reedy2023-07-013-10/+12
| | | | | | Command Prompt (CMD Shell) and older versions of PowerShell require double quotes and single quotes inside the string. This form also works on linux and macOS.
* gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericAlias` ↵Nikita Sobolev2023-07-014-1/+62
| | | | (#105488)
* GH-89812: Simplify creation of symlinks in pathlib tests. (GH-106061)Barney Gale2023-06-301-20/+12
| | | | | | Remove `PathTest.dirlink()` function. Symlinks in `PathTest.setUp()` are created using `os.symlink()` directly; symlinks in test functions use `Path.symlink_to()` in order to make the tests applicable to a (near-)future `AbstractPath` class.
* gh-106145: Make `end_{lineno,col_offset}` required on `type_param` nodes ↵Nikita Sobolev2023-06-304-14/+10
| | | | (#106224)
* GH-106135: Add more edge-"cases" to test_patma (GH-106271)Nikita Sobolev2023-06-301-0/+131
|
* gh-106267: Add type cast to generated code (#106289)Kirill Podoprigora2023-06-302-2/+2
|
* gh-106280: Remove unnecessary unreachable code (gh-106285)Dong-hee Na2023-06-301-3/+0
|
* gh-101100: Docs: Fix references to several numeric dunders (#106278)F3eQnxN3RriK2023-06-306-45/+45
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-104584: Add Include/cpython/optimizer.h to Makefile.pre.in (#106277)Victor Stinner2023-06-303-0/+5
|
* Cleanup clear_static_tp_subclasses() (#106276)Victor Stinner2023-06-301-0/+2
| | | | Only iterate on the dictionary if Python is built with assertions: subclass is only needed when Python is built with assertions.
* gh-106023: Remove _PyObject_FastCallTstate() function (#106273)Victor Stinner2023-06-303-30/+6
|
* gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (#106272)Victor Stinner2023-06-302-1/+2
| | | Deprecate Py_HasFileSystemDefaultEncoding variable.
* gh-106023: Remove _PyObject_FastCall() function (#106265)Victor Stinner2023-06-307-51/+13
|
* Remove private _PyCodec_Lookup() function (#106269)Victor Stinner2023-06-309-97/+87
| | | | | | | | | | | | | | | Remove the following private functions of the C API: * _PyCodecInfo_GetIncrementalDecoder() * _PyCodecInfo_GetIncrementalEncoder() * _PyCodec_DecodeText() * _PyCodec_EncodeText() * _PyCodec_Forget() * _PyCodec_Lookup() * _PyCodec_LookupTextEncoding() Move these functions to a new pycore_codecs.h internal header file. These functions are no longer exported.
* gh-106023: Rename _PyObject_FastCallDictTstate() (#106264)Victor Stinner2023-06-302-9/+10
| | | | Rename _PyObject_FastCallDictTstate() to _PyObject_VectorcallDictTstate().
* gh-106182: sys: Intern getfilesystemencoding() and ↵Inada Naoki2023-06-302-5/+27
| | | | | getfilesystemencodeerrors() (#106183) sys: Intern getfilesystemencoding() and getfilesystemencodeerrors()
* fix typos (#106247)Inada Naoki2023-06-308-12/+12
| | | Most typos are in comments, but two typos are in docstring.
* gh-106023: Remove _PY_FASTCALL_SMALL_STACK constant (#106258)Victor Stinner2023-06-302-13/+12
| | | | Remove _PY_FASTCALL_SMALL_STACK constant from the C API: move it to the internal C API (pycore_call.h).
* gh-106023: Update code using _PyObject_FastCall() (#106257)Victor Stinner2023-06-3010-453/+434
| | | Replace _PyObject_FastCall() calls with PyObject_Vectorcall().
* gh-106210 Remove Emscripten import trampoline (#106211)Hood Chatham2023-06-304-19/+4
| | | | | It's no longer necessary. Co-authored-by: Brett Cannon <brett@python.org>
* GH-106152: Add PY_THROW event to cProfile (GH-106161)Tian Gao2023-06-293-0/+22
|
* GH-106008: Make implicit boolean conversions explicit (GH-106003)Brandt Bucher2023-06-2920-1145/+1721
|
* GH-106250: Support insts using one cache entry and no oparg (GH-106252)Guido van Rossum2023-06-291-18/+18
|
* gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)hms2023-06-2916-702/+733
| | | | | | This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
* Fix possible refleak in CodeType.replace() (GH-106243)Serhiy Storchaka2023-06-291-0/+1
| | | A reference to c_code was leaked if PySys_Audit() failed.
* gh-106078: Convert `_decimal` types to heap types (#106079)Charlie Zhao2023-06-293-390/+433
| | | | | | | | | | | | | | - Establish global state struct - Convert static types to heap types and add them to global state: * PyDecContextManager_Type * PyDecContext_Type * PyDecSignalDictMixin_Type * PyDec_Type - Add to global state: * PyDecSignalDict_Type * DecimalTuple Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-89392: Make test_decimal discoverable (GH-106209)Serhiy Storchaka2023-06-291-133/+146
|
* gh-106033: Get rid of PyDict_GetItem in _PyFunction_FromConstructor (GH-106044)Serhiy Storchaka2023-06-291-4/+6
|
* gh-101006: Improve error handling when read marshal data (GH-101007)Serhiy Storchaka2023-06-292-61/+72
| | | | | | | | * EOFError no longer overrides other errors such as MemoryError or OSError at the start of the object. * Raise more relevant error when the NULL object occurs as a code object component. * Minimize an overhead of calling PyErr_Occurred().
* gh-106194: Rename duplicated tests in `test_curses` (#106196)Nikita Sobolev2023-06-281-4/+11
|
* GH-106214: Fix `test_opcache` to skip threaded tests on non-threaded ↵Hood Chatham2023-06-281-0/+2
| | | | | platforms (GH-106166) This skips the test added in GH-105953 on threadless builds.
* gh-104584: Emit macro expansions to opcode_metadata.h (#106163)Guido van Rossum2023-06-284-78/+153
| | | | | | | This produces longer traces (superblocks?). Also improved debug output (uop names are now printed instead of numeric opcodes). This would be simpler if the numeric opcode values were generated by generate_cases.py, but that's another project. Refactored some code in generate_cases.py so the essential algorithm for cache effects is only run once. (Deciding which effects are used and what the total cache size is, regardless of what's used.)
* gh-106197: Deduplicate tests in `test_buffer` (#106198)Nikita Sobolev2023-06-281-1/+1
|
* gh-101100: Fix reference to `parse_args` in `optparse.rst` (#105265)F3eQnxN3RriK2023-06-281-24/+27
|
* gh-106200: Remove unused imports (#106201)Nikita Sobolev2023-06-284-5/+0
|