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><br>mridula.<br>