[Python-3000] removing exception .args

Andrew Dalke dalke at dalkescientific.com
Sun Jul 22 03:11:46 CEST 2007


Brett:
> This was originally proposed in PEP 352.

> So while I totally understand the desire to ditch 'args' and just have
> 'message', doing so thoroughly and in any reasonable way that is not
> painful is not easy thanks to the C API.

*sigh*

I read through the back python 3k list postings on this.
I see this topic is pending further input.

     which is why I am asking if people are still supportive
     of this?

I can offer nothing there as I don't dwell in the depths
of the C API.


Does the ".args" needs to be visible to Python code?
That would hide the problem, yes?



I've been reading the docs, and found the clause related to
IOError not having the filename in the args tuple.

     When an EnvironmentError exception is instantiated with a

     3-tuple, the first two items are available as above, while

     the third item is available on the filename attribute.

     However, for backwards compatibility, the args attribute

     contains only a 2-tuple of the first two constructor arguments.


At the very least, could this be fixed?





				Andrew
				dalke at dalkescientific.com




More information about the Python-3000 mailing list