Message383560
Thanks Raymond for the input.
So with some experimentation, the __enter__() & __exit__() functions could be traceable when other kinds of objects are used with the context manager (i.e with statement using file IO or custom class objects). However, just when the object is a Lock object, then this is not the case anymore - which basically shows an unusual behavior if we were to think that such statements are executed for a specific thread. Also please mind that the threading module already implements settrace() and setprofile() methods like the sys module to extend tracing capabilities. |
|
Date |
User |
Action |
Args |
2020-12-21 21:51:51 | mhmdkanj | set | recipients:
+ mhmdkanj, rhettinger, vstinner, eric.araujo, docs@python, dstufft |
2020-12-21 21:51:51 | mhmdkanj | set | messageid: <1608587511.69.0.0641060569121.issue42705@roundup.psfhosted.org> |
2020-12-21 21:51:51 | mhmdkanj | link | issue42705 messages |
2020-12-21 21:51:51 | mhmdkanj | create | |
|