New submission from Antti Haapala <[email protected]>:
The current documentation of `thread.local` is
----
Thread-Local Data
Thread-local data is data whose values are thread specific. To manage
thread-local data, just create an instance of local (or a subclass) and store
attributes on it:
mydata = threading.local()
mydata.x = 1
The instance’s values will be different for separate threads.
class threading.local
A class that represents thread-local data.
For more details and extensive examples, see the documentation string of
the _threading_local module.
----
There is no link to the `_threading_local` module docs in the documentation and
none of the content from the modules docstrings appear anywhere on
docs.python.org website. This is rather annoying because the docstring contains
completely non-trivial information including that threading.local can be
subclassed and that the __init__ will be run once for each thread for each
instance where attributes are accessed.
----------
assignee: docs@python
components: Documentation
messages: 380875
nosy: docs@python, ztane
priority: normal
severity: normal
status: open
title: threading.local documentation should be on the net...
type: enhancement
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42343>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com