Masayuki Yamamoto added the comment: After Erik posted PEP 539 draft, we've discussed features of new API on the Python-ideas [*]. As the result of discussion, features of new API have been changed below points. Thus, I updated patch based on the result.
1. API uses opaque type because to cover the key details. 2. The key has the state that is whether initialized, and a function is added to check the state. 3. When key creation and deletion, API silently skips function in unnecessary case (i.e. valid key never be overwritten). 4. The test is added to check the key state that after calling API. [*] https://mail.python.org/pipermail/python-ideas/2016-December/043983.html ---------- Added file: http://bugs.python.org/file46227/pythread-tss-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25658> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com