Python is readable

Chris Angelico rosuav at gmail.com
Sat Mar 17 17:20:14 EDT 2012


On Sun, Mar 18, 2012 at 6:59 AM, Kiuhnm
<kiuhnm03.4t.yahoo.it at mail.python.org> wrote:
> Could you please explain to me in which way
>    mov eax, 3
> should be less readable than
>    for i in x: print(i)
> ?

They are equally readable. The first one sets EAX to 3; the second
displays all elements of x on the console. Assembly is readable on a
very low level, but it's by nature verbose at a high level, and thus
less readable (you can't eyeball a function and know exactly what it
does, especially if that function spans more than a screenful of
code).

ChrisA



More information about the Python-list mailing list