def getToken(self):
if self.tok:
t = self.tok
self.tok = None
return t
# ...Is there a way to trim the 'if' block to reset self.tok upon return? -- Bill -- http://mail.python.org/mailman/listinfo/python-list
def getToken(self):
if self.tok:
t = self.tok
self.tok = None
return t
# ...Is there a way to trim the 'if' block to reset self.tok upon return? -- Bill -- http://mail.python.org/mailman/listinfo/python-list