Call for suggestions: Declaring data entry forms using Python classes

Andrew Dalke adalke at
Thu Sep 23 22:25:46 CEST 2004

Carlos Ribeiro wrote:
> # decorates getmyposition to hide the internal static var
> getmyposition = getmyposition().next

Codewise this is probably cleaner

import itertools
getmyposition = itertools.count().next

More than that requires I know how to use metaclasses. :)

If it works like I think it does then it's pretty neat.

				dalke at

More information about the Python-list mailing list