[Python-Dev] Developing a Python JIT and have troubld

2017-03-30 Thread Yuheng Zou
I am building a Python JIT, so I want to change the interp->eval_frame to my own function. I built a C++ library which contains EvalFrame function, and then use dlopen and dlsym to use it. It looks like this: extern "C" PyObject *EvalFrame(PyFrameObject *f, int throwflag) { return _PyEval_Ev

Re: [Python-Dev] why _PyGen_Finalize(gen) propagates close() to _PyGen_yf() ?

2017-03-30 Thread Nathaniel Smith
On Thu, Mar 30, 2017 at 11:05 AM, Oleg Nesterov wrote: > On 03/28, Eric Snow wrote: >> >> On Mon, Mar 20, 2017 at 11:30 AM, Oleg Nesterov wrote: >> > Hello, >> > >> > Let me first clarify, I do not claim this is a bug, I am trying to learn >> > python and now I trying to understand yield-from. >>

Re: [Python-Dev] why _PyGen_Finalize(gen) propagates close() to _PyGen_yf() ?

2017-03-30 Thread Oleg Nesterov
On 03/28, Eric Snow wrote: > > On Mon, Mar 20, 2017 at 11:30 AM, Oleg Nesterov wrote: > > Hello, > > > > Let me first clarify, I do not claim this is a bug, I am trying to learn > > python and now I trying to understand yield-from. > > Given that you haven't gotten a response here, and this looks

Re: [Python-Dev] What version is an extension module binary compatible with

2017-03-30 Thread Petr Viktorin
On 03/30/2017 06:31 AM, Nick Coghlan wrote: On 29 March 2017 at 02:18, Paul Moore wrote: On 28 March 2017 at 12:24, Miro HronĨok wrote: I'd like some clarification on what ABI compatibility we can expect. * Should the ABI be stable across patch releases (so calling PySlice_AdjustIndices from