2008/10/14 <skip@pobox.com >:
Thanks, Skip. I don't quite follow but I've got enough to google on
now. In any case I see that there are unicode-specific parts to TFM so
I'm rather faithful that any gotchas will be spelled out there.
Thanks!
--
Dotan Cohen
×-ב-×’-ד-×”-ו-×–-×—-ט-×™-ך-×›-ל-×-מ-ן-× -ס-×¢-×£-פ-×¥-צ-×§-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
Off the top of my head I don't know (and it may well vary by Python
version). Just leave out the dangerous parts of the loop to check:
>
for f in glob.glob('*.vc f'):
# corrupt data
uncooked = open(f, 'rb').read()
# fix it
cooked = uncooked.replac e('\n ', '')
# and write it to the bit bucket
open(os.path.de vnull, 'wb').write(coo ked)
>
Skip
>
version). Just leave out the dangerous parts of the loop to check:
>
for f in glob.glob('*.vc f'):
# corrupt data
uncooked = open(f, 'rb').read()
# fix it
cooked = uncooked.replac e('\n ', '')
# and write it to the bit bucket
open(os.path.de vnull, 'wb').write(coo ked)
>
Skip
>
now. In any case I see that there are unicode-specific parts to TFM so
I'm rather faithful that any gotchas will be spelled out there.
Thanks!
--
Dotan Cohen
×-ב-×’-ד-×”-ו-×–-×—-ט-×™-ך-×›-ל-×-מ-ן-× -ס-×¢-×£-פ-×¥-צ-×§-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü