on = style

Chris Angelico rosuav at gmail.com
Mon Oct 9 02:49:14 EDT 2017


On Mon, Oct 9, 2017 at 5:40 PM, Abdur-Rahmaan Janhangeer
<arj.python at gmail.com> wrote:
> hi just a quick question, why is
>
> my_pens = 4
> my_pencils = 5
>
> is preffered to
>
> my_pens     = 4
> my_pencils = 5
>
> *referring to = symbol alignment

Because when you add a new variable:

my_mousepads = 6

you then have to add extra spaces to each of the other lines. That's
spurious changes in a diff, unnecessary edits that you have to make,
and lots of pointless work.

ChrisA



More information about the Python-list mailing list