thanks! ... sorry, i lacked access to the internet for a bit there... um, no, i'm not trying to write in java style in python, because i don't even know java!! i tried the "self" thing but that wasnt enough. I had to (as Furkan Kuru said) use a new instance of that class and only then call the function - that worked fine. 
<br><br>so a big belated thanks, everyone!<br><br><div><span class="gmail_quote">On 22/09/2007, <b class="gmail_sendername">Mridula Ramesh</b> <<a href="mailto:mridula.ccpl@gmail.com">mridula.ccpl@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi.<br><br>i currently have code structured like this:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
classA():<br>    def __init__():
<br>     ..............<br>     ..............<br>    <br>    def fnc1():<br>    ....................<br>    ....................<br><br><br>classB():<br>   def __init__():<br>    ........................<br>    ........................
<br>    classA.fnc1()    #this is where i get an error<br></blockquote><br>TypeError: unbound method fnc1() must be called with classA instance as first argument (got nothing instead)<br><br>when i do  fnc1(classA) i get:
<br><br>NameError: global name 'fnc1' is not defined<br><br>am i violating some programming rule by trying to call fnc1 in classB? i am only now learning OO alongside python, so i'm not sure! also, can someone please tell me where to go for more articles on the classes and functions and calling them from other places?
<br><br>thanks a lot!<br><span class="sg"><br>mridula.<br>
</span></blockquote></div><br>