We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f63da9 commit 459b055Copy full SHA for 459b055
memento.py
@@ -23,7 +23,8 @@ class Transaction:
23
deep = False
24
states = []
25
26
- def __init__(self, *targets):
+ def __init__(self, deep, *targets):
27
+ self.deep = deep
28
self.targets = targets
29
self.commit()
30
@@ -75,7 +76,7 @@ def do_stuff(self):
75
76
num_obj = NumObj(-1)
77
print(num_obj)
78
- a_transaction = Transaction(num_obj)
79
+ a_transaction = Transaction(True, num_obj)
80
try:
81
for i in range(3):
82
num_obj.increment()
0 commit comments