Code style query: multiple assignments in if/elif tree

Chris Angelico rosuav at gmail.com
Mon Mar 31 12:29:54 EDT 2014


On Tue, Apr 1, 2014 at 3:20 AM, Rustom Mody <rustompmody at gmail.com> wrote:
> On the whole I prefer multiple assignments.
> Maybe in this case use small variable names with
> separate(d) explanatory comments??

Shorter variable names would certainly be the more normal, heh. I let
my brother do that part of the typing, picking names and so on. Better
for teaching to let the victi-- err, the student have the power to
choose. :)

ChrisA



More information about the Python-list mailing list