[Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)
Sven R. Kunze
srkunze at mail.de
Wed May 17 13:39:36 EDT 2017
On 17.05.2017 19:30, Ethan Furman wrote:
> Given that one of Python's great strengths is its readability, I would
> not use the attr library in teaching because it is not. Having a dot
> in the middle of words is confusing, especially when you don't already
> have a basis for which abbreviations are common. Is it attr.ib or
> att.rib or at.trib?
It took me 5 days to see "foo = attrib()" in "foo = attr.ib()".... What
the hell means "ib"? ...
Sven
More information about the Python-ideas
mailing list