On Tue, May 10, 2022 at 1:20 AM Chris Angelico <ros...@gmail.com> wrote:

> On Tue, 10 May 2022 at 18:06, anthony.flury via Python-ideas
> Yep, that's an awesome idea! Are you aware of Cython? You might be
> able to make use of that.
>

Indeed -- Cython pretty much does all of this, while also letting you write
the C part (or calling C code) easily as well :-)

If you have a module written in Python, all you need to do to make it a C
extension is run it through Cython :-)

Cython uses its own annotation for typing -- but it is being extended to
use the new pyton type annotations.

It's a challenge, because Python types really are different than C types --
it's not always obvious what you want.

-CHB

-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/E54FZ5WHO2WI4I5HF4TQ73S6LHESL7JE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to