Difference between str and string
"Martin v. Löwis"
martin at v.loewis.de
Sat Feb 7 03:17:56 EST 2004
Hugh Macdonald wrote:
> Anyway, any idea what I'm doing wrong or what python's doing wrong?
It looks you have a string with embedded null bytes, which is not
supported where you want to use it. Do
print repr(path)
to find out what precisely the value of path is (doing a plain print
would send the null bytes to the terminal, which might ignore them)
HTH,
Martin
More information about the Python-list
mailing list