diff options
author | Barry Warsaw <barry@python.org> | 2001-08-16 20:39:24 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-16 20:39:24 +0000 |
commit | 2907fe6ce7376e73d84c8a29dedd37d8b3e4a225 (patch) | |
tree | 5b6037aed9b5b2e8cefce3e8f8f26eb353db3eae /Objects/classobject.c | |
parent | e791a6421fae40dd7aae1f67fd6b6d737c510af7 (diff) | |
download | cpython-git-2907fe6ce7376e73d84c8a29dedd37d8b3e4a225.tar.gz |
module_repr(): Instead of fixing the maximum buf size to 400,
calculate it on the fly. This way even modules with long package
names get an accurate repr instead of a truncated one. The extra
malloc/free cost shouldn't be a problem in a repr function.
Closes SF bug #437984
Diffstat (limited to 'Objects/classobject.c')
0 files changed, 0 insertions, 0 deletions