diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-10 13:50:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-10 13:50:22 (GMT) |
commit | c20658249da47408c2d2455de87d7e70445cf3f0 (patch) | |
tree | 67869179c22204771ab58e33b6ecdef74c4ef072 /Python/symtable.c | |
parent | 77356f6f9607b1e9700f988912ad70ecaef024cc (diff) | |
download | cpython-c20658249da47408c2d2455de87d7e70445cf3f0.zip cpython-c20658249da47408c2d2455de87d7e70445cf3f0.tar.gz cpython-c20658249da47408c2d2455de87d7e70445cf3f0.tar.bz2 |
[3.11] gh-109207: Fix SystemError when printing symtable entry object. (GH-109225) (GH-109228)
(cherry picked from commit 429749969621b149c1a7c3c004bd44f52bec8f44)
Co-authored-by: δΊ‘line <31395137+yunline@users.noreply.github.com>
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index afe05c7..37e5c69 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -128,9 +128,8 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block, static PyObject * ste_repr(PySTEntryObject *ste) { - return PyUnicode_FromFormat("<symtable entry %U(%ld), line %d>", - ste->ste_name, - PyLong_AS_LONG(ste->ste_id), ste->ste_lineno); + return PyUnicode_FromFormat("<symtable entry %U(%R), line %d>", + ste->ste_name, ste->ste_id, ste->ste_lineno); } static void |