Apologies if this has already been discussed.
I was expecting that by now, python 3.0, the following code:
# clean the target dir
import errno
try:
shutil.rmtree(trace_output_path)
except OSError, ex:
if ex.errno not
2009/4/2 Gustavo Carneiro gjcarne...@gmail.com:
Apologies if this has already been discussed.
I don't believe it has ever been discussed to be implemented.
Apparently no one has bothered yet to turn OSError + errno into a hierarchy
of OSError subclasses, as it should. What's the problem, no
On Thu, Apr 2, 2009 at 4:25 PM, Benjamin Peterson benja...@python.org wrote:
2009/4/2 Gustavo Carneiro gjcarne...@gmail.com:
Apologies if this has already been discussed.
I don't believe it has ever been discussed to be implemented.
Apparently no one has bothered yet to turn OSError + errno
(cross-posting back to python-dev to finalize discussions)
2009/4/2 Guido van Rossum gu...@python.org
[...]
The problem you report:
try:
...
except OSWinError:
...
except OSLinError:
...
Would be solved if both OSWinError and OSLinError were always defined in