summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 00020dc..b84819e 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -136,10 +136,11 @@ file_repr(f)
fileobject *f;
{
char buf[300];
- sprintf(buf, "<%s file '%.256s', mode '%.10s'>",
+ sprintf(buf, "<%s file '%.256s', mode '%.10s' at %lx>",
f->f_fp == NULL ? "closed" : "open",
getstringvalue(f->f_name),
- getstringvalue(f->f_mode));
+ getstringvalue(f->f_mode),
+ (long)f);
return newstringobject(buf);
}