wlav / CPyCppyy

Other
23 stars 20 forks source link

Implement TPython::ExecScript for Python 3 #31

Closed guitargeek closed 2 months ago

guitargeek commented 2 months ago

Two implementations are provided, i.e. for Python versions older than 3.8, for which PEP 587 is not in force, and newer.

Credit goes to Danilo Piparo (@dpiparo), who originally made this change for ROOTs TPython:

https://github.com/root-project/root/pull/13532

I have verified that with this PR and PR #30, the ROOT unit test for TPython::ExecScript also works with CPyCppyy::ExecScript, bringing us one step closer to phasing out TPython: https://github.com/root-project/roottest/blob/master/python/tpython/execscript.C