entry widget and rotor module
kpmurphy at my-deja.com
kpmurphy at my-deja.com
Wed Jun 28 14:17:33 EDT 2000
can anyone help out... what's going on below?
anna% python
Python 1.5.2 (#12, Jun 26 2000, 13:56:56) [GCC 2.95.2 19991024
(release)] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import rotor
>>> rt = rotor.newrotor('qwerty', 20)
>>> rt.encrypt('boat')
'.\314q\217'
>>> foo = rt.encrypt('boat')
>>> type(foo)
<type 'string'>
>>> foo
'.\314q\217'
>>> print foo
.Ìq
>>>
...it appears that the string foo has the right data in it, but prints
out weird characters. Thanks,
keith
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list