That sounds fragile. Anyway, can't you do ``lambda *args, **kw: ...`` ?