Hello, I want to edit a constant. Regrettably, the docs do not demonstrate how to use it… how can I edit the line attemting to bind self.id
so that it edits the constant?
marketer_id = itertools.count(1)
class Marketer(Parameterized):
id = Number(constant=True)
front_line_target = Number(5)
def __init__(self, **params):
super().__init__(**params)
self.id = next(marketer_id) # <-- how to use edit_constant here???