Open nberrios opened 7 years ago
I suspect that greenlets
cause this issue.
I agree the issue is greenlets here, see https://github.com/bpython/bpython/issues/641 which would be the fix.
Probably a dup of https://github.com/bpython/bpython/issues/640 at least in root cause, but good to have this separate symptom of this filed.
any updates here?
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?