A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-August/103323.html below:

[Python-Dev] r84329 - python/branches/py3k/Lib/importlib/_bootstrap.py

[Python-Dev] r84329 - python/branches/py3k/Lib/importlib/_bootstrap.py [Python-Dev] r84329 - python/branches/py3k/Lib/importlib/_bootstrap.pyBrett Cannon brett at python.org
Fri Aug 27 19:43:13 CEST 2010
On Fri, Aug 27, 2010 at 10:32, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Thu, 26 Aug 2010 23:07:13 +0200 (CEST)
> brett.cannon <python-checkins at python.org> wrote:
>> Author: brett.cannon
>> Date: Thu Aug 26 23:07:13 2010
>> New Revision: 84329
>>
>> Log:
>> OSError is the exception raised when one tries to create a directory that
>> already exists, not IOError.
>
> It's probably simpler to catch all of them at once using
> EnvironmentError.

It would be less code, but I like the clear separation.

> (and see PEP 3151 :-))

Oh, I want PEP 3151 as this little bit of code has shown me. As soon
as the PEP goes in I will clean this code up.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4