Message164849
| Author |
Mark.Shannon |
| Recipients |
Mark.Shannon, alexis, benjamin.peterson, eric.araujo, larry, ncoghlan, pitrou, tarek |
| Date |
2012年07月07日.14:03:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1341669802.73.0.612072752068.issue14241@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> io.UnsupportedOperation.__new__(io.UnsupportedOperation)
behaves correctly now (rev d9c98730e2e8)
This bug was (I believe) caused somehow by an error in OSError_new() which did not initialize self->args if OSError_init() was not called.
Here is a crash which exploited the lack of initialization:
(Works on rev 2a142141e5fd)
>>> class C(ValueError, OSError):pass
...
>>> c = OSError.__new__(C)
>>> str(c)
Segmentation fault (core dumped)
This has already been fixed, so I'm closing this issue. |
|