Re: [Python-Dev] Use of Cython

2018-09-04 Thread Yury Selivanov
On Tue, Sep 4, 2018 at 2:58 PM Stefan Behnel wrote: [..] > Cython has four ways to provide type declarations: cdef statements in > Cython code, external .pxd files for Python or Cython files, special > decorators and declaration functions, and PEP-484/526 type annotations. Great to hear that PEP

Re: [Python-Dev] Use of Cython

2018-09-04 Thread Ethan Furman
On 09/04/2018 11:55 AM, Stefan Behnel wrote: Adding the right language would lower the bar, IMHO. Cython is Python. It allows users with a Python background to implement C things without having to thoroughly learn C/and/ the CPython C-API first. So, the way I see it, rather than/adding/ a "thi

Re: [Python-Dev] Use of Cython

2018-09-04 Thread Stefan Behnel
Yury Selivanov schrieb am 04.09.2018 um 18:19: > On Sat, Sep 1, 2018 at 6:12 PM Stefan Behnel wrote: >> Yury Selivanov schrieb am 07.08.2018 um 19:34: >>> The first goal is to compile mypy with it to make it faster, so I hope >>> that the project will be completed. >> >> That's not "the first goal"

Re: [Python-Dev] Use of Cython

2018-09-04 Thread Yury Selivanov
Hi Stefan, On Sat, Sep 1, 2018 at 6:12 PM Stefan Behnel wrote: > > Yury, > > given that people are starting to quote enthusiastically the comments you > made below, let me set a couple of things straight. To everyone reading this thread please keep in mind that I'm not in position to "defend" my

Re: [Python-Dev] Use of Cython

2018-09-01 Thread Stefan Behnel
Yury, given that people are starting to quote enthusiastically the comments you made below, let me set a couple of things straight. Yury Selivanov schrieb am 07.08.2018 um 19:34: > On Mon, Aug 6, 2018 at 11:49 AM Ronald Oussoren via Python-Dev wrote: > >> I have no strong opinion on using Cython

Re: [Python-Dev] Use of Cython

2018-08-21 Thread Abdur-Rahmaan Janhangeer
since when they started working on it?(mypyc) Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org

Re: [Python-Dev] Use of Cython

2018-08-09 Thread Stefan Behnel
Hi, this is getting a bit out of scope for this list. I propose to move further questions about general Cython usage to he cython-users mailing list. Matěj Cepl schrieb am 08.08.2018 um 12:44: > On 2018-08-06, 15:13 GMT, Stefan Behnel wrote: >> Not sure I understand this correctly, but I think we

Re: [Python-Dev] Use of Cython

2018-08-08 Thread Matěj Cepl
On 2018-08-08, 11:30 GMT, Antoine Pitrou wrote: > I'm not sure why anyone would want to use swig nowadays. Legacy reasons, 47k lines of Python code (and 7k lines of swig *.i files). Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920

Re: [Python-Dev] Use of Cython

2018-08-08 Thread Antoine Pitrou
On Wed, 08 Aug 2018 12:44:50 +0200 Matěj Cepl wrote: > On 2018-08-06, 15:13 GMT, Stefan Behnel wrote: > > Not sure I understand this correctly, but I think we're on the > > same page here: writing test code in C is cumbersome, writing > > test code in a mix of C and Python across different files

Re: [Python-Dev] Use of Cython

2018-08-08 Thread Matěj Cepl
On 2018-08-06, 15:13 GMT, Stefan Behnel wrote: > Not sure I understand this correctly, but I think we're on the > same page here: writing test code in C is cumbersome, writing > test code in a mix of C and Python across different files is > aweful. And making it difficult to write or even just r

Re: [Python-Dev] Use of Cython

2018-08-08 Thread Matěj Cepl
On 2018-08-07, 17:34 GMT, Yury Selivanov wrote: > Speaking of which, Dropbox is working on a new compiler they > call "mypyc". How does it compare with Nuitka? Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 If i

Re: [Python-Dev] Use of Cython

2018-08-07 Thread Yury Selivanov
On Mon, Aug 6, 2018 at 11:49 AM Ronald Oussoren via Python-Dev wrote: > I have no strong opinion on using Cython for tests or in the stdlib, other > than that it is a fairly large dependency. I do think that adding a > “Cython-lite” tool the CPython distribution would be less ideal, creating a

Re: [Python-Dev] Use of Cython

2018-08-06 Thread Ronald Oussoren via Python-Dev
> On 6 Aug 2018, at 17:13, Stefan Behnel wrote: > > Ronald Oussoren via Python-Dev schrieb am 06.08.2018 um 15:25: >>> On 5 Aug 2018, at 18:14, Nick Coghlan wrote: >>> On 5 August 2018 at 18:06, Ronald Oussoren wrote: I’m not sure if I understand this, ctypes and cffi are used to access C

Re: [Python-Dev] Use of Cython

2018-08-06 Thread Stefan Behnel
Ronald Oussoren via Python-Dev schrieb am 06.08.2018 um 15:25: >> On 5 Aug 2018, at 18:14, Nick Coghlan wrote: >> On 5 August 2018 at 18:06, Ronald Oussoren wrote: >>> I’m not sure if I understand this, ctypes and cffi are used to access C APIs >>> without writing C code including the CPython API (

Re: [Python-Dev] Use of Cython

2018-08-06 Thread Ronald Oussoren via Python-Dev
> On 5 Aug 2018, at 18:14, Nick Coghlan wrote: > > On 5 August 2018 at 18:06, Ronald Oussoren wrote: >> I’m not sure if I understand this, ctypes and cffi are used to access C APIs >> without writing C code including the CPython API (see for example >>

Re: [Python-Dev] Use of Cython

2018-08-05 Thread Nick Coghlan
On 5 August 2018 at 18:06, Ronald Oussoren wrote: > I’m not sure if I understand this, ctypes and cffi are used to access C APIs > without writing C code including the CPython API (see for example > ). > > The code code belo

Re: [Python-Dev] Use of Cython

2018-08-05 Thread Ronald Oussoren via Python-Dev
> On 5 Aug 2018, at 03:15, Nick Coghlan wrote: > > On 5 August 2018 at 00:46, Stefan Behnel wrote: >> Antoine Pitrou schrieb am 04.08.2018 um 15:57: >>> Actually, I think testing the C API is precisely the kind of area where >>> you don't want to involve a third-party, especially not a moving

Re: [Python-Dev] Use of Cython

2018-08-04 Thread Nick Coghlan
On 5 August 2018 at 00:46, Stefan Behnel wrote: > Antoine Pitrou schrieb am 04.08.2018 um 15:57: >> Actually, I think testing the C API is precisely the kind of area where >> you don't want to involve a third-party, especially not a moving target >> (Cython is actively maintained and generated cod

Re: [Python-Dev] Use of Cython

2018-08-04 Thread Stefan Behnel
Antoine Pitrou schrieb am 04.08.2018 um 15:57: > Le 04/08/2018 à 15:13, Nick Coghlan a écrit : >> >> It'd be *really* nice to at least be able to write some of the C API >> tests directly in Cython rather than having to fiddle about with >> splitting the test between the regrtest parts that actuall

Re: [Python-Dev] Use of Cython

2018-08-04 Thread Antoine Pitrou
Hi Nick, Le 04/08/2018 à 15:13, Nick Coghlan a écrit : > > It'd be *really* nice to at least be able to write some of the C API > tests directly in Cython rather than having to fiddle about with > splitting the test between the regrtest parts that actually define the > test case and the extensio