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
7f703380
Commit
7f703380
authored
Mar 13, 2015
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the default is sys.maxsize not sys.maxint (closes #23645)
parent
ef13cf80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+9
-9
No files found.
Doc/reference/datamodel.rst
View file @
7f703380
...
...
@@ -1993,15 +1993,15 @@ objects. Immutable sequences methods should at most only define
:meth:`__getslice__`. Therefore, you have to override it in derived
classes when implementing slicing.)
Called to implement evaluation of ``self[i:j]``. The returned object should
be
of the same type as *self*. Note that missing *i* or *j* in the slice
expression are replaced by zero or
``sys.maxint``, respectively. If negative
indexes are used in the slice, the length of the sequence is added to that
index. If the instance does not implement the :meth:`__len__` method, an
:exc:`AttributeError` is raised. No guarantee is made that indexes adjusted thi
s
way are not still negative. Indexes which are greater than the length of
the
sequence are not modified. If no :meth:`__getslice__` is found, a slice object
is created instead, and passed to :meth:`__getitem__` instead.
Called to implement evaluation of ``self[i:j]``. The returned object should
be
of the same type as *self*. Note that missing *i* or *j* in the slice
expression are replaced by zero or
:attr:`sys.maxsize`, respectively. If
negative indexes are used in the slice, the length of the sequence is added
to that index. If the instance does not implement the :meth:`__len__` method,
an :exc:`AttributeError` is raised. No guarantee is made that indexe
s
adjusted this way are not still negative. Indexes which are greater than
the
length of the sequence are not modified. If no :meth:`__getslice__` is found,
a slice object
is created instead, and passed to :meth:`__getitem__` instead.
.. method:: object.__setslice__(self, i, j, sequence)
...
...
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