[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()
hai shi
report at bugs.python.org
Mon Oct 28 11:08:30 EDT 2019
New submission from hai shi <shihai1991 at 126.com>:
I don't know why don't use refcount
`
/* borrowed reference */
c.c_filename = filename;
`
in https://github.com/python/cpython/blob/master/Python/ast.c#L786-L787
like
`
Py_INCREF(filename);
c.c_filename = filename;
`
in https://github.com/python/cpython/blob/master/Python/compile.c#L333
----------
components: Interpreter Core
messages: 355548
nosy: shihai1991
priority: normal
severity: normal
status: open
title: Why not use refcount of c.c_filename in PyAST_FromNodeObject()
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38618>
_______________________________________
More information about the Python-bugs-list
mailing list