Is this a good use of __metaclass__?
bruno at modulix
onurb at xiludom.gro
Tue May 9 04:17:00 EDT 2006
Joel.Hedlund at gmail.com wrote:
> I played around with my old code before I saw your post, and I believe
> I've found a solution that's a bit neater than what I had before. I
> thought I could just as well post it if you're interested and have the
> time. This one uses multiple inheritance, but it's legal and there's
> only one metaclass.
>
(snip code)
Seems quite clean.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list