[Python-ideas] Allow multiple imports from a package while preserving its namespace

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 26 19:12:38 EDT 2018


Chris Angelico wrote:
> +0 for an easier way to import multiple submodules at once. It's not
> something I've personally had a need for, but it's a sane and logical
> thing to do.

Maybe:

    import display, event, mixer in pygame

or

    in pygame import display, event, mixer

-- 
Greg



More information about the Python-ideas mailing list