Message240063
Proposed patch fixes two related issues in a number of modules.
1. close() methods sometimes release multiple resources. Every closing operation can fail, but it shouldn't prevent releasing other resources. See for example issue21802.
2. close() should be idempotent. I.e. calling close() second times shouldn't have any effect. Even if close() failed, repeated call of close() (usually in __exit__(), in __del__(), or in finally block) shouldn't raise an exception.
Many close() methods already satisfy these conditions, but not all. |
|
Date |
User |
Action |
Args |
2015-04-04 11:13:01 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2015-04-04 11:13:00 | serhiy.storchaka | set | messageid: <1428145980.2.0.463866688715.issue23865@psf.upfronthosting.co.za> |
2015-04-04 11:13:00 | serhiy.storchaka | link | issue23865 messages |
2015-04-04 11:12:59 | serhiy.storchaka | create | |
|