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 r.david.murray
Recipients Gravitania, r.david.murray
Date 2012-11-05.23:17:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352157455.95.0.351902818873.issue16417@psf.upfronthosting.co.za>
In-reply-to
Content
You did request a tuple:

  r = a - q * b,

That is equivalent to

  r = (a - q * b,)

which is a single element tuple.

I had to put in some print statements in your loop to find that, it wasn't obvious.  This is perhaps a disadvantage of Python's tuple notation, but the benefits of the notation outweigh this small disadvantage, I think.
History
Date User Action Args
2012-11-05 23:17:35r.david.murraysetrecipients: + r.david.murray, Gravitania
2012-11-05 23:17:35r.david.murraysetmessageid: <1352157455.95.0.351902818873.issue16417@psf.upfronthosting.co.za>
2012-11-05 23:17:35r.david.murraylinkissue16417 messages
2012-11-05 23:17:35r.david.murraycreate