I have an error creating my instance
#! python3
class Profile(object):
"""contiene la informacion del perfil"""
def __init__(self):
self.name = None
@property
def name(self):
"""name"""
return self.name
if __name__ == '__main__':
profile1 = Profile()
The error that throws me:
Traceback (most recent call last):
File "F:\Project\profile.py", line 14, in <module>
profile1 = Profile()
File "F:\Project\profile.py", line 6, in __init__
self.name = None
AttributeError: can't set attribute
I was turning it around for a while, but I can not make sense of it