splitting a string into 2 new strings

Andrew Dalke adalke at mindspring.com
Wed Jul 2 15:19:46 EDT 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
so
might not work on some machines where "C" (or rather, byte 67) isn't
a letter in the local alphabet.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list