◐ Shell
clean mode source ↗

GH-98831: Refactor generate_cases.py by gvanrossum · Pull Request #99408 · python/cpython

and others added 27 commits

November 9, 2022 18:38
Had to refactor the parser a bit for this.
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in C files of the Objects/ directory.
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in Objects/dictobject.c.
…thon#99280)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
… venvs (pythonGH-99206)

Check to see if `base_executable` exists. If it does not, attempt
to use known alternative names of the python binary to find an
executable in the path specified by `home`.

If no alternative is found, previous behavior is preserved.

Signed-off-by: Vincent Fazio <vfazio@gmail.com>

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
python#99271)

Also mark those opcodes that have no stack effect as such.

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>

@gvanrossum

@gvanrossum

This was a bin subtle, esp. BINARY_SUBSCR_DICT (which plays games
with refcounts) and BINARY_SUBSCR_GETITEM (which ends with a goto).

@gvanrossum

This was referenced

Nov 16, 2022