I know I must be missing something simple, but I am not seeing it.
If I have a generator expression like this:
>>> serializer=(sn for sn in xrange(0,sys.maxint))
I can generate, easily, individual integers like this:
>>> serializer.next()
0
>>> serializer.next()
1
>>> serializer.next()
2
If I write a generator like this:
>>> def ser():
... for sn in xrange(0,100000):
... yield sn
It is no bueno:
>>> ser().next()
0
>>> ser().next()
0
>>> ser().next()
0
??? What am I missing ???