Larry Hastings <la...@hastings.org> added the comment:
The function will still leak "kwnames" and "default" if creating the "func" object fails. Admittedly that would only happen in a low-memory condition which is a) rare and b) probably only happens just before the interpreter completely dies, so it's not worth addressing during today's mild emergency. ---------- nosy: +larry _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46347> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com