dude wrote:
>>> f = foo("wow")
...
>>> However, I always get the "module not callable" error.
...
> That was the problem. I was using:
> import ohYeah
To get that error, I think you must have been importing
a module named "foo" as well. Or you would have gotten
a NameError instead.
--
Tom Zych
On Mar 3, 6:07 pm, MRAB wrote:
> On 04/03/2011 01:45, dude wrote:
>
>
>
> > I've been struggling with getting my class to behave the way I want
> > it.
>
> > I have python module called ohYeah.py, defined as follows...
> > #File Begin
> > class foo:
>
> > def __init__(self, arg1):
> >
On 04/03/2011 01:45, dude wrote:
I've been struggling with getting my class to behave the way I want
it.
I have python module called ohYeah.py, defined as follows...
#File Begin
class foo:
def __init__(self, arg1):
print arg1
self.ohYeah = arg1
def whatwhat(self):
Are you missing an import?
import ohYeah
f = ohYeah.foo('wow')
...
~/santa
On Thu, Mar 3, 2011 at 5:45 PM, dude wrote:
> I've been struggling with getting my class to behave the way I want
> it.
>
> I have python module called ohYeah.py, defined as follows...
> #File Begin
> class foo:
>
>