Showing content from http://mail.python.org/pipermail/python-dev/attachments/20161010/26c0be80/attachment.html below:
<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 2016-10-10, at 11:05 , Devin Jeanpierre <<a href="mailto:jeanpierreda@gmail.com" class="">jeanpierreda@gmail.com</a>> wrote:</div><div class=""><div dir="ltr" class=""><div class=""><span style="font-size:12.8px" class="">The term "borrowed" is supposed to imply a sensible scope during which you're free to use the object, and weakrefs don't have that (except for what is granted by the GIL), so this does sound wacky. I bet it was for performance.<br class=""></span></div></div></div></blockquote><br class=""></div><div><div>Especially as it handles both getting an object from a weakref and</div><div>checking whether the weakref is still alive.</div></div><div><br class=""></div><div><div>OTOH it could be an enshrined bug, <a href="http://bugs.python.org/issue520087" class="">http://bugs.python.org/issue520087</a></div><div>fixed a discrepancy between the doc and the implementation by matching</div><div>the doc to the implementation (of returning a borrowed ref').</div><div><br class=""></div><div><div>Also of note, pypy developers have been reporting issues with that</div><div>specific API since ~2010[0][1], and IIRC they have added a</div><div>PyWeakref_LockObject to cpyext.</div></div><div><br class=""></div><div>[0] <a href="http://bugs.python.org/issue8578" class="">http://bugs.python.org/issue8578</a></div><div>[1] <a href="http://bugs.python.org/issue16602#msg177272" class="">http://bugs.python.org/issue16602#msg177272</a></div></div></body></html>
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