[Csv] passing dialects directly - class or instance?

Andrew McNamara andrewm at object-craft.com.au
Mon Feb 3 23:57:48 CET 2003


>I thought users were supposed to pass dialect classes when not using
>strings.  I see, however, that _OCcsv.__init__ calls isinstance() instead of
>issubclass().  Which is it supposed to be?

An instance, I think - the PEP needs to be updated.

The code started to look really messy when I allowed it to accept either
a class, an instance, or a string. It seemed a small cost to lose the
"class" option. Thoughts?

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/


More information about the Csv mailing list