mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-135379: Remove types from stack items in code generator. (GH-135384)
* Make casts explicit in the instruction definitions
This commit is contained in:
parent
49d72365cd
commit
c87b5b2cb6
13 changed files with 257 additions and 255 deletions
|
@ -56,9 +56,7 @@ def root_relative_path(filename: str) -> str:
|
|||
|
||||
|
||||
def type_and_null(var: StackItem) -> tuple[str, str]:
|
||||
if var.type:
|
||||
return var.type, "NULL"
|
||||
elif var.is_array():
|
||||
if var.is_array():
|
||||
return "_PyStackRef *", "NULL"
|
||||
else:
|
||||
return "_PyStackRef", "PyStackRef_NULL"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue