This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author carljm
Recipients Omer.Katz, alex, carljm, eric.araujo, madison.may, ncoghlan, pitrou, pydanny, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2016-11-11.21:52:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478901132.36.0.308733133386.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, Danny. Uploaded a version of the patch that adds thread-safety (with a test). Unlike in your lib, I didn't make it a separate version of the decorator; since the lock is not checked on cached access, its slight overhead on the initial computation is probably not an issue, likely outweighed by the cost of the computation itself.

If someone decides to pursue a C version with slots support, hopefully at least these tests are still useful :-)
History
Date User Action Args
2016-11-11 21:52:12carljmsetrecipients: + carljm, rhettinger, ncoghlan, pitrou, vstinner, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz
2016-11-11 21:52:12carljmsetmessageid: <1478901132.36.0.308733133386.issue21145@psf.upfronthosting.co.za>
2016-11-11 21:52:12carljmlinkissue21145 messages
2016-11-11 21:52:12carljmcreate