Call for suggestions: Declaring data entry forms using Python classes

Andrew Dalke adalke at mindspring.com
Thu Sep 23 16:25:46 EDT 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.

				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list