Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-11-01 Thread anatoly techtonik
On Fri, Oct 21, 2011 at 8:17 PM, Benjamin Peterson wrote: > 2011/10/21 Tres Seaver : >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 10/21/2011 12:31 PM, Benjamin Peterson wrote: >>> 2011/10/21 Eric V. Smith : What's the logic for adding some braces, but removing others? >>> >>>

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-10-21 Thread Benjamin Peterson
2011/10/21 Tres Seaver : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/21/2011 12:31 PM, Benjamin Peterson wrote: >> 2011/10/21 Eric V. Smith : >>> What's the logic for adding some braces, but removing others? >> >> No braces if everything is a one-liner, otherwise braces >> everywher

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-10-21 Thread Benjamin Peterson
2011/10/21 Tres Seaver : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/21/2011 12:31 PM, Benjamin Peterson wrote: >> 2011/10/21 Eric V. Smith : >>> What's the logic for adding some braces, but removing others? >> >> No braces if everything is a one-liner, otherwise braces >> everywher

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-10-21 Thread Ethan Furman
Tres Seaver wrote: On 10/21/2011 12:31 PM, Benjamin Peterson wrote: 2011/10/21 Eric V. Smith : >>> What's the logic for adding some braces, but removing others? >> No braces if everything is a one-liner, otherwise braces everywhere. Hmm, PEP 7 doesn't show any example of the one-liner exce

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-10-21 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Oct 21, 2011, at 12:40 PM, Tres Seaver wrote: >Hmm, PEP 7 doesn't show any example of the one-liner exception. Given >that it tends to promote errors, particularly among >indentation-conditioned Python programmers (adding another statement >at t

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-10-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/21/2011 12:31 PM, Benjamin Peterson wrote: > 2011/10/21 Eric V. Smith : >> What's the logic for adding some braces, but removing others? > > No braces if everything is a one-liner, otherwise braces > everywhere. Hmm, PEP 7 doesn't show any exa