Hi -

If this is the wrong place for this question, or if it is a FAQ, please send
me pointers to better locations!

I have a large code base that I am migrating form python 2.4 to 2.6 (because
of going from zope 2.9 to 2.12)  I would like to make the code compatible
with *both* where possible, so I don't need to maintain two versions.

The old code has a lot of old-style usage for exeptions, like
    raise 'MyFirstException'
and
    except MySecondException, var:

Does anyone have suggestions/guidelines for exception handling idioms that
are compatible with python 2.4 and 2.6 (and beyond?)

Thanks

  -- Jeff
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to