Mark Shannon added the comment: If type.coroutine is not the first and only decorator, then things may be even worse.
Code objects are currently immutable. This change would mean that a call to types.coroutine in one place in the code would change the semantics of another piece of code in a potentially surprising way. I think creating a copy is probably the best thing to. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com