[Python-Dev] API changes (original) (raw)

Thomas Heller theller at python.net
Tue Jan 3 17:44:47 CET 2006


Jeremy Hylton <jeremy at alum.mit.edu> writes:

On 1/3/06, Thomas Heller <theller at python.net> wrote:

The ast-branch merge apparently changed some formerly public functions to macros. The two that I found out about are PyRunSimpleString and PyRunInteractiveLoop, I have not checked if there are more or not.

This breaks apps which dynamically link at runtime to the Python dll (the latest py2exe does this). Was this change intentional, or can it be reverted? Thanks, Thomas

The intent was to provide binary compatibility, but redirect all newly linked code to the newer variants. We did this correctly for PyParserSimpleParseFile and PyParserSimpleParseString, but didn't do it for the rest of the changed functions. Can you file a bug report? (Or just fix the ones that bother you.)

We ought to update the docs, too.

I'm not sure I understand the 'we did this correctly for ...'. PyParser_SimpleParseFile is a function in 2.4, and a macro in 2.5.

Thomas



More information about the Python-Dev mailing list