Re: [Python-Dev] PEP 8 update

2015-04-07 Thread Steven D'Aprano
On Tue, Apr 07, 2015 at 08:47:25AM -0400, Ben Hoyt wrote: > > My own preference would be: > > > > def foo(x): > > if x >= 0: > > return math.sqrt(x) > > return None > > Kind of getting into the weeds here, but I would always invert this to > "return errors early, an

[Python-Dev] ctypes module

2015-04-07 Thread Cristi Fati
Hi all, Not sure whether you got this question, or this is the right distribution list: Intel has deprecated Itanium architecture, and Windows also deprecated its versions(currently 2003 and 2008) that run on IA64. However Python (2.7.3) is compilable on Windows IA64, but ctypes module (1.1.0) w

Re: [Python-Dev] PEP 8 update

2015-04-07 Thread Guido van Rossum
Talk about hijacking an unrelated thread... :-( Though there's maybe a style rule for the ternary operator to be devised here? :-) On Apr 7, 2015 11:36 AM, "Stefan Behnel" wrote: > Antoine Pitrou schrieb am 07.04.2015 um 14:26: > > On Tue, 07 Apr 2015 03:11:30 +0100 > > Rob Cliffe wrote: > >>

Re: [Python-Dev] PEP 8 update

2015-04-07 Thread Stefan Behnel
Antoine Pitrou schrieb am 07.04.2015 um 14:26: > On Tue, 07 Apr 2015 03:11:30 +0100 > Rob Cliffe wrote: >> >> On 07/04/2015 02:08, Guido van Rossum wrote: >>> I've taken the liberty of adding the following old but good rule to >>> PEP 8 (I was surprised to find it wasn't already there since I've

Re: [Python-Dev] PEP 448 review

2015-04-07 Thread Nick Coghlan
On 7 Apr 2015 03:43, "Neil Girdhar" wrote: > > Hello, > > Following up with PEP 448, I've gone over the entire code review except a few points as mentioned at the issue: http://bugs.python.org/review/2292/. I'm hoping that this will get done at the PyCon sprints. Is there any way I can help? > >

Re: [Python-Dev] PEP 8 update

2015-04-07 Thread Ben Hoyt
> My own preference would be: > > def foo(x): > if x >= 0: > return math.sqrt(x) > return None Kind of getting into the weeds here, but I would always invert this to "return errors early, and keep the normal flow at the main indentation level". Depends a little on w

Re: [Python-Dev] PEP 8 update

2015-04-07 Thread Antoine Pitrou
On Tue, 07 Apr 2015 03:11:30 +0100 Rob Cliffe wrote: > > On 07/04/2015 02:08, Guido van Rossum wrote: > > I've taken the liberty of adding the following old but good rule to > > PEP 8 (I was surprised to find it wasn't already there since I've > > lived by this for ages): > > > > * > > > >

Re: [Python-Dev] PEP 448 review

2015-04-07 Thread Neil Girdhar
Hello, Following up with PEP 448, I've gone over the entire code review except a few points as mentioned at the issue: http://bugs.python.org/review/2292/. I'm hoping that this will get done at the PyCon sprints. Is there any way I can help? I couldn't make it to PyCon, but I do live in Montrea

[Python-Dev] Build is broken for me after updating

2015-04-07 Thread Neil Girdhar
Ever since I updated, I am getting: In file included from Objects/dictobject.c:236:0: Objects/clinic/dictobject.c.h:70:26: fatal error: stringlib/eq.h: No such file or directory #include "stringlib/eq.h" But, Objects/stringlib/eq.h exists. Replacing the include with "Objects/stringlib/eq.h" see