These names are available in co_names. For example below the dedent symbol is not compiled.
from textwrap import dedent
@compile_fun
def foo():
return dedent(" hoho")
Unfortunately, handling this comes with many side effects including compilation order, appropriate propagation or non-propagation of globals(), locals().
Since @compile_fun was initially just a fun experiment to apply compile easily, as of now I do not plan to make this work. Contributions welcome - if you find that this is actually worth it ! :)
These names are available in
co_names
. For example below thededent
symbol is not compiled.Unfortunately, handling this comes with many side effects including compilation order, appropriate propagation or non-propagation of
globals()
,locals()
.Since
@compile_fun
was initially just a fun experiment to applycompile
easily, as of now I do not plan to make this work. Contributions welcome - if you find that this is actually worth it ! :)