mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
GH-131513: Cases generator: Allow dead inputs to be reassigned (GH-131515)
This commit is contained in:
parent
b70d45ab22
commit
d3f6063af1
4 changed files with 71 additions and 17 deletions
|
@ -63,6 +63,10 @@ class Local:
|
|||
def from_memory(defn: StackItem) -> "Local":
|
||||
return Local(defn, True, True, True)
|
||||
|
||||
def kill(self) -> None:
|
||||
self.defined = False
|
||||
self.in_memory = False
|
||||
|
||||
def copy(self) -> "Local":
|
||||
return Local(
|
||||
self.item,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue