Access from one class to methode of other class

reidarok at gmail.com reidarok at gmail.com
Thu May 26 09:17:21 EDT 2005


I don't know if your're actually calling the classes '1' and '2', but
that's a really bad idea!

> class 2:
>    def ins(self)
>        d.entry.insert(variable)

This is probably where you're getting the NameError. d is not defined,
so calling d.entry will generate an error.

Reidar




More information about the Python-list mailing list