Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register code generator #47

Closed
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Nov 18, 2022

  1. pythonGH-98831: Refactor and fix cases generator (python#99526)

    Also complete cache effects for BINARY_SUBSCR family.
    gvanrossum authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    4f5e1cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a220c6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8c6113 View commit details
    Browse the repository at this point in the history
  4. Doc: Fix broken link to emscripten networking website (python#99531)

    There was an extra `>` in the url.
    haron authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    ed206e3 View commit details
    Browse the repository at this point in the history
  5. Doc: Replace question mark with fullstop (python#99558)

    The sentence "Set the LC_CTYPE locale to the user preferred locale." should end with a period
    instead of a question mark.
    rffontenelle authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    0e09d2c View commit details
    Browse the repository at this point in the history
  6. pythongh-85073: Add some missing links to source (pythonGH-99363)

    Add some missing links to source from Python docs
    slateny authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    27d8dc2 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2022

  1. pythongh-99284: [ctypes] remove `_use_broken_old_ctypes_structure_se…

    …mantics_` (pythonGH-99285)
    
    It was untested and undocumented. No code has been found in the wild that ever used it.
    sobolevn authored Nov 19, 2022
    Configuration menu
    Copy the full SHA
    a3360fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    858cb79 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0e1f9c View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2022

  1. pythongh-99211: Point to except/except* on syntax errors when mixing …

    …them (pythonGH-99215)
    
    Automerge-Triggered-By: GH:lysnikolaou
    lysnikolaou authored Nov 20, 2022
    Configuration menu
    Copy the full SHA
    9c4232a View commit details
    Browse the repository at this point in the history
  2. pythongh-61460: Add a comment describing the multiprocessing.connecti…

    …on protocol (pythongh-99623)
    
    Describe the multiprocessing connection protocol.
    
    It isn't a good protocol, but it is what it is.  This way we can more
    easily reason about making changes to it in a backwards compatible way.
    gpshead authored Nov 20, 2022
    Configuration menu
    Copy the full SHA
    abf5b6f View commit details
    Browse the repository at this point in the history
  3. pythongh-99581: Fix a buffer overflow in the tokenizer when copying l…

    …ines that fill the available buffer (python#99605)
    pablogsal authored Nov 20, 2022
    Configuration menu
    Copy the full SHA
    e13d1d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d8da23 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. pythongh-99337: Fix compile errors with gcc 12 on macOS (python#99470)

    Fix a number of compile errors with GCC-12 on macOS:
    
    1. In pylifecycle.c the compile rejects _Pragma within a declaration
    2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS
    3. _ctypes assumed that __builtin_available is always present on macOS
    ronaldoussoren authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    cdde29d View commit details
    Browse the repository at this point in the history
  2. pythonGH-95815: Document less specific error for os.remove (python#99571

    )
    
    os.remove can raise PermissionError instead of IsADirectoryError,
    when the object to be removed is a directory (in particular on
    macOS).
    
    This reverts a change done in python#14262.
    ronaldoussoren authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    1cae31d View commit details
    Browse the repository at this point in the history
  3. pythongh-99578: Fix refleak in _imp.create_builtin() (python#99642)

    Fix a reference bug in _imp.create_builtin() after the creation of
    the first sub-interpreter for modules "builtins" and "sys".
    vstinner authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    cb2ef8b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    653e563 View commit details
    Browse the repository at this point in the history
  5. pythongh-96002: Add functional test for Argument Clinic (python#96178)

    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    3 people authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    c450c8c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    49e554d View commit details
    Browse the repository at this point in the history
  7. pythongh-99659: Use correct exceptions in sqlite3 bigmem tests (pytho…

    …n#99660)
    
    The tests in question were added in 0eec627 by Serhiy. Apparently,
    sqlite3 changed exceptions raised in those cases in the mean time but
    the tests never ran because they require a high `-M` setting in the
    test runner.
    ambv authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    2781ec9 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. Configuration menu
    Copy the full SHA
    1bf983c View commit details
    Browse the repository at this point in the history
  2. pythongh-47146: Soft-deprecate structmember.h, expose its contents vi…

    …a Python.h (pythonGH-99014)
    
    The ``structmember.h`` header is deprecated, though it continues to be available
    and there are no plans to remove it. There are no deprecation warnings. Old code
    can stay unchanged (unless the extra include and non-namespaced macros bother
    you greatly). Specifically, no uses in CPython are updated -- that would just be
    unnecessary churn.
    The ``structmember.h`` header is deprecated, though it continues to be
    available and there are no plans to remove it.
    
    Its contents are now available just by including ``Python.h``,
    with a ``Py`` prefix added if it was missing:
    
    - `PyMemberDef`, `PyMember_GetOne` and`PyMember_SetOne`
    - Type macros like `Py_T_INT`, `Py_T_DOUBLE`, etc.
      (previously ``T_INT``, ``T_DOUBLE``, etc.)
    - The flags `Py_READONLY` (previously ``READONLY``) and
      `Py_AUDIT_READ` (previously all uppercase)
    
    Several items are not exposed from ``Python.h``:
    
    - `T_OBJECT` (use `Py_T_OBJECT_EX`)
    - `T_NONE` (previously undocumented, and pretty quirky)
    - The macro ``WRITE_RESTRICTED`` which does nothing.
    - The macros ``RESTRICTED`` and ``READ_RESTRICTED``, equivalents of
      `Py_AUDIT_READ`.
    - In some configurations, ``<stddef.h>`` is not included from ``Python.h``.
      It should be included manually when using ``offsetof()``.
    
    The deprecated header continues to provide its original
    contents under the original names.
    Your old code can stay unchanged, unless the extra include and non-namespaced
    macros bother you greatly.
    
    There is discussion on the issue to rename `T_PYSSIZET` to `PY_T_SSIZE` or
    similar. I chose not to do that -- users will probably copy/paste that with any
    spelling, and not renaming it makes migration docs simpler.
    
    
    Co-Authored-By: Alexander Belopolsky <abalkin@users.noreply.github.com>
    Co-Authored-By: Matthias Braun <MatzeB@users.noreply.github.com>
    3 people authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    4d82f62 View commit details
    Browse the repository at this point in the history
  3. pythonGH-97001: Release GIL in termios extension (python#99503)

    Without releasing the GIL calls to termios APIs might block the entire interpreter.
    ronaldoussoren authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    959ba45 View commit details
    Browse the repository at this point in the history
  4. pythonGH-92892: Add section about variadic functions to ctypes docume…

    …ntation (python#99529)
    
    On some platforms, and in particular macOS/arm64, the calling
    convention for variadic arguments is different from the regular
    calling convention. Add a section to the documentation to document
    this.
    ronaldoussoren authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    bc3a11d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1acdfec View commit details
    Browse the repository at this point in the history
  6. pythongh-99537: Use Py_SETREF() function in longobject C code (python…

    …#99655)
    
    Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
    in longobject.c and _testcapi/long.c.
    vstinner authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    20d9749 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3db0a21 View commit details
    Browse the repository at this point in the history
  8. pythongh-99537: Use Py_SETREF() function in C code (python#99657)

    Fix potential race condition in code patterns:
    
    * Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
    * Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);"
    * Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);"
    
    Other changes:
    
    * Replace "old = var; var = new; Py_DECREF(var)"
      with "Py_SETREF(var, new);"
    * Replace "old = var; var = new; Py_XDECREF(var)"
      with "Py_XSETREF(var, new);"
    * And remove the "old" variable.
    vstinner authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    135ec7c View commit details
    Browse the repository at this point in the history
  9. pythongh-99537: Use Py_SETREF() function in C code (python#99656)

    Fix potential race condition in code patterns:
    
    * Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
    * Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);"
    * Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);"
    
    Other changes:
    
    * Replace "old = var; var = new; Py_DECREF(var)"
      with "Py_SETREF(var, new);"
    * Replace "old = var; var = new; Py_XDECREF(var)"
      with "Py_XSETREF(var, new);"
    * And remove the "old" variable.
    vstinner authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    7e3f09c View commit details
    Browse the repository at this point in the history
  10. pythongh-99537: Use Py_CLEAR() function in C code (python#99686)

    Replace "Py_XDECREF(var); var = NULL;" with "Py_CLEAR(var);".
    
    Don't replace "Py_DECREF(var); var = NULL;" with "Py_CLEAR(var);". It
    would add an useless "if (var)" test in code path where var cannot be
    NULL.
    vstinner authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    9a91182 View commit details
    Browse the repository at this point in the history
  11. pythongh-88863: Clear ref cycles to resolve leak when asyncio.open_co…

    …nnection raises (python#95739)
    
    Break reference cycles to resolve memory leak, by
    removing local exception and future instances from the frame
    frostbyte134 authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    995f617 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d15b9f1 View commit details
    Browse the repository at this point in the history
  13. pythongh-99645: Fix a bug in handling class cleanups in unittest.Test…

    …Case (pythonGH-99646)
    
    Now addClassCleanup() uses separate lists for different TestCase subclasses,
    and doClassCleanups() only cleans up the particular class.
    serhiy-storchaka authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    c210213 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1b2de89 View commit details
    Browse the repository at this point in the history
  15. Update Visual Studio solution to build all extension modules on F5 (p…

    …ythonGH-99667)
    
    Without these "forward" dependencies, VS would only build as far as necessary to launch the selected project.
    zooba authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    5d41833 View commit details
    Browse the repository at this point in the history
  16. pythongh-99146 struct module documentation should have more predictab…

    …le examples/warnings (pythonGH-99141)
    
    * nail down a couple examples to have more predictable output
    
    * update a number of things, but this is really just a stash...
    
    * added an applications section to describe typical uses for native and machine-independent formats
    
    * make sure all format strings use a format prefix character
    
    * responding to comments from @gpshead. Not likely finished yet.
    
    * This got more involved than I expected...
    
    * respond to several PR comments
    * a lot of wordsmithing
    * try and be more consistent in use of ``x`` vs ``'x'``
    * expand examples a bit
    * update the "see also" to be more up-to-date
    * original examples relied on import * so present all examples as if
    
    * reformat based on @gpshead comment (missed before)
    
    * responding to comments
    
    * missed this
    
    * one more suggested edit
    
    * wordsmithing
    smontanaro authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    22d91c1 View commit details
    Browse the repository at this point in the history
  17. pythongh-88226: Emit TARGET labels in Python/ceval.c when debugging, …

    …even if computed gotos aren't enabled (pythonGH-98265)
    
    Keep target labels when debugging, but don't warn about lack of use.
    
    Co-authored-by: Eryk Sun <eryksun@gmail.com>
    smontanaro and eryksun authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    d4cf192 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f5fea22 View commit details
    Browse the repository at this point in the history
  19. pythongh-99300: Replace Py_INCREF() with Py_NewRef() in _elementtree.c (

    python#99696)
    
    * Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef()
      and Py_XNewRef() in Modules/_elementtree.c.
    * Make reference counting more explicit: don't steal implicitly a
      reference on PyList_SET_ITEM(), use Py_NewRef() instead.
    * Replace PyModule_AddObject() with PyModule_AddObjectRef().
    vstinner authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    f1a4a6a View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2022

  1. pythonGH-98831: Add macro and op and their implementation to DSL (p…

    …ython#99495)
    
    Newly supported interpreter definition syntax:
    - `op(NAME, (input_stack_effects -- output_stack_effects)) { ... }`
    - `macro(NAME) = OP1 + OP2;`
    
    Also some other random improvements:
    - Convert `WITH_EXCEPT_START` to use stack effects
    - Fix lexer to balk at unrecognized characters, e.g. `@`
    - Fix moved output names; support object pointers in cache
    - Introduce `error()` method to print errors
    - Introduce read_uint16(p) as equivalent to `*p`
    
    Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
    gvanrossum and brandtbucher authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    8f18ac0 View commit details
    Browse the repository at this point in the history
  2. pythonGH-95283: Add note about compilers in Mac/README.txt (python#99506

    )
    
    The build machinery assumes that the compiler that's used
    to build on macOS includes an SDK that's at least as new
    as the OS version on the build machine. Explicitly mention
    this in Mac/README.txt.
    ronaldoussoren authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    8f024a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d9183c View commit details
    Browse the repository at this point in the history
  4. pythongh-99537: Use Py_SETREF(var, NULL) in C code (python#99687)

    Replace "Py_DECREF(var); var = NULL;" with "Py_SETREF(var, NULL);".
    vstinner authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    81f7359 View commit details
    Browse the repository at this point in the history
  5. pythongh-79315: Add Include/cpython/memoryobject.h header (python#99723)

    Move non-limited C API from Include/memoryobject.h to a new
    Include/cpython/memoryobject.h header file.
    vstinner authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    55bad19 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    71a4a2d View commit details
    Browse the repository at this point in the history
  7. Upload NEWS file as artifact (python#30419)

    Co-authored-by: Éric <earaujo@caravan.coop>
    hugovk and merwok authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    57dfb1c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c69cfcd View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. pythongh-96828: Add an ssl.OP_ENABLE_KTLS option (pythonGH-96830)

    Expose the constant when OpenSSL defines it.
    illia-v authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    9dc0836 View commit details
    Browse the repository at this point in the history
  2. pythonGH-66285: fix forking in asyncio (python#99539)

    `asyncio` now does not shares event loop and signal wakeupfd in forked processes.
    kumaraditya303 authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    0c1fbc1 View commit details
    Browse the repository at this point in the history
  3. add Kumar Aditya as asyncio codeowner (pythonGH-99744)

    Automerge-Triggered-By: GH:kumaraditya303
    kumaraditya303 authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    c24397a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4d54a3 View commit details
    Browse the repository at this point in the history
  5. pythongh-98872: Fix a possible resource leak in Python 3.11.0 (python…

    …GH-99047)
    
    Issue: python#98872
    
    Automerge-Triggered-By: GH:kumaraditya303
    SQLPATCH authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    4e5f2db View commit details
    Browse the repository at this point in the history
  6. pythongh-94808: [coverage] Add an asynchronous generator test where t…

    …he generator is already running (python#97672)
    zhanpon authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    5f4ae86 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ae185fd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    69f6cc7 View commit details
    Browse the repository at this point in the history
  9. pythongh-99240: Fix double-free bug in Argument Clinic str_converter …

    …generated code (pythonGH-99241)
    
    Fix double-free bug mentioned at python#99240,
    by moving memory clean up out of "exit" label.
    
    Automerge-Triggered-By: GH:erlend-aasland
    colorfulappl authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    8dbe08e View commit details
    Browse the repository at this point in the history
  10. pythonGH-79033: Fix asyncio.Server.wait_closed() (python#98582)

    It was a no-op when used as recommended (after close()).
    
    I had to debug one test (test__sock_sendfile_native_failure) --
    the cleanup sequence for the test fixture was botched.
    
    Hopefully that's not a portend of problems in user code --
    this has never worked so people may well be doing this wrong. :-(
    
    Co-authored-by: kumar aditya
    gvanrossum authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    5d09d11 View commit details
    Browse the repository at this point in the history
  11. pythonGH-66285: skip asyncio fork tests for platforms without md5 hash (

    python#99745)
    
    Such buildbots (at the time of writing, only "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x") cannot use multiprocessing with a fork server, so just skip the test there.
    kumaraditya303 authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    679d963 View commit details
    Browse the repository at this point in the history
  12. Fix rendering of audioop license in Doc/license.rst (pythonGH-99752)

    Also some cosmetic blank line additions for consistency with the
    formatting of the rest of the file.
    zware authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    b5b3904 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    351842b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0da7283 View commit details
    Browse the repository at this point in the history
  15. Revert "pythongh-98724: Fix Py_CLEAR() macro side effects" (python#99737

    )
    
    Revert "pythongh-98724: Fix Py_CLEAR() macro side effects (python#99100)"
    
    This reverts commit c03e05c.
    vstinner authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    3a803bc View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    b1dcdef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d386115 View commit details
    Browse the repository at this point in the history
  3. pythongh-96168: Add sqlite3 row factory how-to (python#99507)

    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    3 people authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    8749121 View commit details
    Browse the repository at this point in the history
  4. bpo-40882: Fix a memory leak in SharedMemory on Windows (pythonGH-20684)

    In multiprocessing.shared_memory.SharedMemory(), the temporary view
    returned by MapViewOfFile() should be unmapped when it is no longer
    needed.
    ZackerySpytz authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    85c128e View commit details
    Browse the repository at this point in the history
  5. Fix typo on inline comment for email.generator (pythonGH-98210)

    Trivial change to comment - no issue or new entry necessary
    garyd203 authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    5d4d831 View commit details
    Browse the repository at this point in the history
  6. pythongh-64019: Have attribute table in inspect docs link to module…

    … attributes instead of listing them (pythonGH-98116)
    
    Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
    slateny and MichaelAnckaert authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    7d2dcc5 View commit details
    Browse the repository at this point in the history
  7. pythongh-99029: Fix handling of `PureWindowsPath('C:\<blah>').relativ…

    …e_to('C:')` (pythonGH-99031)
    
    `relative_to()` now treats naked drive paths as relative. This brings its
    behaviour in line with other parts of pathlib, and with `ntpath.relpath()`,
    and so allows us to factor out the pathlib-specific implementation.
    barneygale authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    ae234fb View commit details
    Browse the repository at this point in the history
  8. pythongh-98724: Fix warnings on Py_SETREF() usage (python#99781)

    Cast argument to the expected type.
    vstinner authored Nov 25, 2022
    Configuration menu
    Copy the full SHA
    5556d3e View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2022

  1. Fix typo in __match_args__ doc (python#99785)

    A opy of python#98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.
    terryjreedy authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    a86d854 View commit details
    Browse the repository at this point in the history
  2. pythonGH-95896: posixmodule.c: fix osdefs.h inclusion to not depend o…

    …n compiler (python#95897)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    TheShermanTanker and zooba authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    ec2b76a View commit details
    Browse the repository at this point in the history
  3. pythongh-99502: mention bytes-like objects as input in `secrets.compa…

    …re_digest` (pythonGH-99512)
    
    Now it is in sync with https://docs.python.org/3/library/hmac.html#hmac.compare_digest
    It is the same function, just re-exported. So, I guess they should mention the same input types.
    sobolevn authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    47d673d View commit details
    Browse the repository at this point in the history
  4. pythongh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declarat…

    …ion warnings in configure.ac (python#99406)
    
    Follow up to 12078e7.
    thesamesam authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    e35ca41 View commit details
    Browse the repository at this point in the history
  5. pythongh-97966: Restore prior expectation that uname_result._fields a…

    …nd ._asdict would include the processor. (pythongh-98343)
    jaraco authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    dc063a2 View commit details
    Browse the repository at this point in the history
  6. pythongh-98098: Create packages from zipfile and test_zipfile (python…

    …gh-98103)
    
    * pythongh-98098: Move zipfile into a package.
    
    * Moved test_zipfile to a package
    
    * Extracted module for test_path.
    
    * Add blurb
    
    * Add jaraco as owner of zipfile.Path.
    
    * Synchronize with minor changes found at jaraco/zipp@d9e7f4352d.
    jaraco authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    7796d31 View commit details
    Browse the repository at this point in the history
  7. pythongh-91078: Return None from TarFile.next when the tarfile is emp…

    …ty (pythonGH-91850)
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    dignissimus and iritkatriel authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    78365b8 View commit details
    Browse the repository at this point in the history
  8. Fix zipfile packaging after pythonGH-98103 (pythonGH-99797)

    * Add zipfile and test_zipfile to list of packages. Fixes regression introduced in python#98103.
    
    * Restore support for py -m test.test_zipfile
    jaraco authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    003f341 View commit details
    Browse the repository at this point in the history
  9. pythongh-99795: Fix typo in importlib.resources.abc (pythonGH-99796)

    Changing TraversableReader to TraversableResources at one place of the documentation.
    
    See python#99795 for more details.
    busywhitespace authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    5f88982 View commit details
    Browse the repository at this point in the history
  10. pythongh-98108: Add limited pickleability to zipfile.Path (pythonGH-9…

    …8109)
    
    * pythongh-98098: Move zipfile into a package.
    
    * Moved test_zipfile to a package
    
    * Extracted module for test_path.
    
    * Add blurb
    
    * Add jaraco as owner of zipfile.Path.
    
    * Synchronize with minor changes found at jaraco/zipp@d9e7f4352d.
    
    * pythongh-98108: Sync with zipp 3.9.1 adding pickleability.
    jaraco authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    93f22d3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7f00574 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    25bc115 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    024ac54 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2022

  1. Configuration menu
    Copy the full SHA
    191708c View commit details
    Browse the repository at this point in the history
  2. bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (pyth…

    …on#24659)
    
    The docs stated that PyImport_ImportFrozenModuleObject() returns a
    new reference, but it actually returns an int.
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    ZackerySpytz and kumaraditya303 authored Nov 27, 2022
    Configuration menu
    Copy the full SHA
    62a5dc1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    22860db View commit details
    Browse the repository at this point in the history
  4. pythongh-85988: Change documentation for sys.float_info.rounds (pytho…

    …nGH-99675)
    
    * Change documentation for sys.float_info.rounds
    
    Change the documentation for sys.float_info.rounds to remove
    references to C99 section 5.2.4.2.2 and instead place the
    available values inline.
    
    * Correction to previous documentation change
    
    Newlines were not preserved in generated HTML on previous
    commit. I have changes the list to a comma-separated list
    of values and their meanings.
    
    * Clarify source for value of FLT_ROUNDS
    
    Clarify the source of the FLT_ROUNDS value and
    change 'floating-point addition' to 'floating-point
    arithmetic' to indicate that the rounding mode
    applies to all arithmetic operations.
    tbwolfe authored Nov 27, 2022
    Configuration menu
    Copy the full SHA
    6562939 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9c9f085 View commit details
    Browse the repository at this point in the history
  6. pythonGH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" wor…

    …ks on macOS (python#99768)
    
    On macOS all file descriptors for a particular file in /dev/fd
    share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
    more like ``dup(9)`` than a regular open.
    
    This causes problems when a user tries to run "/dev/fd/9" as a script
    because zipimport changes the file offset to try to read a zipfile
    directory. Therefore change zipimport to reset the file offset after
    trying to read the zipfile directory.
    ronaldoussoren authored Nov 27, 2022
    Configuration menu
    Copy the full SHA
    d08fb25 View commit details
    Browse the repository at this point in the history
  7. pythongh-99815: remove unused 'invalid' sentinel value and code that …

    …checks for it in inspect.signature parsing (pythonGH-21104)
    asottile authored Nov 27, 2022
    Configuration menu
    Copy the full SHA
    ac115b5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2653b82 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    969620d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dfc2732 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    276643e View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. pythongh-51524: Fix bug when calling trace.CoverageResults with valid…

    … infile (python#99629)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    furkanonder and terryjreedy authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    594de16 View commit details
    Browse the repository at this point in the history
  2. pythongh-99249: Clarify "read-only" slots tp_bases & tp_mro (pythonGH…

    …-99342)
    
    These slots are marked "should be treated as read-only" in the
    table at the start of the document.  That doesn't say anything about
    setting them in the static struct.
    
    `tp_bases` docs did say that it should be ``NULL`` (TIL!). If you
    ignore that, seemingly nothing bad happens. However, some slots
    may not be inherited, depending on which sub-slot structs are present.
    (FWIW, NumPy sets tp_bases and is affected by the quirk -- though to
    be fair, its DUAL_INHERIT code probably predates tp_bases docs, and
    also the result happens to be benign.)
    
    This patch makes things explicit.
    It also makes the summary table legend easier to scan.
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    encukou and kumaraditya303 authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    219696a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    492dc02 View commit details
    Browse the repository at this point in the history
  4. bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (

    python#18640)
    
    Co-authored-by: Oren Milman <orenmn@gmail.com>
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    3 people authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    53eef27 View commit details
    Browse the repository at this point in the history
  5. pythongh-89653: PEP 670: Convert macros to functions (python#99843)

    Convert macros to static inline functions to avoid macro pitfalls,
    like duplication of side effects:
    
    * DK_ENTRIES()
    * DK_UNICODE_ENTRIES()
    * PyCode_GetNumFree()
    * PyFloat_AS_DOUBLE()
    * PyInstanceMethod_GET_FUNCTION()
    * PyMemoryView_GET_BASE()
    * PyMemoryView_GET_BUFFER()
    * PyMethod_GET_FUNCTION()
    * PyMethod_GET_SELF()
    * PySet_GET_SIZE()
    * _PyHeapType_GET_MEMBERS()
    
    Changes:
    
    * PyCode_GetNumFree() casts PyCode_GetNumFree.co_nfreevars from int
      to Py_ssize_t to be future proof, and because Py_ssize_t is
      commonly used in the C API.
    * PyCode_GetNumFree() doesn't cast its argument: the replaced macro
      already required the exact type PyCodeObject*.
    * Add assertions in some functions using "CAST" macros to check
      the arguments type when Python is built with assertions
      (debug build).
    * Remove an outdated comment in unicodeobject.h.
    vstinner authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    02f72b8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6541798 View commit details
    Browse the repository at this point in the history
  7. Use _Py_RVALUE() in macros (python#99844)

    The following macros are modified to use _Py_RVALUE(), so they can no
    longer be used as l-value:
    
    * DK_LOG_SIZE()
    * _PyCode_CODE()
    * _PyList_ITEMS()
    * _PyTuple_ITEMS()
    * _Py_SLIST_HEAD()
    * _Py_SLIST_ITEM_NEXT()
    
    _PyCode_CODE() is private and other macros are part of the internal
    C API.
    vstinner authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    7bae15c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ca3e611 View commit details
    Browse the repository at this point in the history
  9. pythongh-99811: Use correct variable to search for time in format str…

    …ing (pythonGH-99812)
    
    Use correct variable to search for asctime
    cemysce authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    1d1bb95 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. pythongh-99344, pythongh-99379, pythongh-99382: Fix issues in substit…

    …ution of ParamSpec and TypeVarTuple (pythonGH-99412)
    
    * Fix substitution of TypeVarTuple and ParamSpec together in user generics.
    
    * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases.
    
    * Check the number of arguments in substitution in user generics containing a
      TypeVarTuple and one or more TypeVar.
    serhiy-storchaka authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    8f2fb7d View commit details
    Browse the repository at this point in the history
  2. pythongh-99593: Add tests for Unicode C API (part 1) (pythonGH-99651)

    Add tests for functions corresponding to the str class methods.
    serhiy-storchaka authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    deaa8de View commit details
    Browse the repository at this point in the history
  3. pythonGH-91375: Port _asyncio static types to heap types and module…

    … state (python#99122)
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    kumaraditya303 and erlend-aasland authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    4cfc1b8 View commit details
    Browse the repository at this point in the history
  4. pythongh-99845: Change _PyDict_KeysSize() return type to size_t (pyth…

    …on#99848)
    
    * Change _PyDict_KeysSize() and shared_keys_usable_size() return type
      from signed (Py_ssize_t) to unsigned (size_t) type.
    * new_values() argument type is now unsigned (size_t).
    * init_inline_values() now uses size_t rather than int for the 'i'
      iterator variable.
    * type.__sizeof__() implementation now uses unsigned (size_t) type.
    vstinner authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    4246fe9 View commit details
    Browse the repository at this point in the history
  5. pythongh-99845: Clean up _PyObject_VAR_SIZE() usage (python#99847)

    * code_sizeof() now uses an unsigned type (size_t) to compute the result.
    * Fix _PyObject_ComputedDictPointer(): cast _PyObject_VAR_SIZE() to
      Py_ssize_t, rather than long: it's a different type on 64-bit Windows.
    * Clarify that _PyObject_VAR_SIZE() uses an unsigned type (size_t).
    vstinner authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    74d5f61 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    05dfc53 View commit details
    Browse the repository at this point in the history
  7. whatsnew-3.10: Mention PEP 647 in the Release highlights section. (py…

    …thon#99853)
    
    Mention PEP 647 in the Release highlights section.
    
    Also re-ordered the list so it matches the order in the details sections below.
    yilei authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    d74a588 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    052bc12 View commit details
    Browse the repository at this point in the history
  9. pythongh-82836: fix private network check (python#97733)

    Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
    JamoBox authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    ed39109 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8bb2303 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. pythongh-98253: Break potential reference cycles in external code wor…

    …sened by typing.py lru_cache (python#98591)
    wjakob authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    c314198 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59665d0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe17d35 View commit details
    Browse the repository at this point in the history
  4. pythongh-99824: Document that sqlite3.connect implicitly open a trans…

    …action if autocommit=False (python#99825)
    
    Authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    geryogam authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    19c3880 View commit details
    Browse the repository at this point in the history
  5. pythongh-99891: Fix infinite recursion in the tokenizer when showing …

    …warnings (pythonGH-99893)
    
    Automerge-Triggered-By: GH:pablogsal
    pablogsal authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    417206a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ac12e39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a694b82 View commit details
    Browse the repository at this point in the history
  8. pythonGH-99877)

    iritkatriel authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    18a6967 View commit details
    Browse the repository at this point in the history
  9. pythongh-99845: Use size_t type in __sizeof__() methods (python#99846)

    The implementation of __sizeof__() methods using _PyObject_SIZE() now
    use an unsigned type (size_t) to compute the size, rather than a signed
    type (Py_ssize_t).
    
    Cast explicitly signed (Py_ssize_t) values to unsigned type
    (Py_ssize_t).
    vstinner authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    85dd6cb View commit details
    Browse the repository at this point in the history
  10. pythongh-99845: PEP 670: Convert PyObject macros to functions (python…

    …#99850)
    
    Convert macros to static inline functions to avoid macro pitfalls,
    like duplication of side effects:
    
    * _PyObject_SIZE()
    * _PyObject_VAR_SIZE()
    
    The result type is size_t (unsigned).
    vstinner authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    131801d View commit details
    Browse the repository at this point in the history
  11. pythonGH-99905: Fix output of misses in summarize_stats.py execution …

    …counts (pythonGH-99906)
    
    This was an indentation error introduced in 2844aa6
    mdboom authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    bf94c65 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9628136 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7877642 View commit details
    Browse the repository at this point in the history
  14. pythonGH-98906 re module: search() vs. match() section sh…

    …ould mention ```fullmatch()``` (pythonGH-98916)
    
    Mention fullmatch along with search and match.
    ramvikrams authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    e0f91de View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2022

  1. Doc: Add summary line to isolation_level & autocommit sqlite3.connect…

    … params (python#99917)
    
    Add summary lines to isolation_level and autocommit connect() params
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    CAM-Gerlach and geryogam authored Dec 1, 2022
    Configuration menu
    Copy the full SHA
    d460c8e View commit details
    Browse the repository at this point in the history
  2. pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (

    pythonGH-99613)
    
    Previously *consumed was not set in this case.
    serhiy-storchaka authored Dec 1, 2022
    Configuration menu
    Copy the full SHA
    f08e52c View commit details
    Browse the repository at this point in the history
  3. pythongh-99894: Ensure the local names don't collide with the test fi…

    …le in traceback suggestion error checking (python#99895)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    pablogsal and vstinner authored Dec 1, 2022
    Configuration menu
    Copy the full SHA
    0563be2 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. pythonGH-91054: Add code object watchers API (pythonGH-99859)

    * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject
    
    Co-authored-by: Ye11ow-Flash <janshah@cs.stonybrook.edu>
    itamaro and Ye11ow-Flash authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    3c137dc View commit details
    Browse the repository at this point in the history
  2. pythongh-99741: Fix the Cross-Interpreter Data API (pythongh-99939)

    There were some minor issues that showed up while I was working on porting _xxsubinterpreters to multi-phase init. This fixes them.
    
    python#99741
    ericsnowcurrently authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    b4f3505 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab02262 View commit details
    Browse the repository at this point in the history
  4. pythongh-99741: Clean Up the _xxsubinterpreters Module (pythongh-99940)

    This cleanup up resolves a few subtle bugs and makes the implementation for multi-phase init much cleaner.
    
    python#99741
    ericsnowcurrently authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    0547a98 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2022

  1. Configuration menu
    Copy the full SHA
    acf9184 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee60156 View commit details
    Browse the repository at this point in the history
  3. pythongh-99934: test_marshal.py: add more elements in test_determinis…

    …tic_sets (pythonGH-99935)
    
    Existing elements do produce different output on x86_64, but they
    do not on x86. Let's make the data longer to ensure it differs.
    kanavin authored Dec 3, 2022
    Configuration menu
    Copy the full SHA
    c68573b View commit details
    Browse the repository at this point in the history
  4. bpo-15999: Accept arbitrary values for boolean parameters. (python#15609

    )
    
    builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves.
    serhiy-storchaka authored Dec 3, 2022
    Configuration menu
    Copy the full SHA
    a87c46e View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2022

  1. pythongh-85747: "Preface" section of asyncio-eventloop.rst: Switch to…

    … active voice and suggest other edits (python#99784)
    bskinn authored Dec 4, 2022
    Configuration menu
    Copy the full SHA
    bf26bdf View commit details
    Browse the repository at this point in the history
  2. pythongh-60203: Always pass True/False as boolean arguments in tests (p…

    …ythonGH-99983)
    
    Unless we explicitly test non-bool values.
    serhiy-storchaka authored Dec 4, 2022
    Configuration menu
    Copy the full SHA
    76f43fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1012dc1 View commit details
    Browse the repository at this point in the history
  4. pythongh-98458: unittest: bugfix for infinite loop while handling cha…

    …ined exceptions that contain cycles (python#98459)
    
    * Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks()
    * Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out)
    * adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes
    AlexTate authored Dec 4, 2022
    Configuration menu
    Copy the full SHA
    72ec518 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2ae894b View commit details
    Browse the repository at this point in the history
  6. pythongh-98248: Normalizing the error messages in function struct.pack (

    pythonGH-98252)
    
    Provide consistent and informative error messages in function struct.pack when its integral arguments are not in range.
    yanjs authored Dec 4, 2022
    Configuration menu
    Copy the full SHA
    854a878 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Configuration menu
    Copy the full SHA
    bdc93b8 View commit details
    Browse the repository at this point in the history
  2. pythongh-93464: [Enum] Add versionchanged tag (python#99997)

    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    ethanfurman and CAM-Gerlach authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    e3a3863 View commit details
    Browse the repository at this point in the history
  3. pythongh-100005: Skip test_script_as_dev_fd() on FreeBSD (python#100006)

    On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if
    fdescfs is not mounted (at /dev/fd).
    vstinner authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    038b151 View commit details
    Browse the repository at this point in the history
  4. pythongh-100008: Document Python build requirements (python#100009)

    Document also configure --without-freelists option added to Python
    3.11.
    vstinner authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    5ea052b View commit details
    Browse the repository at this point in the history
  5. pythongh-99892: test_unicodedata: skip test on download failure (pyth…

    …on#100011)
    
    Skip test_normalization() of test_unicodedata if it fails to download
    NormalizationTest.txt file from pythontest.net.
    vstinner authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    2488c1e View commit details
    Browse the repository at this point in the history
  6. pythongh-60203: Revert changes in cycle.__setstate__ (python#99982)

    In case if only True/False be supported as boolean arguments in future,
    we should continue to support 1/0 here.
    serhiy-storchaka authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    922a6cf View commit details
    Browse the repository at this point in the history
  7. pythongh-98680: Add PyBUF_* constants to the Limited API listing (pyt…

    …honGH-100018)
    
    ``PyBUF_*`` constants are marked as part of Limited API of Python 3.11+.
    These were available in 3.11.0 with `Py_LIMITED_API` defined for 3.11,
    and are necessary to use the buffer API. Omitting them in `stable_abi.toml`
    was a mistake.
    encukou authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    f247387 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    124ecd6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    51ee0a2 View commit details
    Browse the repository at this point in the history
  10. pythongh-99741: Implement Multi-Phase Init for the _xxsubinterpreters…

    … Module (pythongh-99742)
    
    _xxsubinterpreters is an internal module used for testing.
    
    python#99741
    ericsnowcurrently authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    530cc9d View commit details
    Browse the repository at this point in the history
  11. pythongh-100001: Omit control characters in http.server stderr logs. (p…

    …ython#100002)
    
    Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
    gpshead authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    d8ab0a4 View commit details
    Browse the repository at this point in the history
  12. Use sphinxext-opengraph to generate OpenGraph metadata (python#99931)

    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    hugovk and CAM-Gerlach authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    f49c735 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e9e63ad View commit details
    Browse the repository at this point in the history
  14. pythongh-100001: Also escape \s in http.server log messages. (python#…

    …100038)
    
    Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
    that it is technically possible to parse the line and reconstruct what the
    original data was.  Without this a \xHH is ambiguious as to if it is a hex
    replacement we put in or the characters r"\x" came through in the original
    request line.
    gpshead authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    7e29398 View commit details
    Browse the repository at this point in the history
  15. pythongh-100001: Remove doc typo, add versionadded (python#100042)

    pythongh-100001: Remove new doc typo, add versionadded.
    gpshead authored Dec 5, 2022
    Configuration menu
    Copy the full SHA
    bed15f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2022

  1. Configuration menu
    Copy the full SHA
    5c19050 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dc787e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5837e5f View commit details
    Browse the repository at this point in the history
  4. bpo-37860: re-add netlify.toml to set up deploy previews for docs (py…

    …thon#92852)
    
    * Revert "bpo-46184: remove `netlify.toml` (python#30272)"
    
    This reverts commit fbaf2e6.
    
    * Delete runtime.txt
    
    * Create runtime.txt
    
    * Delete runtime.txt
    
    * Update netlify.toml
    
    * Update netlify.toml
    
    * Add netlify badge
    
    * Update Doc/tools/templates/layout.html
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    
    * Update layout.html
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    epicfaace and hugovk authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    85d5a7e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b72014c View commit details
    Browse the repository at this point in the history
  6. pythongh-93453: No longer create an event loop in get_event_loop() (p…

    …ython#98440)
    
    asyncio.get_event_loop() now always return either running event loop or
    the result of get_event_loop_policy().get_event_loop() call. The latter
    should now raise an RuntimeError if no current event loop was set
    instead of creating and setting a new event loop.
    
    It affects also a number of asyncio functions and constructors which
    call get_event_loop() implicitly: ensure_future(), shield(), gather(),
    etc.
    
    DeprecationWarning is no longer emitted if there is no running event loop but
    the current event loop was set.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    serhiy-storchaka and ambv authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    fd38a2f View commit details
    Browse the repository at this point in the history
  7. Python 3.12.0a3

    Yhg1s committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    b6bd7ff View commit details
    Browse the repository at this point in the history
  8. Post 3.12.0a3

    Yhg1s committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    5da5aa4 View commit details
    Browse the repository at this point in the history
  9. pythongh-94943: [Enum] improve repr() when inheriting from a dataclass (

    pythonGH-99740)
    
    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    ethanfurman and CAM-Gerlach authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    679efbb View commit details
    Browse the repository at this point in the history
  10. PyUnicode_KIND() uses _Py_RVALUE() (python#100060)

    The PyUnicode_KIND() macro is modified to use _Py_RVALUE(), so it can
    no longer be used as a l-value.
    vstinner authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    abbe448 View commit details
    Browse the repository at this point in the history
  11. pythongh-100050: Fix an assertion error when raising unclosed parenth…

    …esis errors in the tokenizer (pythonGH-100065)
    
    Automerge-Triggered-By: GH:pablogsal
    pablogsal authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    97e7004 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. Configuration menu
    Copy the full SHA
    889b0b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7031275 View commit details
    Browse the repository at this point in the history
  3. pythongh-98724: Fix Py_CLEAR() macro side effects (python#99100) (pyt…

    …hon#100070)
    
    The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate
    their arguments once. If an argument has side effects, these side
    effects are no longer duplicated.
    
    Use temporary variables to avoid duplicating side effects of macro
    arguments. If available, use _Py_TYPEOF() to avoid type punning.
    Otherwise, use memcpy() for the assignment to prevent a
    miscompilation with strict aliasing caused by type punning.
    
    Add _Py_TYPEOF() macro: __typeof__() on GCC and clang.
    
    Add test_py_clear() and test_py_setref() unit tests to _testcapi.
    vstinner authored Dec 7, 2022
    Configuration menu
    Copy the full SHA
    b11a384 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    68e4129 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f3e97c9 View commit details
    Browse the repository at this point in the history
  6. pythongh-100072: only trigger netlify builds for doc changes (python#…

    …100074)
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    sobolevn and hugovk authored Dec 7, 2022
    Configuration menu
    Copy the full SHA
    d92407e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d47ffeb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    91a8e00 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. pythongh-100086: Add build info to test.libregrtest (python#100093)

    The Python test runner (libregrtest) now logs Python build information like
    "debug" vs "release" build, or LTO and PGO optimizations.
    vstinner authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    3c89202 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc8a868 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    90d5c9b View commit details
    Browse the repository at this point in the history
  4. pythongh-98030: socket: add missing TCP socket options (python#98031)

    A few TCP socket options have been added to the Linux kernel these last
    few years.
    
    This commit adds all the ones available in Linux 6.0:
    
      https://elixir.bootlin.com/linux/v6.0/source/include/uapi/linux/tcp.h#L91
    
    While at it, the TCP_FASTOPEN option has been moved lower in the list
    just to keep the same order as in tcp.h to ease future synchronisations.
    
    Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
    matttbe authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    cce8362 View commit details
    Browse the repository at this point in the history
  5. pythongh-100098: [Enum] insist on actual tuples, no subclasses, for a…

    …uto (pythonGH-100099)
    
    When checking for auto() instances, only top-level usage is supported,
    which means either alone or as part of a regular tuple. Other
    containers, such as lists, dicts, or namedtuples, will not have auto()
    transformed into a value.
    ethanfurman authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ded02ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e8fff51 View commit details
    Browse the repository at this point in the history
  7. test_ast uses infinite_recursion() to prevent crash (python#100104)

    test.test_ast_recursion_limit() now uses infinite_recursion() of
    test.support to prevent crashes on debug builds.
    
    Before this change, the test crashed on ARM64 Windows 3.x buildbot
    worker which builds Python in debug mode.
    vstinner authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    cd67c1b View commit details
    Browse the repository at this point in the history
  8. pythongh-96250: Improve sqlite3 injection attack example (python#99270)

    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    3 people authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    41d4ac9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    35cc0ea View commit details
    Browse the repository at this point in the history
  10. pythonGH-98831: Typed stack effects, and more instructions converted (p…

    …ython#99764)
    
    Stack effects can now have a type, e.g. `inst(X, (left, right -- jump/uint64_t)) { ... }`.
    
    Instructions converted to the non-legacy format:
    
    * COMPARE_OP
    * COMPARE_OP_FLOAT_JUMP
    * COMPARE_OP_INT_JUMP
    * COMPARE_OP_STR_JUMP
    * STORE_ATTR
    * DELETE_ATTR
    * STORE_GLOBAL
    * STORE_ATTR_INSTANCE_VALUE
    * STORE_ATTR_WITH_HINT
    * STORE_ATTR_SLOT, and complete the store_attr family
    * Complete the store_subscr family: STORE_SUBSCR{,DICT,LIST_INT}
      (STORE_SUBSCR was alread half converted,
      but wasn't using cache effects yet.)
    * DELETE_SUBSCR
    * PRINT_EXPR
    * INTERPRETER_EXIT (a bit weird, ends in return)
    * RETURN_VALUE
    * GET_AITER (had to restructure it some)
      The original had mysterious `SET_TOP(NULL)` before `goto error`.
      I assume those just account for `obj` having been decref'ed,
      so I got rid of them in favor of the cleanup implied by `ERROR_IF()`.
    * LIST_APPEND (a bit unhappy with it)
    * SET_ADD (also a bit unhappy with it)
    
    Various other improvements/refactorings as well.
    gvanrossum authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    c85be73 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cda9f02 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8a3f06c View commit details
    Browse the repository at this point in the history
  13. pythonGH-98831: Generate things in the input order (python#100123)

    This makes it easier to see what changed in the generated code
    when converting an instruction to super or macro.
    gvanrossum authored Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1cfa704 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Configuration menu
    Copy the full SHA
    bc8cdf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1160001 View commit details
    Browse the repository at this point in the history
  3. pythongh-81057: Fix an ifdef in the time module (python#100125)

    An earlier commit only defined check_ticks_per_second() when HAVE_TIMES is defined. However, we also need it when HAVE_CLOCK is defined. This primarily affects Windows.
    
    python#81057
    ericsnowcurrently authored Dec 9, 2022
    Configuration menu
    Copy the full SHA
    3e06b50 View commit details
    Browse the repository at this point in the history
  4. pythongh-99087: Add missing newline for prompts in docs (pythonGH-98993)

    Add newline for prompts so copying to REPL does not cause errors.
    slateny authored Dec 9, 2022
    Configuration menu
    Copy the full SHA
    286e3c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0448dea View commit details
    Browse the repository at this point in the history
  6. pythonGH-100110: Specialize FOR_ITER for tuples (pythonGH-100109)

    * Specialize FOR_ITER for tuples
    Fidget-Spinner authored Dec 9, 2022
    Configuration menu
    Copy the full SHA
    748c6c0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3c53554 View commit details
    Browse the repository at this point in the history
  8. pythonGH-98522: Add version number to code objects. (pythonGH-98525)

    * Add version number to code object for better versioning of functions.
    
    * Improves specialization for closures and list comprehensions.
    markshannon authored Dec 9, 2022
    Configuration menu
    Copy the full SHA
    fb713b2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a29a7b9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d0679c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8c21546 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8d0bd93 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7a0f3c1 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2022

  1. Configuration menu
    Copy the full SHA
    7c0fb71 View commit details
    Browse the repository at this point in the history
  2. pythongh-99582: freeze zipimport into _bootstrap_python (python#9…

    …9583)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    kkpattern and kumaraditya303 authored Dec 10, 2022
    Configuration menu
    Copy the full SHA
    228c92e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50b08d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f28e537 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a9bad4d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e477348 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d5f8a2b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1bb68ba View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2022

  1. pythongh-88500: Reduce memory use of urllib.unquote (python#96763)

    `urllib.unquote_to_bytes` and `urllib.unquote` could both potentially generate `O(len(string))` intermediate `bytes` or `str` objects while computing the unquoted final result depending on the input provided. As Python objects are relatively large, this could consume a lot of ram.
    
    This switches the implementation to using an expanding `bytearray` and a generator internally instead of precomputed `split()` style operations.
    
    Microbenchmarks with some antagonistic inputs like `mess = "\u0141%%%20a%fe"*1000` show this is 10-20% slower for unquote and unquote_to_bytes and no different for typical inputs that are short or lack much unicode or % escaping. But the functions are already quite fast anyways so not a big deal.  The slowdown scales consistently linear with input size as expected.
    
    Memory usage observed manually using `/usr/bin/time -v` on `python -m timeit` runs of larger inputs. Unittesting memory consumption is difficult and does not seem worthwhile.
    
    Observed memory usage is ~1/2 for `unquote()` and <1/3 for `unquote_to_bytes()` using `python -m timeit -s 'from urllib.parse import unquote, unquote_to_bytes; v="\u0141%01\u0161%20"*500_000' 'unquote_to_bytes(v)'` as a test.
    gpshead authored Dec 11, 2022
    Configuration menu
    Copy the full SHA
    2e279e8 View commit details
    Browse the repository at this point in the history
  2. pythongh-100174: [Enum] Correct PowersOfThree example. (pythonGH-100178)

    Changed from multiples of 3 to powers of 3 to match the class name.
    Beweeted authored Dec 11, 2022
    Configuration menu
    Copy the full SHA
    868bab0 View commit details
    Browse the repository at this point in the history
  3. pythongh-99688: Fix outdated tests in test_unary (python#99712)

    * Remove duplicates from "L" suffix removal
    * test_invert now tests `~`.
    Isaac-Lee authored Dec 11, 2022
    Configuration menu
    Copy the full SHA
    54289f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. Configuration menu
    Copy the full SHA
    70be5e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    935ef59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    621a179 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3221b0d View commit details
    Browse the repository at this point in the history
  5. Fix: typo (Indention) (pythonGH-99904)

    Example needed to be indented. Was trying to call a context manger `pr` (from ` with cProfile.Profile() as pr:`) wot perform ` pr.print_stats()` once it had already exited.
    
    Automerge-Triggered-By: GH:AlexWaygood
    jarrodcolburn authored Dec 12, 2022
    Configuration menu
    Copy the full SHA
    8711b59 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    158b8a0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e4ea33b View commit details
    Browse the repository at this point in the history
  8. pythonGH-100143: Improve collecting pystats for parts of runs (python…

    …GH-100144)
    
    * pystats off by default
    
    * Add -Xpystats flag
    
    * Always dump pystats, even if turned off
    mdboom authored Dec 12, 2022
    Configuration menu
    Copy the full SHA
    1583c6e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8790d4d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    53d9cd9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5eb28bc View commit details
    Browse the repository at this point in the history
  12. pythongh-81057: Move _Py_RefTotal to the "Ignored Globals" List (pyth…

    …ongh-100203)
    
    We can't move it to _PyRuntimeState because the symbol is exposed in the stable ABI. We'll have to sort that out before a per-interpreter GIL, but it shouldn't be too hard.
    
    python#81057
    ericsnowcurrently authored Dec 12, 2022
    Configuration menu
    Copy the full SHA
    0e081a0 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2022

  1. Configuration menu
    Copy the full SHA
    d3ea82a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    985a710 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. Configuration menu
    Copy the full SHA
    6997e77 View commit details
    Browse the repository at this point in the history
  2. pythongh-100176: venv: Remove redundant compat code for Python <= 3.2 (

    …python#100177)
    
    pythongh-100176: Remove redundant compat code for Python 3.2 and older
    
    Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we
    can remove this old compatibility check and unindent the old else-block.
    
    Also, in the unindented block, replace a .format() call with an f-string.
    
    Plus similar changes in the documentation.
    hugovk authored Dec 14, 2022
    Configuration menu
    Copy the full SHA
    3192c00 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5693f45 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9663853 View commit details
    Browse the repository at this point in the history
  5. pythongh-90111: Minor Cleanup for Runtime-Global Objects (pythongh-10…

    …0254)
    
    * move _PyRuntime.global_objects.interned to _PyRuntime.cached_objects.interned_strings (and use _Py_CACHED_OBJECT())
    * rename _PyRuntime.global_objects to _PyRuntime.static_objects
    
    (This also relates to pythongh-96075.)
    
    python#90111
    ericsnowcurrently authored Dec 14, 2022
    Configuration menu
    Copy the full SHA
    aa8591e View commit details
    Browse the repository at this point in the history
  6. pythonGH-100000: Cleanup and polish various watchers code (pythonGH-9…

    …9998)
    
    * Initialize `type_watchers` array to `NULL`s
    * Optimize code watchers notification
    * Optimize func watchers notification
    itamaro authored Dec 14, 2022
    Configuration menu
    Copy the full SHA
    ae83c78 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. pythonGH-100222: fix typo _py_set_opocde -> _py_set_opcode (pythonGH-…

    …100259)
    
    Typo introduced in python#100223.
    
    Automerge-Triggered-By: GH:brandtbucher
    carljm authored Dec 15, 2022
    Configuration menu
    Copy the full SHA
    bdd8674 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48e352a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b7e4f1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5e0ef80 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8f30b8a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e7bc5f2 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. fix error check

    iritkatriel committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    e9c6474 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12a37f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68b9b4b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2686f86 View commit details
    Browse the repository at this point in the history
  5. sanitizer warnings

    iritkatriel committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    bb7467b View commit details
    Browse the repository at this point in the history
  6. int--> Py_ssize_t

    iritkatriel committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    50dfc14 View commit details
    Browse the repository at this point in the history
  7. fix error check

    iritkatriel committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    9dbb32e View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2022

  1. pythonGH-98831: Add DECREF_INPUTS(), expanding to DECREF() each stack…

    … input (python#100205)
    
    The presence of this macro indicates that a particular instruction
    may be considered for conversion to a register-based format
    (see faster-cpython/ideas#485).
    
    An invariant (currently unchecked) is that `DEOPT_IF()` may only
    occur *before* `DECREF_INPUTS()`, and `ERROR_IF()` may only occur
    *after* it. One reason not to check this is that there are a few
    places where we insert *two* `DECREF_INPUTS()` calls, in different
    branches of the code. The invariant checking would have to be able
    to do some flow control analysis to understand this.
    
    Note that many instructions, especially specialized ones,
    can't be converted to use this macro straightforwardly.
    This is because the generator currently only generates plain
    `Py_DECREF(variable)` statements, and cannot generate
    things like `_Py_DECREF_SPECIALIZED()` let alone deal with
    `_PyList_AppendTakeRef()`.
    gvanrossum committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    6b82c8d View commit details
    Browse the repository at this point in the history
  2. Enhance generator for register instructions

    I updated only UNARY_POSITIVE_R to the new format.
    
    - Syntax `register inst(NAME, (ieffects -- oeffects)) { ... }`
    - Map stack effects from/to `REG(opargN)` instead of PEEK()
    - Use `Py_XSETREF(REG(opargN), result)` for output effects
    - Suppress stack adjustment in epilogue
    - Suppress effect of `DECREF_INPUTS()`
    - Always go to plain `error` in `ERROR_IF()`
    gvanrossum committed Dec 17, 2022
    Configuration menu
    Copy the full SHA
    f703a9c View commit details
    Browse the repository at this point in the history