Re: CSV module, DictReader problem (bug?)




>> ...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
.



Relevant Pages

  • Re: CSV module, DictReader problem (bug?)
    ... John> Not all APIs do the right thing. ... If you fire up the cmd.exe shell ... John> and feed it slashes as path separators, ...
    (comp.lang.python)
  • PGII Index latest edition - adding book reviews, historical articles &c. by Author
    ... donald j haarmann ... Brent and et al — Hybrid Rockets II: ... Simple Component Shell Design 37 ... John — Device for the Redundant Fusing of Set Pieces 38 ...
    (rec.pyrotechnics)
  • PGII Bulletin by Author
    ... donald j haarmann ... Brent and et al - Hybrid Rockets II: ... Johnny - Another Method for Making Round Paper Shell Casings ... John - "Pyrophoric Lead" A Demonstration 49 ...
    (rec.pyrotechnics)
  • =?windows-1252?Q?PGII_Bulletin_Index_=97_By_Author?=
    ... Brent and et al — Hybrid Rockets II: ... Simple Component Shell Design 37 ... John — Device for the Redundant Fusing of Set Pieces 38 ... Jim...
    (rec.pyrotechnics)
  • Re: OT.....Jesus Sights.
    ... John O. Buggamee from Footrot Flats, ... artillery ammunition in Firebase Helen Clark when he noticed ... some writing on the shell cases. ... Yes sir, yes sir, three bags full ...
    (rec.motorcycles)