[Python-ideas] Definition Symmetry

Eric Snow ericsnowcurrently at gmail.com
Fri Feb 1 20:13:41 CET 2013


On Thu, Jan 31, 2013 at 10:21 PM, Jason Keene <jasonkeene at gmail.com> wrote:
> Additionally, both definitions
> produce very similar byte codes:
>
>               3 MAKE_FUNCTION            0
>               6 STORE_FAST               0 (my_func)
>
>               9 MAKE_FUNCTION            0
>              12 CALL_FUNCTION            0
>              15 BUILD_CLASS
>              16 STORE_FAST               0 (MyClass)

That's just an implementation detail.

-eric



More information about the Python-ideas mailing list