object - oriented programming Help!!

Simon Brunning SBrunning at trisystems.co.uk
Tue Jul 3 08:52:40 EDT 2001


> From:	brakedon at hotmail.com [SMTP:brakedon at hotmail.com]
> What am I doing wrong? I am trying to learn object oriented
> programming, but I don't know what I'm doing wrong.
> 
> >>> import fibonaccii_gui
> >>> fibonaccii.fib(fibinstance, 100)
> Traceback (most recent call last):
>   File "<pyshell#2>", line 1, in ?
>     fibonaccii.fib(fibinstance, 100)
> NameError: name 'fibonaccii' is not defined
 
You are importing a module called fibonaccii_gui, then referring to just
fibonaccii. Replace your 2nd line with:

fibonaccii_gui.fib(fibinstance, 100)

And it just might work.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list