[Tutor] getattr works sometimes

Oscar Benjamin oscar.j.benjamin at gmail.com
Tue Oct 2 20:12:50 CEST 2012

On 2 October 2012 18:44, Tino Dai <oberoc at gmail.com> wrote:
> Hi All,

Hi Tino

>       I'm using the get_class from:
> http://stackoverflow.com/questions/452969/does-python-have-an-equivalent-to-java-class-forname

Can you show the relevant portion of your code please?

> and the get_class class works sometime for finding modules within a
> certain directory. If the get_class
> doesn't work, it throws an AttributeError.

I don't really understand what you mean by this. Can you copy and
paste the actual error message (all of it)?

> The module exists in the directory, and I'm trying to debug this. Does
> anybody have any hints to go about debug
> this?

Not really as you haven't provided enough information.


More information about the Tutor mailing list