Message240063
| Author |
serhiy.storchaka |
| Recipients |
serhiy.storchaka |
| Date |
2015年04月04日.11:12:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1428145980.2.0.463866688715.issue23865@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|