[issue22869] Split pylifecycle.c out from pythonrun.c

Antoine Pitrou report at bugs.python.org
Sat Nov 15 19:24:11 CET 2014


Antoine Pitrou added the comment:

+1 on the principle.

> reference count printing is duplicated (lifecycle prints it at 
> shutdown, pythonrun at the interactive prompt)

You could make it an API in object.c.

> * pythonrun references PyInspect_Flag directly without an extern
> declaration
> 
> * This particular oddity wasn't introduced by this patch, but it 
> turns out PyOptimize_Flag lives in compile.c, rather than with the 
> other global flags in pythonrun.c. It's also declared as a public 
> data API in pydebug.h

Should be easy to fix as well :-)

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22869>
_______________________________________


More information about the Python-bugs-list mailing list