Python 2.5 fails where 2.4 works when running external program
heikki at osafoundation.org
Fri Mar 30 09:36:00 CEST 2007
Peter Otten wrote:
> I think Exception.args always was supposed to be a tuple. Starting with 2.5
> Python enforces that constraint:
> But use of .args is discouraged. Instead, the preferred use is to pass a
> single argument to an exception (which can be a tuple if multiple arguments
> are needed) and have it bound to the message attribute.
Excellent, thank you!
More information about the Python-list