This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mhammond
Recipients anadelonbrin, effbot, fdrake, georg.brandl, mhammond
Date 2009-03-21.00:24:51
SpamBayes Score 0.00022891551
Marked as misclassified No
Message-id <1237595095.12.0.94818285237.issue1386675@psf.upfronthosting.co.za>
In-reply-to
Content
oops - this slipped off my radar.  I agree with *both* Frederic and Tony
:)  The module promises to raise an EnvironmentError, which is does. 
However, the main killer from my POV is that a 'winerror' attribute is
likely to be of interest, and this is only available if we promise a
WindowsError.  In other words, to write code which conformed to the
docs, you would need to write:

try:
  ...
except WindowsError, exc:
  if exc.winerror==SOME_INTERESTING_CODE:...
except EnvironmentError, exc:
  # hrmph..

The second except clause is not actually necessary based on the impl,
but is according to the docs.  For this reason I'd be happy to update
the docs to reflect the implementation reality.
History
Date User Action Args
2009-03-21 00:24:55mhammondsetrecipients: + mhammond, fdrake, effbot, birkenfeld, anadelonbrin
2009-03-21 00:24:55mhammondsetmessageid: <1237595095.12.0.94818285237.issue1386675@psf.upfronthosting.co.za>
2009-03-21 00:24:53mhammondlinkissue1386675 messages
2009-03-21 00:24:52mhammondcreate