Irit Katriel
Irit Katriel
I like the idea of using phoenix placeholders and supporting phoenix expression. Trying to wrap my head around how it would work. I'm not sure that putting the whole phoenix...
Agreed. This ticket is not about restricting function expressions, but about giving nice error messages for the ones that would not compile anyway.
What do you want it to print for an empty class? Compare with the output for a non-empty class: ``` >>> class C: ... def f(): return 12 ... >>>...
I guess we could have a "Disassembly of C:" for the topmost class/module as well: ``` >>> class C: ... class D: ... def f(): return 12 ... >>> dis.dis(C)...
See also bpo-46759.
Sharing credit is done via the "Co-Authored By" tag. There is some relevant info here: https://devguide.python.org/pullrequest/?highlight=co-authored#converting-an-existing-patch-from-b-p-o-to-github
> As a core dev, if I happen to have the time I'll put on the finishing touches myself and merge Though in that case we typically remove the automated...
@kumaraditya303 were you able to reproduce it with 3.7?
I tried myself - indeed I can reproduce it on 3.7 but no on main (on a MAC).
From the discussion it seems that the optimization idea was rejected. Shall we close this issue?