[Ann] superfixer - stop hardcoding class names in super calls

Marcin Tustin marcin.tustin at gmail.com
Wed Sep 5 02:43:31 EDT 2012


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>


More information about the Python-list mailing list