On 17.05.2017 19:55, Stephan Houben wrote:
So attrs and attrib can be used as alternatives for attr.s and attr.ib . Personally, I like the playful names.
Ah, now I understand their documentation. :D I read this passage and thought: "where is the difference. Maybe, they meant omitting x=, y= in the constructor?"
"There should be one-- and preferably only one --obvious way to do it." <<< That's why I didn't even thought there's an alternative. I feel that's a bit not-Python. ;)
Sven _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/