I've a function that needs to maintain an ordered sequence between calls.
In C or C++, I'd declare the pointer (or collection object) static at the function scope.
What's the Pythonic way to do this?
Is there a better solution than putting the sequence at module scope?
Thanks.
You might want a generator. Search for yield keyword. Regards, Nicolas -- http://mail.python.org/mailman/listinfo/python-list