strings
John J. Lee
jjl at pobox.com
Sun Jun 29 19:07:50 EDT 2003
More information about the Python-list mailing list
Sun Jun 29 19:07:50 EDT 2003
- Previous message (by thread): strings
- Next message (by thread): strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Egor Bolonev" <ebolonev at mail.ru> writes: > I have a > 'Pink Floyd/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00' > and I want a > 'Pink Floyd' > How can I manage it? > > This one isn't work. > author=f.read(30).replace('\0',' ').rstrip() #from mp3 tag I don't see why it shouldn't work. Try posting more code if you're still stuck. BTW, text.rstrip("\0") should work just as well in Python 2.2 or newer. John
- Previous message (by thread): strings
- Next message (by thread): strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list