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
76e47f3d
Commit
76e47f3d
authored
Nov 02, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change last Ellipses to Ellipsis :-(
parent
f93f1014
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/tut.tex
Doc/tut.tex
+3
-3
Doc/tut/tut.tex
Doc/tut/tut.tex
+3
-3
No files found.
Doc/tut.tex
View file @
76e47f3d
...
...
@@ -3942,10 +3942,10 @@ e.g. \code{x[1, 2, 3]} is equivalent to \code{x[(1, 2, 3)]}.
New slicing syntax. In support of the Numerical Python extension
(distributed independently), slice indices of the form
\code
{
x[lo:hi:stride]
}
are possible, multiple slice indices separated by
commas are allowed, and an index position may be replaced by
ellipse
s,
commas are allowed, and an index position may be replaced by
an ellipsi
s,
as follows:
\code
{
x[a, ..., z]
}
. There's also a new built-in function
\code
{
slice(lo, hi, stride)
}
and a new built-in object
\code
{
Ellips
e
s
}
, which yield the same effect without using special
\code
{
Ellips
i
s
}
, which yield the same effect without using special
syntax. None of the standard sequence types support indexing with
slice objects or ellipses yet.
...
...
@@ -3964,7 +3964,7 @@ x[::-1] -> slice(None, None, -1)
x[::] -> slice(None, None, None)
x[1, 2:3] -> (1, slice(2, 3, None))
x[1:2, 3:4] -> (slice(1, 2, None), slice(3, 4, None))
x[1:2, ..., 3:4] -> (slice(1, 2, None), Ellips
e
s,
x[1:2, ..., 3:4] -> (slice(1, 2, None), Ellips
i
s,
slice(3, 4, None))
\end{verbatim}
...
...
Doc/tut/tut.tex
View file @
76e47f3d
...
...
@@ -3942,10 +3942,10 @@ e.g. \code{x[1, 2, 3]} is equivalent to \code{x[(1, 2, 3)]}.
New slicing syntax. In support of the Numerical Python extension
(distributed independently), slice indices of the form
\code
{
x[lo:hi:stride]
}
are possible, multiple slice indices separated by
commas are allowed, and an index position may be replaced by
ellipse
s,
commas are allowed, and an index position may be replaced by
an ellipsi
s,
as follows:
\code
{
x[a, ..., z]
}
. There's also a new built-in function
\code
{
slice(lo, hi, stride)
}
and a new built-in object
\code
{
Ellips
e
s
}
, which yield the same effect without using special
\code
{
Ellips
i
s
}
, which yield the same effect without using special
syntax. None of the standard sequence types support indexing with
slice objects or ellipses yet.
...
...
@@ -3964,7 +3964,7 @@ x[::-1] -> slice(None, None, -1)
x[::] -> slice(None, None, None)
x[1, 2:3] -> (1, slice(2, 3, None))
x[1:2, 3:4] -> (slice(1, 2, None), slice(3, 4, None))
x[1:2, ..., 3:4] -> (slice(1, 2, None), Ellips
e
s,
x[1:2, ..., 3:4] -> (slice(1, 2, None), Ellips
i
s,
slice(3, 4, None))
\end{verbatim}
...
...
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