You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> class Client:
... def __init__(self, ident=None):
... if ident:
... self.ident = ident
... @property
... def ident(self):
... raise Exception("ident is not set")
...
>>> client = Client()
>>> client.ident
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 7, in ident
Exception: ident is not set
>>> client = Client(ident="blah")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 4, in __init__
AttributeError: can't set attribute
Any attempts to set an ident results in such an exception.
The text was updated successfully, but these errors were encountered:
Here's a simplified proof:
Any attempts to set an ident results in such an exception.
The text was updated successfully, but these errors were encountered: