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] AES cipher implementation in standard library

2018-09-04 Thread Christian Heimes
On 2018-09-04 16:37, 大野隆弘 wrote: > Dear all, > > Have we tried cipher implementation includes AES as a standard library > in the past? > https://docs.python.org/3.6/library/crypto.html > > if possible I want to try to implement AES because famous 3rd party > library is not maintained and general

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

[Python-Dev] Heap-allocated StructSequences

2018-09-04 Thread Eddie Elizondo
PEP-384 talks about defining a Stable ABI by making PyTypeObject opaque. Thus, banning the use of static PyTypeObjects. Specifically, I’d like to focus on those static PyTypeObjects that are initialized as StructSequences. As of today, there are 14 instances of these types (in timemodule.c, pos

[Python-Dev] AES cipher implementation in standard library

2018-09-04 Thread 大野隆弘
Dear all, Have we tried cipher implementation includes AES as a standard library in the past? https://docs.python.org/3.6/library/crypto.html if possible I want to try to implement AES because famous 3rd party library is not maintained and general cipher programs should be used for multiple purpo

[Python-Dev] Cipher implementation (such as AES) in standard library

2018-09-04 Thread 大野隆弘
Dear all, Have we tried cipher implementation includes AES as a standard library in the past? https://docs.python.org/3.6/library/crypto.html if possible I want to try to implement AES because famous 3rd party library is not maintained and general cipher programs should be used for multiple purpo