PEP 8 and extraneous whitespace

Brandon Harris brandon.harris at reelfx.com
Thu Jul 21 21:04:35 CEST 2011


I don't really think lining things up makes them any easier to read. In 
fact, the consistency in a single space on either side of an operator 
keeps things neat and clean. Also easier to maintain in any editor. 
Always lining up columns of stuff requires readjusting text every time 
you add a new longer variable and you can never be consistent in how 
much whitespace is there.

Brandon L. Harris


On 07/21/2011 01:46 PM, Andrew Berg wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> On 2011.07.21 01:32 PM, Thomas Jollans wrote:
>> So, the PEP says: do not align operators. End of story.
> I'm pretty sure that colons, commas and equals signs are not operators.
>
> - -- 
> CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0
> PGP/GPG Public Key ID: 0xF88E034060A78FCB
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAwAGBQJOKHQGAAoJEPiOA0Bgp4/LouMH/3sufiaJiwrD10eVsUlA4rZ0
> XpHnXPOl8WY8C1Qv4OFmg2bN5Qd2S5qEhLgwoUDuZVInx8BAN5IPjIms5YQzgyD5
> 2PWntkPbxyiV+LfZXwKNPuCW4U4WDMznNThdZz3eUVruBkq6PZMv4yqL7XcZLx5T
> KQG+MNkOxGCXk6ZnNgWHGm2eGP01wAmZyvuB16vifVblH6Gk0Uq1FKjReVsszAI5
> updUNgpPMskN9c3N8eU+vrHI839G7yPKtujEZ0LCO2552Ogn4vIsWR+Ir0FBLzcB
> EBqDzZRmEcCyHobeaLaBZ2qI3OpsF/CTVzx92gqfmf2qhwiSZUFrVqWdmLVhgQc=
> =P7QL
> -----END PGP SIGNATURE-----




More information about the Python-list mailing list