Missing something on exception handling in Python 3

Skip Montanaro skip.montanaro at gmail.com
Mon Aug 26 22:49:39 EDT 2013


> Do this:
>
>     raise LockFailed("Failed to create %s" % self.path) from None

Thanks. Is there some construct which will work in 2.x and 3.x?

Skip



More information about the Python-list mailing list