STINNER Victor added the comment:

> I don't think these changes are required. The interactive interpreter is not 
> a bottleneck.

What is the problem with these changes?

Identifiers have different advantages. Errors become more unlikely because 
objects are only initialized once, near startup. So it put also less pressure 
on code handling errors :) (it is usually the least tested part of the code)

> And definitely adding new public functions to API needs more discussion.

You mean for PyRun_InteractiveOneObject()? Oh, it can be made private, but what 
is the problem of adding yet another PyRun_Interactive*() function? There are 
already a lot of them :-)

I also worked hard to support unencodable filenames: using char*, you cannot 
support arbitrary Unicode filename on Windows. That's why a added many various 
functions with "Object" suffix. Some examples: PyWarn_ExplicitObject(), 
PyParser_ParseStringObject(), PyImport_AddModuleObject(), etc.

Some users complained that they were not able to run Python scripts on Windows 
with unencodable filenames (like russian characters on an english setup). I can 
try to find the related issues.

----------

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

Reply via email to