summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-01-10 18:33:56 (GMT)
committerGuido van Rossum <guido@python.org>1993-01-10 18:33:56 (GMT)
commite35399ea7ba71e2f9fa7e6f02203dd6a91b01a10 (patch)
tree1aa6e1579863912561a2a106afb5a24804b07976 /Objects/fileobject.c
parent775f4dacbc8163f085e07ea4195cf5b67dce5124 (diff)
downloadcpython-e35399ea7ba71e2f9fa7e6f02203dd6a91b01a10.zip
cpython-e35399ea7ba71e2f9fa7e6f02203dd6a91b01a10.tar.gz
cpython-e35399ea7ba71e2f9fa7e6f02203dd6a91b01a10.tar.bz2
Checking in last-minute changes that are already part of release 0.9.8
Diffstat (limited to 'Objects/fileobject.c')
-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);
}