[Tutor] Python property()

2015-05-16 Thread daaku gee
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.

[Tutor] Importing from classes

2015-02-11 Thread daaku gee
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