Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Should be easy enough to implement. You only need a context manager that adds 1 to some threadlocal flag on enter and subrracts on exit then check this flag in the monkey patch. Not sure how costly that will be though.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: