On Oct 14, 10:30 pm, Lawrence D'Oliveiro <l...@geek-
central.gen.new_zealand> wrote:
> In message <op.vkfl1i1na8n...@gnudebst>, Rhodri James wrote:
>
> > ... frankly putting arbitrary binary into a literal string is rather
> > asking for something like this to come and bite you.
>
> It normally works fine on sensible OSes.

Which OSes would those be?  It doesn't work in Linux:

$ python -c "print 'print \'hello\0world\''" > test.py
$ cat test.py
print 'helloworld'
$ python test.py
  File "test.py", line 1
    print 'hello
               ^
SyntaxError: EOL while scanning string literal

Cheers,
Ian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to