On Sat, Oct 8, 2011 at 12:50 AM, Terry Reedy <tjre...@udel.edu> wrote:

> That latter function probably want integers code in range(256).


Yes! Non-unicode. The source reads:

def _encrypt(self, m):
        # compute m**d (mod n)
        return pow(m, self.e, self.n)

>From the source, it is provided as is.

The arguments must have numeric types
>

How come it accepts str type?

-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to