splitting a string into 2 new strings

Andrew Dalke adalke at mindspring.com
Wed Jul 2 21:19:46 CEST 2003

Anton Vredegoor:
> The issue seems to be resolved already, but I haven't seen the split
> and strip combination:
> from string import letters,digits

Use "ascii_letters" instead of "letters".  The latter is based on the locale
might not work on some machines where "C" (or rather, byte 67) isn't
a letter in the local alphabet.

                    dalke at dalkescientific.com

More information about the Python-list mailing list