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
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
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, du
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 s
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 product:
Module database:
^^^
Session