Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e7c205

Browse files
committed
Update description of what modules "look like" when printed.
1 parent cd71aa2 commit 4e7c205

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Doc/lib/libstdtypes.tex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ \subsection{Numeric Types \label{typesnumeric}}
255255
\end{description}
256256
% XXXJH exceptions: overflow (when? what operations?) zerodivision
257257

258-
\subsubsection{Bit-string Operations on Integer Types}
258+
\subsubsection{Bit-string Operations on Integer Types \label{bitstring-ops}}
259259
\nodename{Bit-string Operations}
260260

261261
Plain and long integer types support additional operations that make
@@ -590,6 +590,7 @@ \subsection{Other Built-in Types \label{typesother}}
590590
The interpreter supports several other kinds of objects.
591591
Most of these support only one or two operations.
592592

593+
593594
\subsubsection{Modules \label{typesmodules}}
594595

595596
The only special operation on a module is attribute access:
@@ -609,13 +610,17 @@ \subsubsection{Modules \label{typesmodules}}
609610
defines \code{\var{m}.a} to be \code{1}, but you can't write
610611
\code{\var{m}.__dict__ = \{\}}.
611612

612-
Modules are written like this: \code{<module 'sys'>}.
613+
Modules built into the interpreter are written like this:
614+
\code{<module 'sys' (built-in)>}. If loaded from a file, they are
615+
written as \code{<module 'os' from '/usr/local/lib/python1.5/os.pyc'>}.
616+
613617

614618
\subsubsection{Classes and Class Instances \label{typesobjects}}
615619
\nodename{Classes and Instances}
616620

617621
See Chapters 3 and 7 of the \emph{Python Reference Manual} for these.
618622

623+
619624
\subsubsection{Functions \label{typesfunctions}}
620625

621626
Function objects are created by function definitions. The only

0 commit comments

Comments
 (0)