[Python-Dev] [RELEASED] Python 2.7 alpha 2 (original) (raw)

Barry Warsaw barry at python.org
Tue Jan 12 13:16:09 CET 2010


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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20100112/a2ba5b3e/attachment-0007.pgp>



More information about the Python-Dev mailing list