[Python-Dev] A Subtle Bug in Class Initializations

2018-08-06 Thread Eddie Elizondo
Background: Through the implementation of an alternate runtime I've been poking around some of the class initialization routines and I found out that there was a subtle bug with PyType_Ready and the header initializer PyVarObject_HEAD_INIT. Looking through the codebase, I couldn't really find an

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] [python-committers] [RELEASED] Python 3.4.9 and Python 3.5.6 are now available

2018-08-06 Thread Charalampos Stratakis
- Original Message - > From: "Michael" > To: "Larry Hastings" , python-dev@python.org > Sent: Sunday, August 5, 2018 8:57:40 PM > Subject: Re: [Python-Dev] [python-committers] [RELEASED] Python 3.4.9 and > Python 3.5.6 are now available > On 03/08/2018 03:22, Larry Hastings wrote: > > O

Re: [Python-Dev] The curious case of 255 function arguments

2018-08-06 Thread Serhiy Storchaka
06.08.18 08:13, Stephen McDowell пише: I've looked at the C code for a while and it is entirely non-obvious what would lead to python *2* /allowing/ >255 arguments.  Anybody happen to know how / why the python *2* versions *succeed*? The error message is misleading. It should be "more than 255

Re: [Python-Dev] The curious case of 255 function arguments

2018-08-06 Thread Andrea Griffini
typo... meant of course foo(*([0]*300)) Andrea On Mon, Aug 6, 2018 at 9:57 AM Andrea Griffini wrote: > With Python 2.7.15 what fails is a call with explicit arguments (e.g. > `foo(0,0,0 ... 0,0)`), not the function definition. > Calling with `foo([0]*300)` instead works. > > > On Mon, Aug 6, 20

Re: [Python-Dev] The curious case of 255 function arguments

2018-08-06 Thread Andrea Griffini
With Python 2.7.15 what fails is a call with explicit arguments (e.g. `foo(0,0,0 ... 0,0)`), not the function definition. Calling with `foo([0]*300)` instead works. On Mon, Aug 6, 2018 at 7:18 AM Stephen McDowell wrote: > Hello Python Gurus, > > TL;DR: 3.7 released functions having greater than