Éric Araujo <mer...@netwok.org> added the comment: Looks excellent, just import the function at the module scope instead of function scope (I’ve heard about import deadlock issues, and performance is not an issue in tests, so there is no reason to import in the function).
Please backport to 3.1 and 2.7 if the bug applies to them. ---------- assignee: -> ocean-city _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9313> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com