This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Kwpolska, docs@python, rhettinger, serhiy.storchaka, steven.daprano, vstinner
Date 2017-03-05.17:45:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488735907.63.0.563519385986.issue29724@psf.upfronthosting.co.za>
In-reply-to
Content
How it comparing with

    return vec1[0]*vec2[0]+vec1[1]*vec2[1]+vec1[2]*vec2[2]

and

    x1, y1, z1 = vec1
    x2, y2, z2 = vec2
    return x1*x2+y1*y2+z1*z2

and

    x1, y1, z1 = vec1
    x2, y2, z2 = vec2
    return sum(a*b for a, b in zip(vec1, vec2))

?

A 5% speed up may be not enough high for cluttering the educational example.
History
Date User Action Args
2017-03-05 17:45:07serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, steven.daprano, docs@python, Kwpolska
2017-03-05 17:45:07serhiy.storchakasetmessageid: <1488735907.63.0.563519385986.issue29724@psf.upfronthosting.co.za>
2017-03-05 17:45:07serhiy.storchakalinkissue29724 messages
2017-03-05 17:45:07serhiy.storchakacreate