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
1014b6c2
Kaydet (Commit)
1014b6c2
authored
Şub 17, 2013
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge
üst
832eddea
d0dbb20f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fnmatch.py
Lib/fnmatch.py
+1
-1
re.py
Lib/re.py
+2
-2
No files found.
Lib/fnmatch.py
Dosyayı görüntüle @
1014b6c2
...
...
@@ -35,7 +35,7 @@ def fnmatch(name, pat):
pat
=
os
.
path
.
normcase
(
pat
)
return
fnmatchcase
(
name
,
pat
)
@functools.lru_cache
(
maxsize
=
25
0
,
typed
=
True
)
@functools.lru_cache
(
maxsize
=
25
6
,
typed
=
True
)
def
_compile_pattern
(
pat
):
if
isinstance
(
pat
,
bytes
):
pat_str
=
str
(
pat
,
'ISO-8859-1'
)
...
...
Lib/re.py
Dosyayı görüntüle @
1014b6c2
...
...
@@ -261,7 +261,7 @@ def escape(pattern):
_pattern_type
=
type
(
sre_compile
.
compile
(
""
,
0
))
@functools.lru_cache
(
maxsize
=
5
00
,
typed
=
True
)
@functools.lru_cache
(
maxsize
=
5
12
,
typed
=
True
)
def
_compile
(
pattern
,
flags
):
# internal: compile pattern
if
isinstance
(
pattern
,
_pattern_type
):
...
...
@@ -273,7 +273,7 @@ def _compile(pattern, flags):
raise
TypeError
(
"first argument must be string or compiled pattern"
)
return
sre_compile
.
compile
(
pattern
,
flags
)
@functools.lru_cache
(
maxsize
=
5
00
)
@functools.lru_cache
(
maxsize
=
5
12
)
def
_compile_repl
(
repl
,
pattern
):
# internal: compile replacement pattern
return
sre_parse
.
parse_template
(
repl
,
pattern
)
...
...
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