[Python-Dev] cpython (3.2): adjust braces a bit
Tres Seaver
tseaver at palladion.com
Fri Oct 21 18:40:47 CEST 2011
More information about the Python-Dev mailing list
Fri Oct 21 18:40:47 CEST 2011
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bit
- Next message: [Python-Dev] cpython (3.2): adjust braces a bit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/21/2011 12:31 PM, Benjamin Peterson wrote: > 2011/10/21 Eric V. Smith <eric at trueblade.com>: >> 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 exception. Given that it tends to promote errors, particularly among indentation-conditioned Python programmers (adding another statement at the same indentation level), why not just have braces everywhere? Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver at palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6hoI4ACgkQ+gerLs4ltQ5xlACeLTfh93yW6jxaySzgVwyA9xDS GxMAn1ZmY5KcjZ50m5eYFusc6FMI++NF =mSl4 -----END PGP SIGNATURE-----
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): adjust braces a bit
- Next message: [Python-Dev] cpython (3.2): adjust braces a bit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list