diff options
author | Guido van Rossum <guido@python.org> | 1993-01-10 18:33:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-01-10 18:33:56 (GMT) |
commit | e35399ea7ba71e2f9fa7e6f02203dd6a91b01a10 (patch) | |
tree | 1aa6e1579863912561a2a106afb5a24804b07976 /Objects/fileobject.c | |
parent | 775f4dacbc8163f085e07ea4195cf5b67dce5124 (diff) | |
download | cpython-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.c | 5 |
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); } |