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
9474d862
Commit
9474d862
authored
Feb 12, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure all HTML pages generated from this section have reasonable
names. Markup nits.
parent
5761b766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+26
-27
No files found.
Doc/lib/libstdtypes.tex
View file @
9474d862
...
@@ -244,9 +244,7 @@ The result is always rounded towards minus infinity: 1/2 is 0,
...
@@ -244,9 +244,7 @@ The result is always rounded towards minus infinity: 1/2 is 0,
Conversion from floating point to (long or plain) integer may round or
Conversion from floating point to (long or plain) integer may round or
truncate as in
\C
{}
; see functions
\function
{
floor()
}
and
\function
{
ceil()
}
in
truncate as in
\C
{}
; see functions
\function
{
floor()
}
and
\function
{
ceil()
}
in
module
\module
{
math
}
for well-defined conversions.
module
\module
{
math
}
for well-defined conversions.
\withsubitem
{
(in module math)
}{
%
\withsubitem
{
(in module math)
}{
\ttindex
{
floor()
}
\ttindex
{
ceil()
}}
\ttindex
{
floor()
}
%
\ttindex
{
ceil()
}}
\indexii
{
numeric
}{
conversions
}
\indexii
{
numeric
}{
conversions
}
\refbimodindex
{
math
}
\refbimodindex
{
math
}
\indexii
{
C@
\C
{}}{
language
}
\indexii
{
C@
\C
{}}{
language
}
...
@@ -377,7 +375,8 @@ Notes:
...
@@ -377,7 +375,8 @@ Notes:
\end{description}
\end{description}
\subsubsection
{
More String Operations
}
\subsubsection
{
More String Operations
\label
{
typesseq-strings
}}
String objects have one unique built-in operation: the
\code
{
\%
}
String objects have one unique built-in operation: the
\code
{
\%
}
operator (modulo) with a string left argument interprets this string
operator (modulo) with a string left argument interprets this string
...
@@ -433,7 +432,7 @@ Additional string operations are defined in standard module
...
@@ -433,7 +432,7 @@ Additional string operations are defined in standard module
\refstmodindex
{
string
}
\refstmodindex
{
string
}
\refstmodindex
{
re
}
\refstmodindex
{
re
}
\subsubsection
{
Mutable Sequence Types
}
\subsubsection
{
Mutable Sequence Types
\label
{
typesseq-mutable
}
}
List objects support additional operations that allow in-place
List objects support additional operations that allow in-place
modification of the object.
modification of the object.
...
@@ -479,15 +478,15 @@ The following operations are defined on mutable sequence types (where
...
@@ -479,15 +478,15 @@ The following operations are defined on mutable sequence types (where
\indexii
{
subscript
}{
assignment
}
\indexii
{
subscript
}{
assignment
}
\indexii
{
slice
}{
assignment
}
\indexii
{
slice
}{
assignment
}
\stindex
{
del
}
\stindex
{
del
}
\withsubitem
{
(list method)
}{
%
\withsubitem
{
(list method)
}{
\ttindex
{
append()
}
%
\ttindex
{
append()
}
\ttindex
{
extend()
}
%
\ttindex
{
extend()
}
\ttindex
{
count()
}
%
\ttindex
{
count()
}
\ttindex
{
index()
}
%
\ttindex
{
index()
}
\ttindex
{
insert()
}
%
\ttindex
{
insert()
}
\ttindex
{
pop()
}
%
\ttindex
{
pop()
}
\ttindex
{
remove()
}
%
\ttindex
{
remove()
}
\ttindex
{
reverse()
}
%
\ttindex
{
reverse()
}
\ttindex
{
sort()
}}
\ttindex
{
sort()
}}
\noindent
\noindent
Notes:
Notes:
...
@@ -562,14 +561,14 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object):
...
@@ -562,14 +561,14 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object):
\indexiii
{
operations on
}{
dictionary
}{
type
}
\indexiii
{
operations on
}{
dictionary
}{
type
}
\stindex
{
del
}
\stindex
{
del
}
\bifuncindex
{
len
}
\bifuncindex
{
len
}
\withsubitem
{
(dictionary method)
}{
%
\withsubitem
{
(dictionary method)
}{
\ttindex
{
clear()
}
%
\ttindex
{
clear()
}
\ttindex
{
copy()
}
%
\ttindex
{
copy()
}
\ttindex
{
has
_
key()
}
%
\ttindex
{
has
_
key()
}
\ttindex
{
items()
}
%
\ttindex
{
items()
}
\ttindex
{
keys()
}
%
\ttindex
{
keys()
}
\ttindex
{
update()
}
%
\ttindex
{
update()
}
\ttindex
{
values()
}
%
\ttindex
{
values()
}
\ttindex
{
get()
}}
\ttindex
{
get()
}}
\noindent
\noindent
Notes:
Notes:
...
@@ -591,7 +590,7 @@ and \var{k} is not in the map, \code{None} is returned.
...
@@ -591,7 +590,7 @@ and \var{k} is not in the map, \code{None} is returned.
The interpreter supports several other kinds of objects.
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
Most of these support only one or two operations.
\subsubsection
{
Modules
}
\subsubsection
{
Modules
\label
{
typesmodules
}
}
The only special operation on a module is attribute access:
The only special operation on a module is attribute access:
\code
{
\var
{
m
}
.
\var
{
name
}}
, where
\var
{
m
}
is a module and
\var
{
name
}
\code
{
\var
{
m
}
.
\var
{
name
}}
, where
\var
{
m
}
is a module and
\var
{
name
}
...
@@ -612,12 +611,12 @@ defines \code{\var{m}.a} to be \code{1}, but you can't write
...
@@ -612,12 +611,12 @@ defines \code{\var{m}.a} to be \code{1}, but you can't write
Modules are written like this:
\code
{
<module 'sys'>
}
.
Modules are written like this:
\code
{
<module 'sys'>
}
.
\subsubsection
{
Classes and Class Instances
}
\subsubsection
{
Classes and Class Instances
\label
{
typesobjects
}
}
\nodename
{
Classes and Instances
}
\nodename
{
Classes and Instances
}
See Chapters 3 and 7 of the
\emph
{
Python Reference Manual
}
for these.
See Chapters 3 and 7 of the
\emph
{
Python Reference Manual
}
for these.
\subsubsection
{
Functions
}
\subsubsection
{
Functions
\label
{
typesfunctions
}
}
Function objects are created by function definitions. The only
Function objects are created by function definitions. The only
operation on a function object is to call it:
operation on a function object is to call it:
...
@@ -636,7 +635,7 @@ same as \code{\var{m}.__dict__} where \var{m} is the module in which
...
@@ -636,7 +635,7 @@ same as \code{\var{m}.__dict__} where \var{m} is the module in which
the function
\var
{
f
}
was defined).
the function
\var
{
f
}
was defined).
\subsubsection
{
Methods
}
\subsubsection
{
Methods
\label
{
typesmethods
}
}
\obindex
{
method
}
\obindex
{
method
}
Methods are functions that are called using the attribute notation.
Methods are functions that are called using the attribute notation.
...
@@ -848,7 +847,7 @@ implemented in \C{} will have to provide a writable \member{softspace}
...
@@ -848,7 +847,7 @@ implemented in \C{} will have to provide a writable \member{softspace}
attribute.
attribute.
\end{memberdesc}
\end{memberdesc}
\subsubsection
{
Internal Objects
}
\subsubsection
{
Internal Objects
\label
{
typesinternal
}
}
See the
\emph
{
Python Reference Manual
}
for this information. It
See the
\emph
{
Python Reference Manual
}
for this information. It
describes code objects, stack frame objects, traceback objects, and
describes code objects, stack frame objects, traceback objects, and
...
...
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