Access from one class to methode of other class
Aaron Bingham
bingham at cenix-bioscience.com
Fri May 27 02:41:14 EDT 2005
Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:
> On Thu, 26 May 2005 14:33:45 +0200, VK <"myname"@example.invalid>
> declaimed the following in comp.lang.python:
>
>> Hi, all!
>>
>> In my programm i have to insert a variable from class 2 to class 1 and I
>> get error NameError: global name 'd' is not defined. How do I get access
>> to d.entry.insert() method of class 1
>>
>> class 1:
> <shudder> Does Python even allow numeric class names?
Fortunately, no:
>>> class 1:
File "<stdin>", line 1
class 1:
^
SyntaxError: invalid syntax
--
--------------------------------------------------------------------
Aaron Bingham
Software Engineer
Cenix BioScience GmbH
--------------------------------------------------------------------
More information about the Python-list
mailing list