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 christian.heimes
Recipients christian.heimes, gregory.p.smith, python-dev, stanczyk, twouters
Date 2020-11-24.08:00:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606204802.26.0.140460403142.issue42443@roundup.psfhosted.org>
In-reply-to
Content
Besindes tests, PR also needs documentation and a better definition how and when the hook is called.

* IMO it should be called after profiling and tracing hook, so non-trivial hooks can be profiled and traced.
* It's important to define and document, which thread runs the hook (calling thread or new thread).
* Since the hook is designed to monitor thread creation, would it make sense to pass the thread object to the hook?
* How does the hook behave when the callback raises an exception?
* Is a single hook good enough or should the API behave more like atexit, which supports an abitrary amount of hooks?
* Instead of just a creation hook, how about lifetime hooks are also called when a thread ends?
History
Date User Action Args
2020-11-24 08:00:02christian.heimessetrecipients: + christian.heimes, twouters, gregory.p.smith, python-dev, stanczyk
2020-11-24 08:00:02christian.heimessetmessageid: <1606204802.26.0.140460403142.issue42443@roundup.psfhosted.org>
2020-11-24 08:00:02christian.heimeslinkissue42443 messages
2020-11-24 08:00:01christian.heimescreate