is there a better way?

Lonnie Princehouse finite.automaton at gmail.com
Fri Feb 10 15:03:16 EST 2006


everybody is making this way more complicated than it needs to be.

storage = list[:list.index(O)]

incidentally, "list" is the name of a type, so you might want to avoid
using it as a variable name.




More information about the Python-list mailing list