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 0690c86 commit 59ecafaCopy full SHA for 59ecafa
1 file changed
Doc/whatsnew/whatsnew20.tex
@@ -607,6 +607,10 @@ \section{Core Changes}
607
291. \code{int(123, 16)} raises a \exception{TypeError} exception
608
with the message ``can't convert non-string with explicit base''.
609
610
+Modules can now be renamed on importing them, using the syntax
611
+\code{import \var{module} as \var{name}} or \code{from \var{module}
612
+import \var{name} as \var{othername}}.
613
+
614
Previously there was no way to implement a class that overrode
615
Python's built-in \keyword{in} operator and implemented a custom
616
version. \code{\var{obj} in \var{seq}} returns true if \var{obj} is
0 commit comments