Closed
Description
It seems that werkzeug's thread locals can't be used under bpython ?
thread.get_indent()
seems coherent tough.
$ bpython
bpython version 0.15 on top of Python 2.7.12+ /usr/bin/python
>>> from werkzeug.local import Local
>>> test = Local()
>>> test.foo = 1
>>> test.foo
Traceback (most recent call last):
File "<input>", line 1, in <module>
test.foo
File "/usr/lib/python2.7/dist-packages/werkzeug/local.py", line 72, in __getattr__
raise AttributeError(name)
AttributeError: foo
expected behaviour under ipython:
$ ipython
Python 2.7.12+ (default, Sep 1 2016, 20:27:38)
IPython 4.2.1 -- An enhanced Interactive Python.
In [1]: from werkzeug.local import Local
In [2]: test = Local()
In [3]: test.foo = 1
In [4]: test.foo
Out[4]: 1
I could not find the time to dig deeper unfortunately so I'm just reporting.