On Jan 11, 2010, at 09:57 PM, Steven Bethard wrote:

>Actually there's a solution to this one too:
>
>    FooBase = Meta('FooBase', (), {})
>    class Foo(FooBase):
>        ...
>
>That should work in Python 2.X and 3.X.

Ugly, but good call! :)

>I've got argparse running on Python 2.3-3.1, and the changes were
>pretty easy. You can see them all in the revision here:
>
>    http://code.google.com/p/argparse/source/detail?r=12
>
>I have aspirations of putting all of the tricks I learned up up on the
>Wiki somewhere, but I just haven't had the time.

The more resources we can provide people, both in code and in documentation,
the better.

Thanks!
-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to