On Fri, 07 Oct 2016 16:09:19 +0200 jmp <jeanmic...@sequans.com> wrote: > What about > > def test(): > if not hasattr(test, '_store'): test._store={'x':0} > test._store['x'] += 1
Why is everyone working so hard to avoid creating a class? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list