Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f6eebbb4
Commit
f6eebbb4
authored
Mar 15, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #530105: Allow file object may to be subtyped
parent
d36cfe49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Include/fileobject.h
Include/fileobject.h
+11
-0
Objects/fileobject.c
Objects/fileobject.c
+0
-11
No files found.
Include/fileobject.h
View file @
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
View file @
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