Message259891
Context manager protocol, close() method: it looks more and more like a file. In this case, I suggest to emit a ResourceWarning in the destructor if it's not closed explicitly. It mean that the scandir() must always be used with "with" or at least that close() is always closed.
We probably need to update the code to be more explicitly on that. |
|
Date |
User |
Action |
Args |
2016-02-08 22:14:22 | vstinner | set | recipients:
+ vstinner, gvanrossum, benhoyt, martin.panter, serhiy.storchaka |
2016-02-08 22:14:22 | vstinner | set | messageid: <1454969662.37.0.459765772989.issue25994@psf.upfronthosting.co.za> |
2016-02-08 22:14:22 | vstinner | link | issue25994 messages |
2016-02-08 22:14:22 | vstinner | create | |
|