Message227546
IMHO, the most straight forward way for a new gcd() function to work would be to always, predictably return a non-negative value and let users handle all cases themselves where a negative sign of any or all input values has a specific meaning to them. That's the path of least surprise, and it's very easy to implement at the C level for PyLong values (as they are internally unsigned anyway). |
|
Date |
User |
Action |
Args |
2014-09-25 16:09:13 | scoder | set | recipients:
+ scoder, terry.reedy, mark.dickinson, vstinner, mrabarnett, steven.daprano, akira, wolma, gladman, brg@gladman.plus.com |
2014-09-25 16:09:13 | scoder | set | messageid: <1411661353.22.0.131494634495.issue22477@psf.upfronthosting.co.za> |
2014-09-25 16:09:13 | scoder | link | issue22477 messages |
2014-09-25 16:09:13 | scoder | create | |
|