def P(self): """Property parameter dict: supports lazy evaluation of dict arguments. """ cls = self.__class__ def _P__call__(this, P): return self(**P_dict.__call__(this, P)) return P_dict.__class__( "P_%s" % (cls.__name__), (P_dict,), dict(__call__=_P__call__, __module__=cls.__module__) )
def _P__call__(this, P): return self(**P_dict.__call__(this, P))