On Wed, Apr 16, 2008 at 01:41:13PM -0500, Larry Bates wrote:
> Prashant wrote:
> > I was wondering is there any way to do this:
> >
> > I have written a class in python and __init__ goes like this:
> >
> > def __init__(self):
> >
> > self.name = 'jack'
> > self.age = 50
> >
> > import data
> >
Prashant wrote:
> I was wondering is there any way to do this:
>
> I have written a class in python and __init__ goes like this:
>
> def __init__(self):
>
> self.name = 'jack'
> self.age = 50
>
> import data
>
>
>
>
> now here there is data.py in the same directory and contents are like:
>
On 16 avr, 09:42, "Prashant" <[EMAIL PROTECTED]> wrote:
> I was wondering is there any way to do this:
>
> I have written a class in python and __init__ goes like this:
>
> def __init__(self):
>
> self.name = 'jack'
> self.age = 50
>
> import data
>
> now here there is data.py in the same directory