Is there a way to get __thismodule__?
Ben Hoyt
benhoyt at gmail.com
Wed Mar 19 04:15:45 EDT 2008
Aha! Thanks, Jeff. I'd heard about metaclasses, but never really seen them
used. Your example was very helpful.
This is somewhere that I would personally use a metaclass. That way,
> if you define more subclasses of Message, you're not limited to doing
> so in that single module.
>
Cheers,
Ben.
--
Ben Hoyt, http://benhoyt.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080319/ff7cee71/attachment-0001.html>
More information about the Python-list
mailing list