Classes Again !

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Apr 17 09:50:00 EDT 2002


On 17-Apr-2002 Graeme Matthew wrote:
> Hi all  I am going mad again, but making progress, been on a problem for 1
> hour already and cannot see the cause ! please could someone help
> 
> The getSubDocument method in my template class is failing suddenly , i dont
> have a clue why ! thanks a mil
> 

$ python
>>> class Foo:
...   def one(self): pass
...   def two(self): pass
... 
>>> dir(Foo)
['__doc__', '__module__', 'one', 'two']

this shows me everything in the Foo class.  Try the same with your class and
see what happens.  Perhaps you have a subtle indentation problem so
getSubDocument is being defined in the previous function's namespace.





More information about the Python-list mailing list