Being an old-timer, I was brought up on languages like COBOL, where programmers
love to line up MOVE, COMPUTE and some other statements. I still do that when
I write COBOL, as it is expected by other programmers and somehow just seems
right.
But I resist the urge in Python and never do it. Pr
On 09/10/17 08:46, Steve D'Aprano wrote:
I truly believe that, with*very* few exceptions (*ALL* of which are some form
of in-line data table, and even then only rarely) any programmer who worries
about lining up assignments on different lines like this is just engaged in a
time-wasting exercise
On 09/10/2017 07:40, Abdur-Rahmaan Janhangeer 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
I will sometimes line things up, if a block of assignments are related:
red = 1
green
hum i see clearly with all my python experience, i have more to learn.
i never aligned the = but i found it neat looking but discouraged by pep8.
glad i did not switch to it and maintained it for sometimes !
thanks for answers !
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpres
On Mon, 9 Oct 2017 05:56 pm, Stefan Ram wrote:
> Abdur-Rahmaan Janhangeer writes:
>>hi just a quick question, why is
>
> When you post a new question, you should start a new thread.
> Your post already has many other posts in the References header.
>
>>my_pens = 4
>>my_pencils = 5
>>is pref
On Mon, Oct 9, 2017 at 5:40 PM, Abdur-Rahmaan Janhangeer
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 t
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
tk !
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com
--
https://mail.python.org/mailman/listinfo/python-list