[CentralOH] python attrs library

Neil Ludban nludban at columbus.rr.com
Fri Mar 9 13:33:33 EST 2018


Ran across this library today, it has some very positive reviews.  It
could make a good presentation like last month's enum talk, if anyone
wants to run with it...

https://attrs.readthedocs.io/en/stable/#testimonials

https://attrs.readthedocs.io/en/stable/overview.html

--- 8< ---
After declaring your attributes attrs gives you:
   * a concise and explicit overview of the class’s attributes,
   * a nice human-readable __repr__,
   * a complete set of comparison methods,
   * an initializer,
   * and much more,
without writing dull boilerplate code again and again and without
runtime performance penalties.
--- 8< ---



More information about the CentralOH mailing list