Message382589
> So it should be, "if they fail and you're in a context where exceptions are allowed, raise an exception" (which will chain back to the one raised from an audit hook".
What exception should be raised if _Py_fopen() fails (returns NULL)? We can't just check errno anymore because _Py_fopen() might have failed because of the audit hook and thus didn't set errno. So it seems to me that addition of audit hooks broke the implicit contract of _Py_fopen()/_Py_wfopen(), and callers were not fixed. |
|
Date |
User |
Action |
Args |
2020-12-06 08:15:29 | izbyshev | set | recipients:
+ izbyshev, vstinner, eryksun, steve.dower |
2020-12-06 08:15:29 | izbyshev | set | messageid: <1607242529.39.0.873450211624.issue42569@roundup.psfhosted.org> |
2020-12-06 08:15:29 | izbyshev | link | issue42569 messages |
2020-12-06 08:15:28 | izbyshev | create | |
|