◐ Shell
clean mode source ↗

Message 256386 - Python tracker

> It makes closures efficient:

No, code objects are not compared here. The code object is constant, and f() returns different closure objects using the same code object.

AFAIK the comparison of different code objects is used exclusively in testing.