Emanuel Barry added the comment: *.pyo files have been removed from the language as of 3.5; instead, the optimization is done directly to the *.pyc files. Are you suggesting re-introducing *.pyo files or changing this behaviour in the current model?
Also, 'if type(obj) is int' is *not* the same as 'if isinstance(obj, int)' -- the first one checks explicitely that 'obj' is an int. The second allows for any arbitrary subclass of int; most people using the first idiom want ints specifically, disallowing subclasses. What other optimizations do you have in mind? ---------- nosy: +ebarry _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25903> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com