Dean Elzinga added the comment:
Ohh! Thanks for the clarification. Sorry for the misunderstanding.
> -Original Message-
> From: Skip Montanaro [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 02, 2007 8:14 AM
> To: [EMAIL PROTECTED]
> Subject: [issue1227] csv docs
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_
New submission from Dean Elzinga:
I was trying out 'csv module' and noticed that it wouldn't accept a
dialect of 'excel_tab' as documented.
Then I noticed that csv.list_dialects() gave 'excel-tab' instead of
'excel_tab' as documented.
I'm not sure which one it's supposed to be, but I guess when