The real problem with Python 3 - no business case for conversion

Paul Rubin no.email at nospam.invalid
Wed Jul 7 04:58:51 EDT 2010


Paul McGuire <ptmcg at austin.rr.com> writes:
> is completely forward and backward incompatible.  The workaround is to
> rewrite as:
>
>     except ExceptionType:
>         ex = sys.exc_info()[0]
>
> which works just fine in 2.x and 3.x.

Are you sure?  I wonder if there might be some race condition that could
make it fail.

I didn't even know about (or forgot) this change.  Yucch.



More information about the Python-list mailing list