Re: initialization in python

2009-01-01 Thread koranthala
On Jan 1, 11:14 pm, Terry Reedy wrote: > koranth...@gmail.com wrote: > >>> Module database: > >>> ^^^ > >>> Session = None > > 'Initializing' names is not necessary.  Delete this.  Without it, your > error would be more obvious. > > >>> def init(dbname): > >>>    engine = create_en

Re: initialization in python

2009-01-01 Thread Terry Reedy
koranth...@gmail.com wrote: Module database: ^^^ Session = None 'Initializing' names is not necessary. Delete this. Without it, your error would be more obvious. def init(dbname): engine = create_engine('sqlite:///%s' %dbname) ... global Session Session = sess

Re: initialization in python

2009-01-01 Thread koranthala
On Jan 1, 6:54 pm, John Machin wrote: > On Jan 1, 11:44 pm, koranth...@gmail.com wrote: > > > > > How does an average product handle initialization in python? > > I am facing lot of issues in handling initialization, especially if I > > import specific variables, due to the variables not getting u

Re: initialization in python

2009-01-01 Thread John Machin
On Jan 1, 11:44 pm, koranth...@gmail.com wrote: > How does an average product handle initialization in python? > I am facing lot of issues in handling initialization, especially if I > import specific variables, due to the variables not getting updated. > > For example - taking a sqlalchemy based p