Stricter locking (lock contained ndarrays and turn lists into tuples)
This commit is contained in:
parent
79990e3806
commit
c79eee2a8c
11 changed files with 88 additions and 9 deletions
|
|
@ -296,6 +296,8 @@ class SubPattern:
|
|||
Returns:
|
||||
self
|
||||
"""
|
||||
self.offset.flags.writeable = False
|
||||
self.mirrored.flags.writeable = False
|
||||
object.__setattr__(self, 'locked', True)
|
||||
return self
|
||||
|
||||
|
|
@ -306,6 +308,8 @@ class SubPattern:
|
|||
Returns:
|
||||
self
|
||||
"""
|
||||
self.offset.flags.writeable = True
|
||||
self.mirrored.flags.writeable = True
|
||||
object.__setattr__(self, 'locked', False)
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue