#!/usr/local/bin/python2 import datetime class C(object): def __init__(self, a): print a def f(a): return lambda: C(a) c = f(datetime.datetime.now()) c() c()