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
440bbd0e
Kaydet (Commit)
440bbd0e
authored
Eyl 08, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct occurance → occurrence; extracted from patch by Georg Brandl
üst
6507657d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bytearrayobject.c
Objects/bytearrayobject.c
+2
-2
stringobject.c
Objects/stringobject.c
+1
-1
No files found.
Objects/bytearrayobject.c
Dosyayı görüntüle @
440bbd0e
...
@@ -1990,7 +1990,7 @@ replace(PyByteArrayObject *self,
...
@@ -1990,7 +1990,7 @@ replace(PyByteArrayObject *self,
}
}
if
(
to_len
==
0
)
{
if
(
to_len
==
0
)
{
/* delete all occur
a
nces of 'from' bytes */
/* delete all occur
re
nces of 'from' bytes */
if
(
from_len
==
1
)
{
if
(
from_len
==
1
)
{
return
replace_delete_single_character
(
return
replace_delete_single_character
(
self
,
from_s
[
0
],
maxcount
);
self
,
from_s
[
0
],
maxcount
);
...
@@ -2399,7 +2399,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
...
@@ -2399,7 +2399,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
PyDoc_STRVAR
(
remove__doc__
,
PyDoc_STRVAR
(
remove__doc__
,
"B.remove(int) -> None
\n
\
"B.remove(int) -> None
\n
\
\n
\
\n
\
Remove the first occur
a
nce of a value in B."
);
Remove the first occur
re
nce of a value in B."
);
static
PyObject
*
static
PyObject
*
bytearray_remove
(
PyByteArrayObject
*
self
,
PyObject
*
arg
)
bytearray_remove
(
PyByteArrayObject
*
self
,
PyObject
*
arg
)
{
{
...
...
Objects/stringobject.c
Dosyayı görüntüle @
440bbd0e
...
@@ -2775,7 +2775,7 @@ replace(PyStringObject *self,
...
@@ -2775,7 +2775,7 @@ replace(PyStringObject *self,
}
}
if
(
to_len
==
0
)
{
if
(
to_len
==
0
)
{
/* delete all occur
a
nces of 'from' string */
/* delete all occur
re
nces of 'from' string */
if
(
from_len
==
1
)
{
if
(
from_len
==
1
)
{
return
replace_delete_single_character
(
return
replace_delete_single_character
(
self
,
from_s
[
0
],
maxcount
);
self
,
from_s
[
0
],
maxcount
);
...
...
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