Python 3.3 vs. MSDOS Basic

Chris Angelico rosuav at gmail.com
Tue Feb 19 22:39:27 CET 2013


On Wed, Feb 20, 2013 at 7:28 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 10-15% faster:
> ... num = max(range(2, M + 1), key=g) ...

Yes, but 20-30% less clear and readable. Though I do like the idea of
playing this code in the key of G Major.

ChrisA



More information about the Python-list mailing list