onelinerizer icon indicating copy to clipboard operation
onelinerizer copied to clipboard

Implement from foo import *

Open csvoss opened this issue 9 years ago • 2 comments

csvoss avatar Sep 10 '15 23:09 csvoss

from module import * could be implemented as locals().update(vars(__import__('module')))

mitchellrj avatar Jun 03 '16 14:06 mitchellrj

@mitchellrj Not quite, both because we don’t use the real locals() and because * must only give you public names from the module.

andersk avatar Jun 03 '16 18:06 andersk