Actually, \0 is the null. Mike's suggestion is correct, but also take a look at the os.path module to avoid the pain.
FWIW, the board doesn't like it either :-/ I had to escape the backslash or it shows as "0".
What Mike said...
Actually, \0 is the null. Mike's suggestion is correct, but also take a look at the os.path module to avoid the pain.
FWIW, the board doesn't like it either :-/ I had to escape the backslash or it shows as "0". |
|
Thanks for the correction.
There's an awful lot of stuff in the python standard library! :-)
I too found that you can do "\\" and "\0" here - you just have to double the number of backslashes you want to be visible. Apparently this "null in a string" issue is something that python web programmers have to think about - http://lucumr.pocoo....as-web-developer/ Thanks. Cheers, Scott. |
|
Backslashes are for escaping things
Including backslashes. Working as designed.
Regards,
-scott Welcome to Rivendell, Mr. Anderson. |