diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-17 23:37:01 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-17 23:37:01 (GMT) |
commit | 59ecafa526ba504328a4a6f91659be55a2c163a0 (patch) | |
tree | a79ec250e41c703b39f5bb619c89cf28240a9c6c /Doc/whatsnew | |
parent | 0690c86a2a2e0902d9b29337f9e2886f573f1dee (diff) | |
download | cpython-59ecafa526ba504328a4a6f91659be55a2c163a0.zip cpython-59ecafa526ba504328a4a6f91659be55a2c163a0.tar.gz cpython-59ecafa526ba504328a4a6f91659be55a2c163a0.tar.bz2 |
Mention the new 'import X as Y' syntax
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew20.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew20.tex b/Doc/whatsnew/whatsnew20.tex index b2fe857..3081d16 100644 --- a/Doc/whatsnew/whatsnew20.tex +++ b/Doc/whatsnew/whatsnew20.tex @@ -607,6 +607,10 @@ optional ``base'' parameter when the first argument is a string. 291. \code{int(123, 16)} raises a \exception{TypeError} exception with the message ``can't convert non-string with explicit base''. +Modules can now be renamed on importing them, using the syntax +\code{import \var{module} as \var{name}} or \code{from \var{module} +import \var{name} as \var{othername}}. + Previously there was no way to implement a class that overrode Python's built-in \keyword{in} operator and implemented a custom version. \code{\var{obj} in \var{seq}} returns true if \var{obj} is |