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
6a38ceda
Kaydet (Commit)
6a38ceda
authored
Haz 14, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
just throw a normal AttributeError for no buffer attribute
üst
2a8b54d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
NEWS
Misc/NEWS
+3
-0
stringio.c
Modules/_io/stringio.c
+0
-9
No files found.
Misc/NEWS
Dosyayı görüntüle @
6a38ceda
...
@@ -15,6 +15,9 @@ Core and Builtins
...
@@ -15,6 +15,9 @@ Core and Builtins
Library
Library
-------
-------
- Accessing io.StringIO.buffer now raises an AttributeError instead of
io.UnsupportedOperation.
- Issue #6271: mmap tried to close invalid file handle (-1) when annonymous.
- Issue #6271: mmap tried to close invalid file handle (-1) when annonymous.
(On Unix)
(On Unix)
...
...
Modules/_io/stringio.c
Dosyayı görüntüle @
6a38ceda
...
@@ -645,14 +645,6 @@ stringio_writable(stringio *self, PyObject *args)
...
@@ -645,14 +645,6 @@ stringio_writable(stringio *self, PyObject *args)
Py_RETURN_TRUE
;
Py_RETURN_TRUE
;
}
}
static
PyObject
*
stringio_buffer
(
stringio
*
self
,
void
*
context
)
{
PyErr_SetString
(
IO_STATE
->
unsupported_operation
,
"buffer attribute is unsupported on type StringIO"
);
return
NULL
;
}
static
PyObject
*
static
PyObject
*
stringio_closed
(
stringio
*
self
,
void
*
context
)
stringio_closed
(
stringio
*
self
,
void
*
context
)
{
{
...
@@ -703,7 +695,6 @@ static PyGetSetDef stringio_getset[] = {
...
@@ -703,7 +695,6 @@ static PyGetSetDef stringio_getset[] = {
Hopefully, a better solution, than adding these pseudo-attributes,
Hopefully, a better solution, than adding these pseudo-attributes,
will be found.
will be found.
*/
*/
{
"buffer"
,
(
getter
)
stringio_buffer
,
NULL
,
NULL
},
{
"line_buffering"
,
(
getter
)
stringio_line_buffering
,
NULL
,
NULL
},
{
"line_buffering"
,
(
getter
)
stringio_line_buffering
,
NULL
,
NULL
},
{
NULL
}
{
NULL
}
};
};
...
...
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