-
-
Notifications
You must be signed in to change notification settings - Fork 245
bpython issues with Flask-SQLAlchemy session #676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I suspect that |
I agree the issue is greenlets here, see #641 which would be the fix. |
Probably a dup of #640 at least in root cause, but good to have this separate symptom of this filed. |
any updates here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been trying to find out why I am having some flask-sqlalchemy session handling issues while using bpython. Here is the issue in action:
Upon further inspection, it seems that the
db.session.add()
call in bpython is creating a new session entirely and placing the user instance in that one:and attempting to again add the instance to the db.session results in a conflict:
Any idea why this seems to only happen in bpython and not python/ipython?
The text was updated successfully, but these errors were encountered: