Re: [Cython] Hello

2020-01-27 Thread John Skaller2
Ok, quick pass on Cython reference .. pretty good. Easy to read, good coverage, well written. Beginning to understand the design. Interesting thing is the limitations are the best clue. For example: "The “?” indicates that the value -1 only indicates a possible error. In this case, Cython gene

Re: [Cython] Hello

2020-01-27 Thread John Skaller2
> On 27 Jan 2020, at 20:23, Greg Ewing wrote: > > On 27/01/20 6:56 pm, John Skaller2 wrote: >> Felix binds C/C++ code with statements like: >> type PyObject = “PyObject*”; >> fun add: PyObject * PyObject -> PyObject = “Py_AddLong($1)”; >> and can use the bindings like: >> >>

Re: [Cython] Hello

2020-01-27 Thread Stefan Behnel
John Skaller2 schrieb am 27.01.20 um 06:56: > Hi! I have just built Cython but haven’t used it yet. > > I want to check I understand what it does whilst examing the sources in the > repository. > Please let me know if I have it wrong! > > Given a Python file, Cython parses it, and translates it

Re: [Cython] Hello

2020-01-27 Thread Greg Ewing
On 27/01/20 6:56 pm, John Skaller2 wrote: Felix binds C/C++ code with statements like: type PyObject = “PyObject*”; fun add: PyObject * PyObject -> PyObject = “Py_AddLong($1)”; and can use the bindings like: var a : PyObject = …. var b: PyObject = ...