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
8170200c
Commit
8170200c
authored
Aug 30, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch #797180: Bug 792656: slicing explained
parent
57d71289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+3
-2
No files found.
Doc/lib/libstdtypes.tex
View file @
8170200c
...
...
@@ -530,8 +530,9 @@ In Python 2.3 and beyond, \var{x} may be a string of any length.
\code
{
\var
{
x
}
=
\var
{
i
}
+
\var
{
n
}
*
\var
{
k
}}
such that
\code
{
0
}
\code
{
<=
}
\var
{
n
}
\code
{
<
}
\code
{
abs(i-j)
}
. If
\var
{
i
}
or
\var
{
j
}
is greater than
\code
{
len(
\var
{
s
}
)
}
, use
\code
{
len(
\var
{
s
}
)
}
. If
\var
{
i
}
or
\var
{
j
}
are ommitted then they become ``end'' values
(which end depends on the sign of
\var
{
k
}
).
\var
{
i
}
or
\var
{
j
}
are omitted then they become ``end'' values
(which end depends on the sign of
\var
{
k
}
). Note,
\var
{
k
}
cannot
be zero.
\end{description}
...
...
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