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 dcelzinga
Recipients dcelzinga, skip.montanaro
Date 2007-10-02.16:09:56
SpamBayes Score 0.0009164164
Marked as misclassified No
Message-id <007f01c8050e$9f2f7e30$dd8e7a90$@com>
In-reply-to <1191338067.83.0.817676070431.issue1227@psf.upfronthosting.co.za>
Content
Ohh! Thanks for the clarification. Sorry for the misunderstanding.

> -----Original Message-----
> From: Skip Montanaro [mailto:report@bugs.python.org]
> Sent: Tuesday, October 02, 2007 8:14 AM
> To: dcelzinga@gmail.com
> Subject: [issue1227] csv docs say 'excel_tab'; code says
> 'excel-tab'
> 
> 
> Skip Montanaro added the comment:
> 
> The string name of the dialect is "excel-tab".  Hyphens
> are not
> valid characters in identifiers though, so the actual
> object
> is named "excel_tab".  When you call
> csv.get_dialect("excel-tab")
> it instantiates the csv.excel_tab class and returns that:
> 
> >>> csv.list_dialects()
> ['excel-tab', 'excel']
> >>> csv.get_dialect("excel-tab")
> <csv.excel_tab instance at 0x820b50c>
> >>> csv.excel_tab
> <class csv.excel_tab at 0x81f9f5c>
> >>> csv.get_dialect("excel-tab").__class__ ==
> csv.excel_tab
> True
> 
> ----------
> assignee:  -> skip.montanaro
> nosy: +skip.montanaro
> resolution:  -> works for me
> status: open -> closed
> 
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue1227>
> __________________________________
History
Date User Action Args
2007-10-02 16:09:57dcelzingasetspambayes_score: 0.000916416 -> 0.0009164164
recipients: + dcelzinga, skip.montanaro
2007-10-02 16:09:56dcelzingalinkissue1227 messages
2007-10-02 16:09:56dcelzingacreate