Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
838c7b36
Kaydet (Commit)
838c7b36
authored
May 27, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove some __getslice__
üst
933d3731
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
sre_parse.py
Lib/sre_parse.py
+0
-2
test_support.py
Lib/test/test_support.py
+1
-5
No files found.
Lib/sre_parse.py
Dosyayı görüntüle @
838c7b36
...
...
@@ -139,8 +139,6 @@ class SubPattern:
return
self
.
data
[
index
]
def
__setitem__
(
self
,
index
,
code
):
self
.
data
[
index
]
=
code
def
__getslice__
(
self
,
start
,
stop
):
return
SubPattern
(
self
.
pattern
,
self
.
data
[
start
:
stop
])
def
insert
(
self
,
index
,
code
):
self
.
data
.
insert
(
index
,
code
)
def
append
(
self
,
code
):
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
838c7b36
...
...
@@ -597,11 +597,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
...
...
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