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
6233c9b4
Kaydet (Commit)
6233c9b4
authored
Ara 11, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #650834: Document 'U' in file mode, remove stale variables.
üst
0479104a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
fileobject.c
Objects/fileobject.c
+1
-5
No files found.
Objects/fileobject.c
Dosyayı görüntüle @
6233c9b4
...
@@ -1614,7 +1614,7 @@ static PyMemberDef file_memberlist[] = {
...
@@ -1614,7 +1614,7 @@ static PyMemberDef file_memberlist[] = {
{
"softspace"
,
T_INT
,
OFF
(
f_softspace
),
0
,
{
"softspace"
,
T_INT
,
OFF
(
f_softspace
),
0
,
"flag indicating that a space needs to be printed; used by print"
},
"flag indicating that a space needs to be printed; used by print"
},
{
"mode"
,
T_OBJECT
,
OFF
(
f_mode
),
RO
,
{
"mode"
,
T_OBJECT
,
OFF
(
f_mode
),
RO
,
"file mode ('r', 'w', 'a', possibly with 'b' or '+' added)"
},
"file mode ('r', '
U', '
w', 'a', possibly with 'b' or '+' added)"
},
{
"name"
,
T_OBJECT
,
OFF
(
f_name
),
RO
,
{
"name"
,
T_OBJECT
,
OFF
(
f_name
),
RO
,
"file name"
},
"file name"
},
/* getattr(f, "closed") is implemented without this table */
/* getattr(f, "closed") is implemented without this table */
...
@@ -1767,13 +1767,9 @@ file_iternext(PyFileObject *f)
...
@@ -1767,13 +1767,9 @@ file_iternext(PyFileObject *f)
{
{
PyStringObject
*
l
;
PyStringObject
*
l
;
int
i
;
if
(
f
->
f_fp
==
NULL
)
if
(
f
->
f_fp
==
NULL
)
return
err_closed
();
return
err_closed
();
i
=
f
->
f_softspace
;
l
=
readahead_get_line_skip
(
f
,
0
,
READAHEAD_BUFSIZE
);
l
=
readahead_get_line_skip
(
f
,
0
,
READAHEAD_BUFSIZE
);
if
(
l
==
NULL
||
PyString_GET_SIZE
(
l
)
==
0
)
{
if
(
l
==
NULL
||
PyString_GET_SIZE
(
l
)
==
0
)
{
Py_XDECREF
(
l
);
Py_XDECREF
(
l
);
...
...
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