This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eryksun, martin.panter, python-dev, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2015-04-02.08:04:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427961867.9.0.246079935806.issue22977@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-02 08:04:27vstinnersetrecipients: + vstinner, tim.golden, python-dev, martin.panter, zach.ware, serhiy.storchaka, eryksun, steve.dower
2015-04-02 08:04:27vstinnersetmessageid: <1427961867.9.0.246079935806.issue22977@psf.upfronthosting.co.za>
2015-04-02 08:04:27vstinnerlinkissue22977 messages
2015-04-02 08:04:27vstinnercreate