diff options
author | Guido van Rossum <guido@python.org> | 2023-08-08 04:32:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 04:32:42 (GMT) |
commit | 2df58dcd500dbedc61d0630374f9e94c522fe523 (patch) | |
tree | 89ef17fd39005e7c133588dead81cbed6021e4c4 /Python | |
parent | 707018cc75558d6695e9e199a3ed0c8a4ff7cbcc (diff) | |
download | cpython-2df58dcd500dbedc61d0630374f9e94c522fe523.zip cpython-2df58dcd500dbedc61d0630374f9e94c522fe523.tar.gz cpython-2df58dcd500dbedc61d0630374f9e94c522fe523.tar.bz2 |
gh-106812: Small stack effect fixes (#107759)
- Generalize the syntax for the type of a stack effect to allow a trailing `*`,
so we can declare something as e.g. `PyCodeObject *`.
- When generating assignments for stack effects,
the type of the value on the stack should be the default (i.e., `PyObject *`)
even when the variable copied to/from it has a different type,
so that an appropriate cast is generated
However, not when the variable is an array --
then the type is taken from the variable (as it is always `PyObject **`).
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions