Stupid string.split question

Brian Kelley bkelley at wi.mit.edu
Wed Aug 6 16:40:06 EDT 2003


David Eppstein wrote:

>>I suppose the pythonic way is [x for x in "ABCDEF"] which doesn't make 
>>as much sense to be.
> 
> 
> Wouldn't list("ABCDEF") be even more Pythonic?

Absolutely.  I suppose we don't want three ways of turning each 
character of a string into a list element :)





More information about the Python-list mailing list