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
1aef6b6e
Kaydet (Commit)
1aef6b6e
authored
Mar 24, 2011
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #11634: Remove misleading paragraph from a comment
üst
57648308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
bytesobject.c
Objects/bytesobject.c
+2
-6
No files found.
Objects/bytesobject.c
Dosyayı görüntüle @
1aef6b6e
...
@@ -41,10 +41,6 @@ static PyBytesObject *nullstring;
...
@@ -41,10 +41,6 @@ static PyBytesObject *nullstring;
#define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
#define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
/*
/*
For both PyBytes_FromString() and PyBytes_FromStringAndSize(), the
parameter `size' denotes number of characters to allocate, not counting any
null terminating character.
For PyBytes_FromString(), the parameter `str' points to a null-terminated
For PyBytes_FromString(), the parameter `str' points to a null-terminated
string containing exactly `size' bytes.
string containing exactly `size' bytes.
...
@@ -61,8 +57,8 @@ static PyBytesObject *nullstring;
...
@@ -61,8 +57,8 @@ static PyBytesObject *nullstring;
The PyObject member `op->ob_size', which denotes the number of "extra
The PyObject member `op->ob_size', which denotes the number of "extra
items" in a variable-size object, will contain the number of bytes
items" in a variable-size object, will contain the number of bytes
allocated for string data, not counting the null terminating character.
It
allocated for string data, not counting the null terminating character.
is therefore equal to th
e equal to the `size' parameter (for
It is therefor
e equal to the `size' parameter (for
PyBytes_FromStringAndSize()) or the length of the string in the `str'
PyBytes_FromStringAndSize()) or the length of the string in the `str'
parameter (for PyBytes_FromString()).
parameter (for PyBytes_FromString()).
*/
*/
...
...
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