Antoine Pitrou added the comment: I would suggest factoring out IMPORT_NAME into a separate import_name() function, like is already one for import_from(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22557> _______________________________________