EOF while scanning triple-quoted string literal

Seebs usenet-nospam at seebs.net
Fri Oct 15 20:49:55 CEST 2010

On 2010-10-15, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2010-10-15, Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote:
>> In the Unix world, which includes OS X, text tools tend to have 
>> difficulty with tabs. Or try naming a file with a newline or carriage
>> return in the file name, or a NULL byte.

> How do you create a file with a name that contains a NULL byte?

So far as I know, in canonical Unix, you don't -- the syscalls all work
with something like C strings under the hood, meaning that no matter what
path name you send, the first null byte actually terminates it.

Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nospam at seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.

More information about the Python-list mailing list