[Python-Dev] Re: [bug?] UserLong.py - pow(5, UserLong(3), 26) fails

Luke Kenneth Casson Leighton lkcl@samba-tng.org
Thu, 02 May 2002 16:48:09 +0000


michael,

thanks for the int.__mru tip.

i confirm: pow(5, UserLong(3), 26) - gets the same error that you
report.

i also confirmed: pow(5, UserLong(3)) - calls UserLong.__rpow__.  it
works!

errrr :) :) 

so it looks like it's _almost_ there, but not quite.

i _believe_ i can get away with this, for DSA.py, at this time,
if i correctly implement UserLong.__rpow__ (which was previously
a stub).

later tonight i'll raise a proper bug report.

thanks for the tips, michael.

l.