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
838c7b36
Commit
838c7b36
authored
May 27, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some __getslice__
parent
933d3731
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
Lib/sre_parse.py
Lib/sre_parse.py
+0
-2
Lib/test/test_support.py
Lib/test/test_support.py
+1
-5
No files found.
Lib/sre_parse.py
View file @
838c7b36
...
@@ -139,8 +139,6 @@ class SubPattern:
...
@@ -139,8 +139,6 @@ class SubPattern:
return self.data[index]
return self.data[index]
def __setitem__(self, index, code):
def __setitem__(self, index, code):
self.data[index] = code
self.data[index] = code
def __getslice__(self, start, stop):
return SubPattern(self.pattern, self.data[start:stop])
def insert(self, index, code):
def insert(self, index, code):
self.data.insert(index, code)
self.data.insert(index, code)
def append(self, code):
def append(self, code):
...
...
Lib/test/test_support.py
View file @
838c7b36
...
@@ -597,11 +597,7 @@ _1M = 1024*1024
...
@@ -597,11 +597,7 @@ _1M = 1024*1024
_1G
=
1024
*
_1M
_1G
=
1024
*
_1M
_2G
=
2
*
_1G
_2G
=
2
*
_1G
# Hack to get at the maximum value an internal index can take.
MAX_Py_ssize_t
=
sys
.
maxsize
class
_Dummy
:
def
__getslice__
(
self
,
i
,
j
):
return
j
MAX_Py_ssize_t
=
_Dummy
()[:]
def
set_memlimit
(
limit
):
def
set_memlimit
(
limit
):
import
re
import
re
...
...
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