Re: insert python script in current script

2008-04-18 Thread Nick Stinemates
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 > >

Re: insert python script in current script

2008-04-16 Thread Larry Bates
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: >

Re: insert python script in current script

2008-04-16 Thread colas . francis
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