[Ann] superfixer - stop hardcoding class names in super calls
Marcin Tustin
marcin.tustin at gmail.com
Wed Sep 5 02:43:31 EDT 2012
More information about the Python-list mailing list
Wed Sep 5 02:43:31 EDT 2012
- Previous message (by thread): is implemented with id ?
- Next message (by thread): Python Interview Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi All, I have a small library which supplies a metaclass superfixer, which when applied to a class, provides every method with a variable __class__, which refers to the class in which the method is defined. This avoids the need to refer to the current class name in calls to super. If there's any interest, it could be extended to provide a no-args form of super. All suggestions and enhancements gratefully accepted! https://github.com/marcintustin/superfixer -- Marcin Tustin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20120905/8b3ce0b6/attachment.html>
- Previous message (by thread): is implemented with id ?
- Next message (by thread): Python Interview Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list