On 14/04/2010 16:53, Nick Coghlan wrote:
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).
Yes, definitely - if maintaining the exception as an AttributeError is
determined to be the correct course of action for that API.
Chris showed an alternative way of achieving the same effect for Python
2, but that is possibly moot given that 2.7b1 is out (unless this is an
acceptable bugfix to include in b2).
All the best,
Michael
Cheers,
Nick.
--
http://www.ironpythoninaction.com/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com