Newbie question regarding string.split()
Steven D'Aprano
steve at REMOVE.THIS.cybersource.com.au
Fri Apr 20 22:18:45 EDT 2007
On Fri, 20 Apr 2007 12:15:33 -0700, kyosohma wrote:
> One hack to make it work is to add the following line right before you
> print "projectOptions":
>
> projectOptions.pop(0) # pop the first element out of the list
Which will introduce a nice bug into the Original Poster's code when the
input string doesn't start with a "2".
--
Steven.
More information about the Python-list
mailing list