Newbie question regarding string.split()

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Sat Apr 21 04:18:45 CEST 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