mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Added note about __builtin__._ to section dicussing classes of
reserved names, just to avoid confusion on the part of users.
This commit is contained in:
parent
57ed139c22
commit
39fc1bc329
1 changed files with 15 additions and 5 deletions
|
@ -263,14 +263,24 @@ def finally in print
|
||||||
Certain classes of identifiers (besides keywords) have special
|
Certain classes of identifiers (besides keywords) have special
|
||||||
meanings. These are:
|
meanings. These are:
|
||||||
|
|
||||||
\begin{tableii}{l|l}{code}{Form}{Meaning}
|
\begin{tableiii}{l|l|l}{code}{Form}{Meaning}{Notes}
|
||||||
\lineii{_*}{Not imported by \samp{from \var{module} import *}}
|
\lineiii{_*}{Not imported by \samp{from \var{module} import *}}{(1)}
|
||||||
\lineii{__*__}{System-defined name}
|
\lineiii{__*__}{System-defined name}{}
|
||||||
\lineii{__*}{Class-private name mangling}
|
\lineiii{__*}{Class-private name mangling}{}
|
||||||
\end{tableii}
|
\end{tableiii}
|
||||||
|
|
||||||
(XXX need section references here.)
|
(XXX need section references here.)
|
||||||
|
|
||||||
|
Note:
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[(1)] The special identifier \samp{_} is used in the interactive
|
||||||
|
interpreter to store the result of the last evaluation; it is stored
|
||||||
|
in the \module{__builtin__} module. When not in interactive mode,
|
||||||
|
\samp{_} has no special meaning and is not defined.
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
|
||||||
\section{Literals\label{literals}}
|
\section{Literals\label{literals}}
|
||||||
|
|
||||||
Literals are notations for constant values of some built-in types.
|
Literals are notations for constant values of some built-in types.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue