Jerzy Karczmarczuk kirjoitti: > On the other hand, try > > p=range(4).extend([1,2]) > > Then, p HAS NO VALUE (NoneType). > > With append the behaviour is similar. I didn't try other methods, but > I suspect that it won't improve. > > > WHY?
range(4) returns a list and Python's list.extend() returns None. Extend is a in-place operation. -- timo -- http://mail.python.org/mailman/listinfo/python-list