Showing content from http://mail.python.org/pipermail/python-dev/attachments/20180203/fd085e4b/attachment.html below:
<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 31, 2018 at 4:46 PM Jesus Cea <<a href="mailto:jcea@jcea.es">jcea@jcea.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="https://docs.python.org/3.6/library/threading.html" rel="noreferrer" target="_blank">https://docs.python.org/3.6/library/threading.html</a> doesn't document<br>
"threading.Lock().locked()", and it is something quite useful.<br>
<br>
In fact, it is used in "threading.py" itself. For instance, lines 109,<br>
985, 1289.<br>
<br>
Is there any reason to not document it?.<br></blockquote><div><br></div><div>No good reason. It is a public method and part of the public API regardless of being documented or not. Always feel free to make a documentation update PR.</div><div><br></div><div>The method does have a docstring.</div><div>  <a href="https://github.com/python/cpython/blob/master/Modules/_threadmodule.c#L193">https://github.com/python/cpython/blob/master/Modules/_threadmodule.c#L193</a></div><div><br></div><div>-gps</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
(I didn't investigate other objects in the module).<br>
<br>
--<br>
Jesús Cea Avión             _/_/   _/_/_/    _/_/_/<br>
<a href="mailto:jcea@jcea.es" target="_blank">jcea@jcea.es</a> - <a href="http://www.jcea.es/" rel="noreferrer" target="_blank">http://www.jcea.es/</a>Â Â Â _/_/Â Â _/_/Â _/_/Â Â _/_/Â _/_/<br>
Twitter: @jcea            _/_/  _/_/     _/_/_/_/_/<br>
jabber / <a href="mailto:xmpp%3Ajcea@jabber.org" target="_blank">xmpp:jcea@jabber.org</a>Â _/_/Â _/_/Â Â _/_/Â Â Â Â Â _/_/Â _/_/<br>
"Things are not so easy"Â Â Â _/_/Â _/_/Â Â _/_/Â _/_/Â Â _/_/Â _/_/<br>
"My name is Dump, Core Dump"Â Â _/_/_/Â Â Â Â _/_/_/Â Â Â _/_/Â _/_/<br>
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/greg%40krypto.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/greg%40krypto.org</a><br>
</blockquote></div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4