Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
edd848a0
Commit
edd848a0
authored
Feb 19, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update description of what modules "look like" when printed.
parent
6c7250eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+7
-2
No files found.
Doc/lib/libstdtypes.tex
View file @
edd848a0
...
...
@@ -255,7 +255,7 @@ See the section on built-in functions for an exact definition.
\end{description}
% XXXJH exceptions: overflow (when? what operations?) zerodivision
\subsubsection
{
Bit-string Operations on Integer Types
}
\subsubsection
{
Bit-string Operations on Integer Types
\label
{
bitstring-ops
}
}
\nodename
{
Bit-string Operations
}
Plain and long integer types support additional operations that make
...
...
@@ -590,6 +590,7 @@ and \var{k} is not in the map, \code{None} is returned.
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
\subsubsection
{
Modules
\label
{
typesmodules
}}
The only special operation on a module is attribute access:
...
...
@@ -609,13 +610,17 @@ possible (i.e., you can write \code{\var{m}.__dict__['a'] = 1}, which
defines
\code
{
\var
{
m
}
.a
}
to be
\code
{
1
}
, but you can't write
\code
{
\var
{
m
}
.
__
dict
__
=
\{\}
}
.
Modules are written like this:
\code
{
<module 'sys'>
}
.
Modules built into the interpreter are written like this:
\code
{
<module 'sys' (built-in)>
}
. If loaded from a file, they are
written as
\code
{
<module 'os' from '/usr/local/lib/python1.5/os.pyc'>
}
.
\subsubsection
{
Classes and Class Instances
\label
{
typesobjects
}}
\nodename
{
Classes and Instances
}
See Chapters 3 and 7 of the
\emph
{
Python Reference Manual
}
for these.
\subsubsection
{
Functions
\label
{
typesfunctions
}}
Function objects are created by function definitions. The only
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment