New submission from hai shi <shihai1...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38618>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to