if (__name__ == '__main__'): main(sys.argv[1:])
François Pinard
pinard at iro.umontreal.ca
Fri Apr 23 11:50:26 EDT 2004
[Michael Hudson]
> François Pinard <pinard at iro.umontreal.ca> writes:
> > A word about the `__metaclass__' line. My intent is to forget all about
> > classic classes and go with the new type system as quickly as possible.
> > I do not want to derive each and every of my classes from `object',
> > and later edit all those `(object)' out when the classic classes will
> > effectively get deprecated.
> Why would you do that?
Your question is surprising, after you just quoted the answer. I guess
I miss the real meaning of your question.
> I don't like using a __metaclass__ global because it's a non-local
> effect.
That's exactly why it is useful. You don't like it to be useful? :-)
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list