Reply to Chris: I'm proposing a way to do this officially in Python. For example I know another hack,
def count(cur={"cur":0}): cur["cur"] += 1 return cur >> Static should behave much like Python's for loop variables. > I have no idea what this means. That's a bad example. I was just trying to make it clear. But you have got the idea. So don't worry about that. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/VA37MHB7BH5UI52IMUFHID7QWTRC2VBJ/ Code of Conduct: http://python.org/psf/codeofconduct/