Re: Python marks an instance of my class undefined

2011-09-06 Thread Hans Mulder
On 6/09/11 16:18:32, Laszlo Nagy wrote: On 2011-09-06 15:42, Kayode Odeyemi wrote: I was able to get this solved by calling class like this: >>> from core.fleet import Fleet >>> f = Fleet() Thanks to a thread from the list titled "TypeError: 'module' object is not callable" Or you can also do

Re: Python marks an instance of my class undefined

2011-09-06 Thread Kayode Odeyemi
On Tue, Sep 6, 2011 at 3:18 PM, Laszlo Nagy wrote: > On 2011-09-06 15:42, Kayode Odeyemi wrote: > >> I was able to get this solved by calling class like this: >> >> >>> from core.fleet import Fleet >> >>> f = Fleet() >> >> Thanks to a thread from the list titled "TypeError: 'module' object is not

Re: Python marks an instance of my class undefined

2011-09-06 Thread Laszlo Nagy
On 2011-09-06 15:42, Kayode Odeyemi wrote: I was able to get this solved by calling class like this: >>> from core.fleet import Fleet >>> f = Fleet() Thanks to a thread from the list titled "TypeError: 'module' object is not callable" Or you can also do this: import core.fleet # import modul

Re: Python marks an instance of my class undefined

2011-09-06 Thread Kayode Odeyemi
I was able to get this solved by calling class like this: >>> from core.fleet import Fleet >>> f = Fleet() Thanks to a thread from the list titled "TypeError: 'module' object is not callable" On Tue, Sep 6, 2011 at 2:02 PM, Kayode Odeyemi wrote: > Is there anything I need to do to create an in

Python marks an instance of my class undefined

2011-09-06 Thread Kayode Odeyemi
Is there anything I need to do to create an instance of a class? I have this simple code(The class is in a package core.fleet): class Fleet(object): def __init__(self): """ no-arg constructor """ def fleet_file_upload(self, filename, type=None): if type == 'user':