Special case in stub files for import *.

This commit is contained in:
Guido van Rossum 2015-10-30 08:40:37 -07:00
parent 23a9ad5cc1
commit 10aeb49768
1 changed files with 6 additions and 1 deletions

View File

@ -1040,7 +1040,12 @@ Additional notes on stub files:
* Modules and variables imported into the stub are not considered * Modules and variables imported into the stub are not considered
exported from the stub unless the import uses the ``import ... as exported from the stub unless the import uses the ``import ... as
...`` form. ...`` form or the equivalent ``from ... import ... as ...`` form.
* However, as an exception to the previous bullet, all objects
imported into a stub using ``from ... import *`` are considered
exported. (This makes it easier to re-export all objects from a
given module that may very by Python version.)
Function overloading Function overloading
-------------------- --------------------