Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3432829 commit f519523Copy full SHA for f519523
1 file changed
Doc/whatsnew/3.0.rst
@@ -457,10 +457,9 @@ Removed Syntax
457
* The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only
458
allowed at the module level, no longer inside functions.
459
460
-* The only acceptable syntaxes for relative imports are :keyword:`from`
461
- ``.`` :keyword:`import` *name* or
462
- :keyword:`from` ``.module`` :keyword:`import` *name*.
463
- :keyword:`import` forms not starting with ``.`` are always
+* The only acceptable syntax for relative imports is :keyword:`from`
+ ``.`` [*module*] :keyword:`import` *name*.
+ All :keyword:`import` forms not starting with ``.`` are
464
interpreted as absolute imports. (:pep:`0328`)
465
466
* Classic classes are gone.
0 commit comments