I came across some code where 'property' is being used for class attributes
(or as a decorator @property)
name = property(lambda self: getattr(self, '_data')['name'])
I think I understand what's going on here. What I don't understand is
if/when to use property instead of a normal attribute.
Hi
When importing from other modules, I've seen syntax like:
import from
import
And another one:
import from as
Is one better than the other or is it just personal choice?
Thanks
\d
___
Tutor maillist - Tutor@python.org
To unsubscribe or chan