summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-96821: Add config option `--with-strict-overflow` (#96823)Matthias Görgens2023-03-044-18/+122
| | | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Shantanu <hauntsaninja@gmail.com>
* gh-101992: update pstlib module documentation (#102133)Dustin Rodrigues2023-03-041-7/+16
|
* gh-63301: Set exit code when tabnanny CLI exits on error (#7699)Jaysinh Shukla2023-03-043-13/+21
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-101863: Fix wrong comments in EUC-KR codec (gh-102417)Byeongmin Choi2023-03-042-2/+3
|
* gh-102302 Micro-optimize `inspect.Parameter.__hash__` (#102303)Gouvernathor2023-03-042-1/+2
|
* gh-102179: Fix `os.dup2` error reporting for negative fds (#102180)Alexey Izbyshev2023-03-043-5/+21
|
* gh-101892: Fix `SystemError` when a callable iterator call exhausts the ↵Raj2023-03-043-2/+30
| | | | | iterator (#101896) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* Remove unused internal macros (#102415)Mark Dickinson2023-03-041-15/+0
| | | | | Since #101826 was merged, the internal macro `_Py_InIntegralTypeRange` is unused, as are its supporting macros `_Py_IntegralTypeMax` and `_Py_IntegralTypeMin`. This PR removes them. Note that `_Py_InIntegralTypeRange` doesn't actually work as advertised - it's not a safe way to avoid undefined behaviour in an integer to double conversion.
* gh-102021 : Allow multiple input files for interpreter loop generator (#102022)Jacob Bower2023-03-046-41/+105
| | | The input files no longer use `-i`.
* Add import of `unittest.mock.Mock` in documentation (#102346)Wagner Alberto2023-03-031-0/+1
|
* gh-102383: [docs] Arguments of `PyObject_CopyData` are `PyObject *` (#102390)Nikita Sobolev2023-03-031-1/+1
|
* gh-101754: Document that Windows converts keys in `os.environ` to uppercase ↵Owain Davies2023-03-031-0/+5
| | | | (GH-101840)
* gh-102324: Improve tests of `typing.override` (#102325)Nikita Sobolev2023-03-031-4/+95
| | | Fixes #101564
* gh-102371: move _Py_Mangle from compile.c to symtable.c (#102372)Irit Katriel2023-03-025-76/+76
|
* Fix typos in documentation and comments (GH-102374)Michael K2023-03-024-5/+5
| | | | | | | | Found some duplicate `to`s in the documentation and some code comments and fixed them. [Misc/NEWS.d/3.12.0a1.rst](https://github.com/python/cpython/blob/ed55c69ebd74178115cd8b080f7f8e7588cd5fda/Misc/NEWS.d/3.12.0a1.rst) also contains two duplicate `to`s, but I wasn't sure if it's ok to touch that file. Looks auto generated. I'm happy to amend the PR if requested. :) Automerge-Triggered-By: GH:AlexWaygood
* gh-101101: Fix test_code_extra to reset value for refleak test (gh-102350)Dong-hee Na2023-03-021-1/+5
|
* gh-95672: Update memory_watchdog to use test.support.get_pagesize (gh-102365)Hyunkyun Moon2023-03-021-9/+2
|
* gh-102088 Optimize iter_index itertools recipe (GH-102360)Stefan Pochmann2023-03-022-3/+9
|
* gh-95672 skip fcntl when pipesize is smaller than pagesize (gh-102163)Hyunkyun Moon2023-03-014-3/+26
|
* gh-102344: Reimplement winreg QueryValue / SetValue using QueryValueEx / ↵Max Bachmann2023-03-012-60/+124
| | | | | SetValueEx (GH-102345) The newer APIs are more widely available than the old ones, and are called in a way to preserve functionality.
* gh-102336: Ensure CancelIoEx result is not ignored (GH-102347)Max Bachmann2023-03-011-1/+1
| | | fix ignored return value
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in ↵Irit Katriel2023-03-011-34/+24
| | | | tkinter module (#102319)
* Doc: Fix minor error in ePub (GH-100614)Inada Naoki2023-03-011-3/+3
| | | Fix issue reported https://mail.python.org/archives/list/docs@python.org/message/KE7OIAO53P4XRC4ZOWPDHA63ZQJCHEC3/
* gh-102336: Remove code specifically for handling Windows 7 (GH-102337)Max Bachmann2023-03-017-159/+56
|
* gh-99108: Add missing md5/sha1 defines to Modules/Setup (#102308)Anthony Sottile2023-02-281-2/+2
|
* gh-100227: Move _str_replace_inf to PyInterpreterState (gh-102333)Eric Snow2023-02-284-14/+20
| | | https://github.com/python/cpython/issues/100227
* gh-100227: Move the dtoa State to PyInterpreterState (gh-102331)Eric Snow2023-02-286-17/+39
| | | https://github.com/python/cpython/issues/100227
* GH-102305: Expand some macros in generated_cases.c.h (#102309)Guido van Rossum2023-02-282-452/+441
| | | | * Emit straight stack_pointer[-i] instead of PEEK(i), POKE(i, ...) * Expand JUMPBY() and NEXTOPARG(), and fix a perf bug
* Migrate to new PSF mailgun account (#102284)Ee Durbin2023-02-281-3/+3
| | | | | Our legacy mailgun account is associated with a parent rackspace account that I am trying to decomission. The necessary secret has been added to the GitHub Actions Secrets already, so this is ready to go on approval.
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-02-288-72/+42
| | | | (in Python/) (#102193)
* GH-90744: Fix erroneous doc links in the sys module (#101319)Furkan Onder2023-02-281-49/+49
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-87092: Make jump target label equal to the offset of the target in the ↵Irit Katriel2023-02-284-108/+111
| | | | instructions sequence (#102093)
* gh-101101: Unstable C API tier (PEP 689) (GH-101102)Petr Viktorin2023-02-2818-29/+358
|
* IDLE: Simplify DynOptionsMenu __init__code (#101371)JosephSBoyle2023-02-281-14/+11
| | | | | | Refactor DynOptionMenu's initializer to not copy kwargs dict and use subscripting; improve its htest. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-101561: Add typing.override decorator (#101564)Steven Troxler2023-02-276-0/+127
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101825: Clarify that as_integer_ratio() output is always normalized (#101843)Sergey B Kirpichev2023-02-277-27/+21
| | | | | | | | | Make docstrings for `as_integer_ratio` consistent across types, and document that the returned pair is always normalized (coprime integers, with positive denominator). --------- Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* gh-101773: Optimize creation of Fractions in private methods (#101780)Sergey B Kirpichev2023-02-274-34/+50
| | | | | | This PR adds a private `Fraction._from_coprime_ints` classmethod for internal creations of `Fraction` objects, replacing the use of `_normalize=False` in the existing constructor. This speeds up creation of `Fraction` objects arising from calculations. The `_normalize` argument to the `Fraction` constructor has been removed. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* gh-102251: Updates to test_imp Toward Fixing Some Refleaks (gh-102254)Eric Snow2023-02-274-299/+952
| | | | | | | This is related to fixing the refleaks introduced by commit 096d009. I haven't been able to find the leak yet, but these changes are a consequence of that effort. This includes some cleanup, some tweaks to the existing tests, and a bunch of new test cases. The only change here that might have impact outside the tests in question is in imp.py, where I update imp.load_dynamic() to use spec_from_file_location() instead of creating a ModuleSpec directly. Also note that I've updated the tests to only skip if we're checking for refleaks (regrtest's --huntrleaks), whereas in gh-101969 I had skipped the tests entirely. The tests will be useful for some upcoming work and I'd rather the refleaks not hold that up. (It isn't clear how quickly we'll be able to fix the leaking code, though it will certainly be done in the short term.) https://github.com/python/cpython/issues/102251
* gh-102296 Document that inspect.Parameter kinds support ordering (GH-102297)Gouvernathor2023-02-271-2/+3
| | | Automerge-Triggered-By: GH:AlexWaygood
* gh-102250: Fix double-decref in COMPARE_AND_BRANCH error case (GH-102287)Dennis Sweeney2023-02-274-6/+23
|
* gh-101100: Fix sphinx warnings in `types` module (#102274)Nikita Sobolev2023-02-271-1/+1
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-91038: Change default argument value to `False` instead of `0` (#31621)Rotzbua2023-02-273-2/+3
| | | | | | The argument is used as a switch and corresponds to a boolean logic. Therefore it is more intuitive to use the corresponding constant `False` as default value instead of the integer `0`. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-101765: unicodeobject: use Py_XDECREF correctly (#102283)Jelle Zijlstra2023-02-261-1/+1
|
* [doc] Improve grammar/fix missing word (GH-102060)VMan2023-02-262-2/+2
|
* gh-102259: Fix re doc issue regarding right square brackets (#102264)Skip Montanaro2023-02-261-1/+2
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-101765: Fix refcount issues in list and unicode pickling (#102265)Jelle Zijlstra2023-02-262-1/+11
| | | Followup from #101769.
* gh-101100: Fix sphinx warnings in `typing` module docs (#102260)Nikita Sobolev2023-02-251-1/+1
|
* gh-102252: Improve coverage of test_bool.py (#102253)Eclips42023-02-251-0/+6
| | | Add tests for conversion from bool to complex.
* gh-102209: Sync with zipp 3.15 moving complexity tests into dedicated module ↵Jason R. Coombs2023-02-257-51/+87
| | | | | (#102232) Sync with jaraco/zipp@757a4e1a.
* asyncio docs: Fix dangling hyphen (#102227)Jelle Zijlstra2023-02-251-2/+2
| | | Currently this gets rendered with a dangling hyphen.