Mercurial > cpython-lru_cache-weakref
diff Objects/codeobject.c @ 67367:a0d4eda8da0a
Remove arbitrary string length limits
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed
size, it is no more a fixed-buffer of 500 bytes.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Wed, 05 Jan 2011 03:33:26 +0000 |
| parents | 3bf4d9f1660a |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Objects/codeobject.c Wed Jan 05 01:39:32 2011 +0000 +++ b/Objects/codeobject.c Wed Jan 05 03:33:26 2011 +0000 @@ -347,11 +347,11 @@ lineno = -1; if (co->co_filename && PyUnicode_Check(co->co_filename)) { return PyUnicode_FromFormat( - "<code object %.100U at %p, file \"%.300U\", line %d>", + "<code object %U at %p, file \"%U\", line %d>", co->co_name, co, co->co_filename, lineno); } else { return PyUnicode_FromFormat( - "<code object %.100U at %p, file ???, line %d>", + "<code object %U at %p, file ???, line %d>", co->co_name, co, lineno); } }
