STINNER Victor <vstin...@python.org> added the comment:
While reviewing PR 19901, I was confused by py_compile and compileall documentation which is outdated: it doesn't mention that optimize argument can be a list of integers. https://docs.python.org/dev/library/py_compile.html#py_compile.compile "optimize controls the optimization level and is passed to the built-in compile() function. The default of -1 selects the optimization level of the current interpreter." https://docs.python.org/dev/library/compileall.html#compileall.compile_dir "optimize specifies the optimization level for the compiler. It is passed to the built-in compile() function." ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40495> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com