diff options
author | Barry Warsaw <barry@python.org> | 2001-08-24 18:32:06 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-24 18:32:06 +0000 |
commit | f85e345729066b7e6499a5f73639a5d272269d33 (patch) | |
tree | b2ca9c90bd8ca060dc325a220114556ea5fc167b /Python/errors.c | |
parent | b681d607d0fef9452662563fbec7e61f6fc40115 (diff) | |
download | cpython-f85e345729066b7e6499a5f73639a5d272269d33.tar.gz |
PyString_FromFormat() and PyString_FromFormatV(): Largely ripped from
PyErr_Format() these new C API methods can be used instead of
sprintf()'s into hardcoded char* buffers. This allows us to fix
many situation where long package, module, or class names get
truncated in reprs.
PyString_FromFormat() is the varargs variety.
PyString_FromFormatV() is the va_list variety
Original PyErr_Format() code was modified to allow %p and %ld
expansions.
Many reprs were converted to this, checkins coming soo. Not
changed: complex_repr(), float_repr(), float_print(), float_str(),
int_repr(). There may be other candidates not yet converted.
Closes patch #454743.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions