[pycrypto] Python 3.x vs. Python 2.1 - prep the axe

Thorsten Behrens 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)[0] 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)[0].

More information about the pycrypto mailing list