"C:\Program" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
1
>>> class A:
... attr = Permanent_property()
... def __init__(self, something):
... self.attr = something
Init <__main__.Permanent_property object at 0x0000018BA2C04040> with raise_exception = True
Set name 'attr' for <__main__.Permanent_property object at 0x0000018BA2C04040> of <class '__main__.A'>
>>> a = A('a')
Set <__main__.Permanent_property object at 0x0000018BA2C04040> for <__main__.A object at 0x0000018BA2C04790> val = 'a'
>>> b = A('b')
Set <__main__.Permanent_property object at 0x0000018BA2C04040> for <__main__.A object at 0x0000018BA2C04730> val = 'b'
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
b = A('b')
File "<pyshell#1>", line 5, in __init__
self.attr = something
File "D:\Misha\Языки\Python\oop test\intresting.py", line 24, in __set__
raise AttributeError (f'Permanent property {self.___name !r} for {obj !r} is alreadly setted')
AttributeError: Permanent property 'attr' for <__main__.A object at 0x0000018BA2C04730> is alreadly setted
Почему так...