Decompose a Python string into its characters

Posted by PoorLuzer on Stack Overflow See other posts from Stack Overflow or by PoorLuzer
Published on 2010-06-02T11:34:59Z Indexed on 2010/06/02 11:43 UTC
Read the original article Hit count: 231

I want to break a Python string into its characters.

sequenceOfAlphabets = list( string.uppercase )

works.

However, why does not

sequenceOfAlphabets = re.split( '.', string.uppercase )

work?

All I get are empty, albeit expected count of elements

© Stack Overflow or respective owner

Related posts about python

Related posts about regex