Message342709
No, BasicIO.close() is correct.
This is a bug in the garbage collector: the underlying file is closed before closing HTTPResponse. The HTTPResponse instance has a reference to the file object, the file object does not have a reference to the HTTPResponse instance, therefore the HTTPResponse instance should be destroyed first. |
|
Date |
User |
Action |
Args |
2019-05-17 11:35:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, xtreak |
2019-05-17 11:35:29 | serhiy.storchaka | set | messageid: <1558092929.59.0.000632195150005.issue36918@roundup.psfhosted.org> |
2019-05-17 11:35:29 | serhiy.storchaka | link | issue36918 messages |
2019-05-17 11:35:29 | serhiy.storchaka | create | |
|