Terry J. Reedy <tjre...@udel.edu> added the comment:

Since #9878 proposes an *alternate* solution to *part* of the sysconfig 
problem, I disagree with 'supersede'. A Python solution would be more useful 
for other implementations if enough of the sysconfig info is not CPython 
specific.

A CPython design feature is that it parses and compiles Python code just once 
per run, and imported modules just once until the code changes (or might have). 
For functions, everything possible is put into a behind-the-scenes code object. 
So even inner functions are parsed and compiled just once.

The problem with sysconfig, it appears, is that lacks the equivalent design 
feature but instead does the equivalent of re-parsing and re-compiling inner 
functions with each outer function call.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13150>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to