-
-
Notifications
You must be signed in to change notification settings - Fork 245
werkzeug thread locals does not work under bpython #640
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
Comments
This might be a side effect of executing in separate greenlets. Does it work if you launch the old interface, i.e. |
@sebastinas yes, this case works aside the ansi code outputted as is:
The problem is that I'm trying to embed bpyhon in Odoo: and Odoo uses werkzeug thread locals so basically the bpython users can't use their favorite shell interface for the moment because it will trigger an error as soon as they use an Odoo method. Do you have an advice about how I can embed bpython using the old interface (and preferably with a prompt not displaying ansi characters on the terminal) ? |
@sebastinas Do you think it is possible to use the old interface in |
Closing in favor of #852. |
It seems that werkzeug's thread locals can't be used under bpython ?
thread.get_indent()
seems coherent tough.expected behaviour under ipython:
I could not find the time to dig deeper unfortunately so I'm just reporting.
The text was updated successfully, but these errors were encountered: