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 skip.montanaro
Recipients kitterma, skip.montanaro
Date 2010-01-16.15:36:30
SpamBayes Score 2.9078506e-06
Marked as misclassified No
Message-id <1263656192.34.0.161949230049.issue7711@psf.upfronthosting.co.za>
In-reply-to
Content
This is to be expected.  The Error Exception is actually defined in the
underlying _csv extension module.  The higher level csv Python module
imports it.  The two are the same object:

>>> import csv, _csv
>>> csv.Error
<class _csv.Error at 0x818517c>
>>> _csv.Error
<class _csv.Error at 0x818517c>
>>> csv.Error is _csv.Error
True

So, continue to use

    try:
       ...
    except csv.Error:
       ...

and ignore the leading underscore.
History
Date User Action Args
2010-01-16 15:36:32skip.montanarosetrecipients: + skip.montanaro, kitterma
2010-01-16 15:36:32skip.montanarosetmessageid: <1263656192.34.0.161949230049.issue7711@psf.upfronthosting.co.za>
2010-01-16 15:36:31skip.montanarolinkissue7711 messages
2010-01-16 15:36:30skip.montanarocreate