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
6251c169
Commit
6251c169
authored
Apr 03, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small nits.
One more index entry. Be more specific about an exception raised by range().
parent
8efde219
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+6
-6
Doc/libfuncs.tex
Doc/libfuncs.tex
+6
-6
No files found.
Doc/lib/libfuncs.tex
View file @
6251c169
...
@@ -425,7 +425,7 @@ there's no reliable way to determine whether this is the case.}
...
@@ -425,7 +425,7 @@ there's no reliable way to determine whether this is the case.}
\begin{funcdesc}
{
pow
}{
x, y
\optional
{
, z
}}
\begin{funcdesc}
{
pow
}{
x, y
\optional
{
, z
}}
Return
\var
{
x
}
to the power
\var
{
y
}
; if
\var
{
z
}
is present, return
Return
\var
{
x
}
to the power
\var
{
y
}
; if
\var
{
z
}
is present, return
\var
{
x
}
to the power
\var
{
y
}
, modulo
\var
{
z
}
(computed more
\var
{
x
}
to the power
\var
{
y
}
, modulo
\var
{
z
}
(computed more
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%
\var
{
z
}}
).
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%
\
\var
{
z
}}
).
The arguments must have
The arguments must have
numeric types. With mixed operand types, the rules for binary
numeric types. With mixed operand types, the rules for binary
arithmetic operators apply. The effective operand type is also the
arithmetic operators apply. The effective operand type is also the
...
@@ -445,8 +445,8 @@ there's no reliable way to determine whether this is the case.}
...
@@ -445,8 +445,8 @@ there's no reliable way to determine whether this is the case.}
the last element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
the last element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
less than
\var
{
stop
}
; if
\var
{
step
}
is negative, the last
\var
{
step
}}
less than
\var
{
stop
}
; if
\var
{
step
}
is negative, the last
element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
greater than
\var
{
stop
}
.
\var
{
step
}
must not be zero (or else
an
greater than
\var
{
stop
}
.
\var
{
step
}
must not be zero (or else
exception
is raised). Example:
\exception
{
ValueError
}
is raised). Example:
\begin{verbatim}
\begin{verbatim}
>>> range(10)
>>> range(10)
...
@@ -575,9 +575,9 @@ and \var{step} arguments default to None. Slice objects have
...
@@ -575,9 +575,9 @@ and \var{step} arguments default to None. Slice objects have
read-only data attributes
\member
{
start
}
,
\member
{
stop
}
and
\member
{
step
}
read-only data attributes
\member
{
start
}
,
\member
{
stop
}
and
\member
{
step
}
which merely return the argument values (or their default). They have
which merely return the argument values (or their default). They have
no other explicit functionality; however they are used by Numerical
no other explicit functionality; however they are used by Numerical
Python
and other third party extensions. Slice objects are also
Python
\index
{
Numerical Python
}
and other third party extensions.
generated when extended indexing syntax is used, e.g. for
Slice objects are also generated when extended indexing syntax is
\code
{
a[start:stop:step]
}
or
\code
{
a[start:stop, i]
}
.
used, e.g. for
\samp
{
a[start:stop:step]
}
or
\samp
{
a[start:stop, i]
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
str
}{
object
}
\begin{funcdesc}
{
str
}{
object
}
...
...
Doc/libfuncs.tex
View file @
6251c169
...
@@ -425,7 +425,7 @@ there's no reliable way to determine whether this is the case.}
...
@@ -425,7 +425,7 @@ there's no reliable way to determine whether this is the case.}
\begin{funcdesc}
{
pow
}{
x, y
\optional
{
, z
}}
\begin{funcdesc}
{
pow
}{
x, y
\optional
{
, z
}}
Return
\var
{
x
}
to the power
\var
{
y
}
; if
\var
{
z
}
is present, return
Return
\var
{
x
}
to the power
\var
{
y
}
; if
\var
{
z
}
is present, return
\var
{
x
}
to the power
\var
{
y
}
, modulo
\var
{
z
}
(computed more
\var
{
x
}
to the power
\var
{
y
}
, modulo
\var
{
z
}
(computed more
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%
\var
{
z
}}
).
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%
\
\var
{
z
}}
).
The arguments must have
The arguments must have
numeric types. With mixed operand types, the rules for binary
numeric types. With mixed operand types, the rules for binary
arithmetic operators apply. The effective operand type is also the
arithmetic operators apply. The effective operand type is also the
...
@@ -445,8 +445,8 @@ there's no reliable way to determine whether this is the case.}
...
@@ -445,8 +445,8 @@ there's no reliable way to determine whether this is the case.}
the last element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
the last element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
less than
\var
{
stop
}
; if
\var
{
step
}
is negative, the last
\var
{
step
}}
less than
\var
{
stop
}
; if
\var
{
step
}
is negative, the last
element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
element is the largest
\code
{
\var
{
start
}
+
\var
{
i
}
*
\var
{
step
}}
greater than
\var
{
stop
}
.
\var
{
step
}
must not be zero (or else
an
greater than
\var
{
stop
}
.
\var
{
step
}
must not be zero (or else
exception
is raised). Example:
\exception
{
ValueError
}
is raised). Example:
\begin{verbatim}
\begin{verbatim}
>>> range(10)
>>> range(10)
...
@@ -575,9 +575,9 @@ and \var{step} arguments default to None. Slice objects have
...
@@ -575,9 +575,9 @@ and \var{step} arguments default to None. Slice objects have
read-only data attributes
\member
{
start
}
,
\member
{
stop
}
and
\member
{
step
}
read-only data attributes
\member
{
start
}
,
\member
{
stop
}
and
\member
{
step
}
which merely return the argument values (or their default). They have
which merely return the argument values (or their default). They have
no other explicit functionality; however they are used by Numerical
no other explicit functionality; however they are used by Numerical
Python
and other third party extensions. Slice objects are also
Python
\index
{
Numerical Python
}
and other third party extensions.
generated when extended indexing syntax is used, e.g. for
Slice objects are also generated when extended indexing syntax is
\code
{
a[start:stop:step]
}
or
\code
{
a[start:stop, i]
}
.
used, e.g. for
\samp
{
a[start:stop:step]
}
or
\samp
{
a[start:stop, i]
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
str
}{
object
}
\begin{funcdesc}
{
str
}{
object
}
...
...
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