3 ms·
attr.s = "attrs" = plural of "attr" attr.ib = "attirb" = alternate spelling of "attr" It's too cute by half.
by jfb 10y ago
attr.s = "attrs" = plural of "attr"
attr.ib = "attirb" = alternate spelling of "attr"
It's too cute by half.
- ctoth 10y agoIt's awesome that Glyph wrote this article, but so many people are getting stuck on the default names here (me too, I don't like them so very much) that it's really detracting from the commentariet. From the Attrs documentation: (If you don’t like the playful attr.s and attr.ib, you can also use their no-nonsense aliases attr.attributes and attr.attr).