<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>ok i started learning python a week ago.<BR>ive followed Guido's tutorial 
and another one, i have a good grasp of everthing up to Classes, now the 
example in the tutorial 9.3.2:</DIV>
<DIV> </DIV>
<DIV>                        
class 
MyClass:<BR>                                 
"A simple example 
class"<BR>                                 
i = 
12345<BR>                                 
def 
f(x):<BR>                                     
return 'hello world'</DIV>
<DIV>is where i am at.</DIV>
<DIV>the tutorial says "MyClass.i and MyClass.f are valid 
attribute references, returning an integer and a function object,"</DIV>
<DIV>MyClass.i returns "12345" fine...but MyClass.f gives me "<unbound method 
MyClass.f>"<BR>how do i get it to return "hello world" or whatever its 
supposed to do?</DIV>
<DIV> </DIV>
<DIV>also what does the error message "TypeError: unbound method must be 
called with class instance 1st argument" mean???</DIV>
<DIV> </DIV>
<DIV>simple answers im sure, but its got me stuck.</DIV>
<DIV>any help would be great <BR>thanks<BR>Shaun</DIV>
<DIV> </DIV></BODY></HTML>