New submission from anatoly techtonik: It would be nice if reload() supported reloading of symbols imported with "from module import ..." syntax. It is quite useful for development sessions, when you patch and test your function on some set of unexpected input.
>>> from astdump import dumpattrs as dat >>> import imp >>> imp.reload(dat) TypeError: reload() argument must be module >>> imp.reload(dumpattrs) NameError: name 'dumpattrs' is not defined >>> imp.reload(astdump) NameError: name 'astdump' is not defined >>> ---------- components: Interpreter Core, Library (Lib) messages: 204573 nosy: techtonik priority: normal severity: normal status: open title: reload() by symbol name type: enhancement versions: Python 2.7, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19812> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com