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 fabian_b
Recipients bethard, ezio.melotti, fabian_b, vstinner
Date 2016-06-20.15:24:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466436264.58.0.694730033551.issue27356@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I am running Canopy on Windows 7 64 bit.
When I run the attached file, I get the following error:


----> 5 with open('C:\Users\Anwender\Desktop\Test\blub.txt') as csvfile:
      6     dialekt = csv.Sniffer().sniff(csvfile.read(1024))

IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Users\\Anwender\\Desktop\\Test\x08lub.txt' 


As you see, Python complains about the file name after it changes the file name for no reason.

The thing is, when I use a capital letter after every back slash it is fine, but I needed quite some time to figure that out. So it is very annoying for everyone encountering the problem for the first time. 
Also numbers at the beginning of a file name seem not to work either.

Thank you for developing Python!
History
Date User Action Args
2016-06-20 15:24:24fabian_bsetrecipients: + fabian_b, bethard, vstinner, ezio.melotti
2016-06-20 15:24:24fabian_bsetmessageid: <1466436264.58.0.694730033551.issue27356@psf.upfronthosting.co.za>
2016-06-20 15:24:24fabian_blinkissue27356 messages
2016-06-20 15:24:24fabian_bcreate