Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!a19g2000prj.googlegroups.com!not-for-mail From: chad Newsgroups: comp.lang.python,comp.programming Subject: A question about Python Classes Date: Thu, 21 Apr 2011 08:43:15 -0700 (PDT) Organization: http://groups.google.com Lines: 19 Message-ID: <2219ee53-e8aa-4ac4-839f-014c3d1b1914@a19g2000prj.googlegroups.com> NNTP-Posting-Host: 66.81.51.147 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1303400595 12371 127.0.0.1 (21 Apr 2011 15:43:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Apr 2011 15:43:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a19g2000prj.googlegroups.com; posting-host=66.81.51.147; posting-account=kTs1ygoAAACgG1TSoyECpovEyy-V6_8b User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2),gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3804 comp.programming:249 Let's say I have the following.... class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance of BaseHandler? Chad