(original) (raw)

 
-----------------------------------------------------------
 
I have the following code:
 
#  len(all\_svs) = 10
 
 
# the I call a function  with 2 list parameters
 
def proc\_line(line,all\_svs) :
 
 
# inside the function the length of the list "all\_svs" is 1 more -> 11
# I had to workaround it
 
 
for i in range(len(all\_svs)  - 1 ) :    # some how the length of all\_svs  is incremented !!!!!!!!!!!!!!!!!!!!!!!!!!!
 
--------------------------------------------------------------
 
Is this a compiler bug ??
 
Or is it because of my first try of Python
 
Thanks