[pycrypto] Python 3.x vs. Python 2.1 - prep the axe
sbehrens at gmx.li
Wed Dec 29 03:55:13 CST 2010
On 12/29/2010 1:39 AM, Dwayne C. Litzenberger wrote:
> To do integer division a/b across Python 2.1 through 2.7 (including support for floatdiv), PyCrypto already uses divmod(a,b) IIRC.
Clever. That would explain why I only ran into one instance of integer
division causing issues. I'll remove the floordiv/py21floordiv hack and
replace with divmod(a,b).
More information about the pycrypto