[Python-Dev] patch for review: unittest ImportError handling
Nick Coghlan
ncoghlan at gmail.com
Wed Apr 14 16:53:08 CEST 2010
Michael Foord wrote:
> Changing the error message to provide more useful information, possibly
> including the original traceback, would certainly avoid the potential
> for incompatibility. I'd be interested in seeing what other folks here
> on python-dev think.
Without looking at the details, my question is whether this can be
ignored in 2.x and fixed for 3.x by setting __cause__ appropriately
(i.e. by using the "raise from" syntax).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list