The inner function of a method doesn't appear in the dir() of the method, so wondered
|| ```py In [1]: def f(c): ...: g=lambda:... ...: g.__code__=c ...: return g ...: In [2]: def g(): ...: def h(): ...: print(42) ...: In [3]: f(g.__code__.co_consts[1])() 42 ``` ||