Serhiy Storchaka added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25843> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com