On 01Sep2013 17:03, materil...@gmail.com <materil...@gmail.com> wrote: | <code> | >>> a = 'E:\Dropbox\jjfsdjjsdklfj\sdfjksdfkjslkj\flute.wav' | >>> a.split('\') | SyntaxError: EOL while scanning string literal | </code> | | I think that the character '\' is the problem, but unfortunately I'm developing a small app for windows and I need to show only the name of the .wav file, in this case 'flute.wav'.
Firstly, you want to say '\\' for a slosh (just as you would say '\n' for a linefeed). However, you really should use the os.path module, in particular os.path.split(). Have a read of: http://docs.python.org/3/library/os.path.html#module-os.path http://docs.python.org/2/library/os.path.html#module-os.path | I also want to know how to mirror a character, in my case this | one ©, because I'll use the Copyleft http://en.wikipedia.org/wiki/Copyleft | to distribute my app. Isn't that a copyright symbol? I'd have a look at the "uncidoedata" module, myself. Cheers, -- Cameron Simpson <c...@zip.com.au> Just because Unix is a multiuser system doesn't mean I want to share it with anybody! - Paul Tomblin, in rec.aviation.military -- http://mail.python.org/mailman/listinfo/python-list