Re: PEP Idea: Extended import syntax for aliasing module attributes

Omar Ahmed via Python-list <[email protected]>
Newsgroups gmane.comp.python.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.