[Tutor] flag to call methods on objects?
Wayne
srilyk at gmail.com
Fri Jul 31 07:16:43 CEST 2009
On Thu, Jul 30, 2009 at 11:29 PM, prasad rao <prasadaraon50 at gmail.com>wrote:
> hello
> I removed the bugs.But still getting error report.
>
>
> >>import mcript
>
> Traceback (most recent call last):
> File "<pyshell#6>", line 1, in <module>
> import mcript
> File "C:\Python26\mcript.py", line 78, in <module>
> a.main()
> File "C:\Python26\mcript.py", line 58, in main
>
That line tells you where the problem is
> nl=__compress(__digi(__lengthen(line.strip())))+'\n'
>
That's the code that produced the error
> NameError: global name '_Cripto__compress' is not defined
>
You're trying to call a method __compress which doesn't exist.
self.__compress exists, but __compress doesn't. HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090731/d7882169/attachment.htm>
More information about the Tutor
mailing list