Re: __init__.py file

2008-04-09 Thread Jeffrey Barish
cesco wrote: > I need to instantiate an object (my_object) whose methods I have to > use in two files (file1.py and file2.py) which are in the same > directory. Is it possible to instantiate such object in the > __init__.py file and then directly use it in file1.py and file2.py? > If not, as I seem

Re: __init__.py file

2008-04-08 Thread Gabriel Genellina
En Tue, 08 Apr 2008 17:51:21 -0300, cesco <[EMAIL PROTECTED]> escribió: > I need to instantiate an object (my_object) whose methods I have to > use in two files (file1.py and file2.py) which are in the same > directory. Is it possible to instantiate such object in the > __init__.py file and then

Re: __init__.py file

2008-04-08 Thread Steven W. Orr
On Tuesday, Apr 8th 2008 at 16:51 -, quoth cesco: =>Hi, => =>I need to instantiate an object (my_object) whose methods I have to =>use in two files (file1.py and file2.py) which are in the same =>directory. Is it possible to instantiate such object in the =>__init__.py file and then directly u