Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwerkzeug thread locals does not work under bpython #640
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 |
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.