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
f6eebbb4
Kaydet (Commit)
f6eebbb4
authored
Mar 15, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #530105: Allow file object may to be subtyped
üst
d36cfe49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
fileobject.h
Include/fileobject.h
+11
-0
fileobject.c
Objects/fileobject.c
+0
-11
No files found.
Include/fileobject.h
Dosyayı görüntüle @
f6eebbb4
...
...
@@ -7,6 +7,17 @@
extern
"C"
{
#endif
typedef
struct
{
PyObject_HEAD
FILE
*
f_fp
;
PyObject
*
f_name
;
PyObject
*
f_mode
;
int
(
*
f_close
)(
FILE
*
);
int
f_softspace
;
/* Flag used by 'print' command */
int
f_binary
;
/* Flag which indicates whether the file is
open in binary (1) or test (0) mode */
}
PyFileObject
;
extern
DL_IMPORT
(
PyTypeObject
)
PyFile_Type
;
#define PyFile_Check(op) PyObject_TypeCheck(op, &PyFile_Type)
...
...
Objects/fileobject.c
Dosyayı görüntüle @
f6eebbb4
...
...
@@ -38,17 +38,6 @@
#endif
typedef
struct
{
PyObject_HEAD
FILE
*
f_fp
;
PyObject
*
f_name
;
PyObject
*
f_mode
;
int
(
*
f_close
)(
FILE
*
);
int
f_softspace
;
/* Flag used by 'print' command */
int
f_binary
;
/* Flag which indicates whether the file is open
open in binary (1) or test (0) mode */
}
PyFileObject
;
FILE
*
PyFile_AsFile
(
PyObject
*
f
)
{
...
...
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