Weird Error
Fredrik Lundh
effbot at telia.com
Wed Aug 30 03:34:19 EDT 2000
dan wrote:
> > and "print dir(qconf)" for example.
>
> Output generated(THUS MAJOR PROBLEMS!!!!):
>
> >>>print dir(qconf)
> []
>
> >The latter
> > should show the entry for getQPath - if it doesn't, then that explains
> > the exception, but not necessarily why you didn't end up with that
> > member defined.
david forgot that dir(instance) only shows instance variables,
not methods.
> This test sequence seems to indicate that I am NOT defining the members
> for the class despite the numerous ones that are there. I am rather
> perplexed as the other classes are defined in like manner. I may yet
> find a solution, but this is beyond my knowledge having just picked up
> Python.
hint: grep for "__init__" and "Qconfig" in your qconfig.py file.
maybe you've accidentally left an old stub implementation in
there...
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list