SPAM-LOW: Re: Function/method returning list of chars in string?
Hendrik van Rooyen
mail at microcorp.co.za
Tue Jun 9 05:42:27 EDT 2009
"Chris Rebert" <clp2 at ria.com> wrote:
> lb = list("banana")
Aaargh!
I should have known - you use a string method to get a list of words,
but you have to go to the list to get a list of characters from a string.
There is no string method to do it, which is what I am complaining
about.
Is there a reason for this, or is the lack of symmetry just an historical
artefact?
The link that jon vs python supplied is interesting.
- Hendrik
More information about the Python-list
mailing list