New submission from Meador Inge <mead...@gmail.com>: I was recently reading the 'importlib' code and noticed that the utility decorators have not been updated for '__qualname__':
>>> def f(): pass ... >>> importlib.util.set_loader(f) <function set_loader.<locals>.wrapper at 0x7f4b323f1f60> >>> importlib.util.set_loader(f).__name__ 'f' >>> importlib.util.set_loader(f).__qualname__ 'set_loader.<locals>.wrapper' The attached patch fixes this. OK to commit? ---------- components: Library (Lib) files: importlib-qualname.patch keywords: easy, patch messages: 149389 nosy: brett.cannon, meador.inge priority: normal severity: normal stage: patch review status: open title: importlib needs to be updated for __qualname__ type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file23942/importlib-qualname.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13593> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com