If this is the *only* objection to attrs let me quote some documentation:
""" If playful naming turns you off, attrs comes with serious business aliases:
from attr import attrs, attrib @attrs
... class SeriousCoordinates(object): ... x = attrib() ... y = attrib() """
So attrs and attrib can be used as alternatives for attr.s and attr.ib .
Personally, I like the playful names.
2017-05-17 19:39 GMT+02:00 Sven R. Kunze firstname.lastname@example.org:
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"? ...
Python-ideas mailing list Pythonemail@example.com https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/