Message58162
| Author |
draghuram |
| Recipients |
amaury.forgeotdarc, christian.heimes, draghuram, facundobatista, gvanrossum, ianare |
| Date |
2007年12月03日.22:25:22 |
| SpamBayes Score |
0.07656068 |
| Marked as misclassified |
No |
| Message-id |
<2c51ecee0712031425sb39cf4dscda2dead89a9c75d@mail.gmail.com> |
| In-reply-to |
<1196719995.01.0.169677530475.issue1545@psf.upfronthosting.co.za> |
| Content |
> try:
> ....
> except os.error, err:
> if WindowsError is not None or not isinstance(err, WindowsError):
> raise # Pretend we didn't catch it
> pass # Ignore it
All the double negations are hurting when I try to understand above
conditions. How about (in addition to the WindowsError name check):
if WindowsError and isinstance(err, WindowsError):
pass # ignore
raise |
|