mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 04:32:51 +01:00
registry: Explain why Value.set sets self._wasSet.
This commit is contained in:
parent
eead5566e5
commit
7e7a7bf936
@ -442,6 +442,9 @@ class Value(Group):
|
|||||||
"""Override this with a function to convert a string to whatever type
|
"""Override this with a function to convert a string to whatever type
|
||||||
you want, and call self.setValue to set the value."""
|
you want, and call self.setValue to set the value."""
|
||||||
self.setValue(s)
|
self.setValue(s)
|
||||||
|
|
||||||
|
# redundant as setValue() already sets it, but it avoids really hard
|
||||||
|
# bugs if subclasses mess with _setValue.
|
||||||
self._wasSet = True
|
self._wasSet = True
|
||||||
|
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
|
Loading…
Reference in New Issue
Block a user