Message174950
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. |
|
Date |
User |
Action |
Args |
2012-11-05 23:17:35 | r.david.murray | set | recipients:
+ r.david.murray, Gravitania |
2012-11-05 23:17:35 | r.david.murray | set | messageid: <1352157455.95.0.351902818873.issue16417@psf.upfronthosting.co.za> |
2012-11-05 23:17:35 | r.david.murray | link | issue16417 messages |
2012-11-05 23:17:35 | r.david.murray | create | |
|