Re: CSV module, DictReader problem (bug?)
- From: skip@xxxxxxxxx
- Date: Wed, 1 Nov 2006 21:38:58 -0600
>> ...alternatively you can just use 'unix slashes', e.g.
>> 'c:/temp/book1.csv', since those work just fine 'cause the Windows
>> APIs deal with them properly.
John> Not all APIs do the right thing. If you fire up the cmd.exe shell
John> and feed it slashes as path separators, it barfs. Example:
John> C:\junk>dir c:/junk/*.bar
John> Invalid switch - "junk".
John> Hence the advice to use rawstrings with backslashes -- they work
John> under all circumstances.
I think he means "the Windows APIs" within a Python program.
Skip
.
- References:
- CSV module, DictReader problem (bug?)
- From: Jeff Blaine
- Re: CSV module, DictReader problem (bug?)
- From: John Machin
- Re: CSV module, DictReader problem (bug?)
- From: Tom Plunket
- Re: CSV module, DictReader problem (bug?)
- From: John Machin
- CSV module, DictReader problem (bug?)
- Prev by Date: Re: Python and SSL enabled
- Next by Date: Re: CSV module, DictReader problem (bug?)
- Previous by thread: Re: CSV module, DictReader problem (bug?)
- Next by thread: Re: CSV module, DictReader problem (bug?)
- Index(es):
Relevant Pages
|