Postgresql – session close is not working in python i m using sqlalchemy close() not working still i am getting session
> user = Session.query(User).filter_by(id=user_id).first() > print("Active Session", {'id': user.id, 'email': user.email} ) > Session.commit() > Session.close() > user = Session.query(User).filter_by(id=user_id).first() > print("After closing session", {'id': user.id, 'email': user.email}) i am trying to close session using python and sqlalchemy but after…