Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Terry Reedy
On 5/17/2014 1:14 AM, Nick Coghlan wrote: During a conversation today, I realised that the convention of returning None from methods that change an object's state isn't captured the Programming Recommendations section of PEP 8. Specifically, I'm referring to this behaviour: [].sort() is None T

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Nick Coghlan
On 17 May 2014 18:26, Terry Reedy wrote: > On 5/17/2014 1:14 AM, Nick Coghlan wrote: >> >> During a conversation today, I realised that the convention of >> returning None from methods that change an object's state isn't >> captured the Programming Recommendations section of PEP 8. >> Specifically

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Antoine Pitrou
On Sat, 17 May 2014 15:14:00 +1000 Nick Coghlan wrote: > During a conversation today, I realised that the convention of > returning None from methods that change an object's state isn't > captured the Programming Recommendations section of PEP 8. This is more an API design guideline than a progra

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Steven D'Aprano
On Sat, May 17, 2014 at 04:26:12AM -0400, Terry Reedy wrote: > On 5/17/2014 1:14 AM, Nick Coghlan wrote: > >During a conversation today, I realised that the convention of > >returning None from methods that change an object's state isn't > >captured the Programming Recommendations section of PEP 8.

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Nick Coghlan
On 17 May 2014 19:56, "Antoine Pitrou" wrote: > > On Sat, 17 May 2014 15:14:00 +1000 > Nick Coghlan wrote: > > During a conversation today, I realised that the convention of > > returning None from methods that change an object's state isn't > > captured the Programming Recommendations section of

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Nathaniel Smith
On Sat, May 17, 2014 at 6:14 AM, Nick Coghlan wrote: > During a conversation today, I realised that the convention of > returning None from methods that change an object's state isn't > captured the Programming Recommendations section of PEP 8. > Specifically, I'm referring to this behaviour: > >>

Re: [Python-Dev] devguide: Add myself to developer log and as a Windows expert.

2014-05-17 Thread Christian Tismer
On 11.05.14 15:57, Steve Dower wrote: > Thanks. > > For those who missed the earlier discussions, Martin v. Löwis has > handed over responsibility for the Windows installers. It sounds like > Brett Cannon and I are both in a position to build 2.7 right now, and > I hope to simplify the setup requir

Re: [Python-Dev] Returning None from methods that mutate object state

2014-05-17 Thread Guido van Rossum
Please preserve the tradition. Adding it to PEP 8 sounds good! ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.co

Re: [Python-Dev] devguide: Add myself to developer log and as a Windows expert.

2014-05-17 Thread Dr. Brett Cannon
I don't think you meant me for helping to build Windows binaries. :) On Sunday, May 11, 2014 9:58:16 AM, Steve Dower wrote: Thanks. For those who missed the earlier discussions, Martin v. Löwis has handed over responsibility for the Windows installers. It sounds like Brett Cannon and I are both

Re: [Python-Dev] devguide: Add myself to developer log and as a Windows expert.

2014-05-17 Thread Steve Dower
No, apologies for that. As Nick pointed out, I meant the *other* B.C. :) Top-posted from my Windows Phone From: Dr. Brett Cannon Sent: ‎5/‎17/‎2014 18:26 To: Steve Dower; solip...@pitrou.net