mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 04:50:58 +07:00
17 lines
460 B
Python
17 lines
460 B
Python
class С:
|
||
def __init__(self, x=None):
|
||
if x is None:
|
||
self.foo = {
|
||
'A': {
|
||
'x': 0,
|
||
'y': 0,
|
||
},
|
||
}
|
||
else: # init was given the previous state
|
||
assert isinstance(x, С)
|
||
self.foo = {
|
||
'A': {
|
||
'x': x.f<caret>oo['A']['x'],
|
||
'y': x.foo['A']['y'],
|
||
},
|
||
} |