The solution was provided in this thread here: https://discuss.python.org/t/extended-import-syntax-for-aliasing-module-attributes/95920/3 The correct way to implement is: import module from module import optimize, validate as check -- https://mail.python.org/mailman3//lists/python-list.python.org
- PEP Idea: Extended import syntax ... Omar Ahmed via Python-list
- Re: PEP Idea: Extended impor... Rob Cliffe via Python-list
- Re: PEP Idea: Extended impor... Barry Scott
- Re: PEP Idea: Extended i... Neal Becker via Python-list
- Re: PEP Idea: Extend... Barry
- Re: PEP Idea: Ex... Omar Ahmed via Python-list
- Re: PEP Idea: Extended i... Abdur-Rahmaan Janhangeer via Python-list
- Re: PEP Idea: Extend... Omar Ahmed via Python-list
- Re: PEP Idea: Extended impor... Omar Ahmed via Python-list