File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1616 ValidationError ,
1717)
1818
19- from collections import UserList as rstack
2019"""
2120This module simply implements for the return stack the exact same design used for the data stack.
2221As this stack must simply push_int or pop1_int any time a subroutine is accessed or left, only those two functions are provided.
@@ -32,10 +31,10 @@ class RStack():
3231
3332 def __init__ (self ) -> None :
3433 values : List [int ]
35- self .values = rstack . data
36- self ._append = rstack . data .append
37- self ._pop_typed = rstack . data .pop
38- self .__len__ = rstack . data .__len__
34+ self .values = values
35+ self ._append = values .append
36+ self ._pop_typed = values .pop
37+ self .__len__ = values .__len__
3938
4039 def push_int (self ) -> int :
4140 if len (self .values ) > 1023 :
You can’t perform that action at this time.
0 commit comments