mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove the simple slicing API. All slicing is now done with slice objects.
This commit is contained in:
parent
582b586617
commit
d2cf20eea2
32 changed files with 78 additions and 810 deletions
|
@ -423,11 +423,7 @@ _1M = 1024*1024
|
|||
_1G = 1024 * _1M
|
||||
_2G = 2 * _1G
|
||||
|
||||
# Hack to get at the maximum value an internal index can take.
|
||||
class _Dummy:
|
||||
def __getslice__(self, i, j):
|
||||
return j
|
||||
MAX_Py_ssize_t = _Dummy()[:]
|
||||
MAX_Py_ssize_t = sys.maxsize
|
||||
|
||||
def set_memlimit(limit):
|
||||
import re
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue