Message239888
On Python 3.4, windll.kernel32.RaiseException(2, 0, 0, None) raised a FileNotFound error.
On Python 3.5, it displays a popup and the program exit.
It looks like the behaviour of RaiseException() changed in Python 3.5. I tested in debug and release mode.
@Steve: Any idea?
--
Instead of RaiseException, you can use ctypes.pythondll.PyErr_SetFromWindowsErr(code).
> code = int.from_bytes(b"\xE0msc", "big")
Why not writing directly code = 3765269347?
The unit test should also check the exception message. |
|
Date |
User |
Action |
Args |
2015-04-02 08:04:27 | vstinner | set | recipients:
+ vstinner, tim.golden, python-dev, martin.panter, zach.ware, serhiy.storchaka, eryksun, steve.dower |
2015-04-02 08:04:27 | vstinner | set | messageid: <1427961867.9.0.246079935806.issue22977@psf.upfronthosting.co.za> |
2015-04-02 08:04:27 | vstinner | link | issue22977 messages |
2015-04-02 08:04:27 | vstinner | create | |
|