Secretly passing parameter to function

Paul Rubin no.email at nospam.invalid
Thu Dec 6 16:14:33 EST 2012


Paul Rubin <no.email at nospam.invalid> writes:
> from functools import partial
> do(partial(step1, param = None))

Or more directly:

  do(lambda: step1(param = None))



More information about the Python-list mailing list