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 steve.dower, tim.golden, vstinner, zach.ware
Date 2015-02-12.15:34:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwb_6hi00aH5Nbuv17wRK0xM1PP0jUuHuNJGnTTWZ1qqJQ@mail.gmail.com>
In-reply-to <1423750639.26.0.597512478999.issue23314@psf.upfronthosting.co.za>
Content
"An environment variable is an easy way to make sure that all
subprocesses also have assert dialogs disabled. In release builds they
are always disabled, hence the _DEBUG check."

If _PyVerify_fd() must go, I would prefer to always disable CRT check.
Otherwise, os.dup(<invalid fd>) would open the CRT assertion popup,
instead of raising OSError(EBADF). I prefer to have the same behaviour
with any version of the CRT and any version of the Visual Studio.

You may add an environment variable to explicitly *enable* the check,
if you want.

Programming with Python is different than programming with C. Python
always raise an OSError(EBADF) exception. It's not like the C
language, where you have to explicitly check the result of each
function call. It's difficult to ignore OSError without notifying it.

I don't know other CRT checks. Many other checks make sense for Python too?
History
Date User Action Args
2015-02-12 15:34:04vstinnersetrecipients: + vstinner, tim.golden, zach.ware, steve.dower
2015-02-12 15:34:04vstinnerlinkissue23314 messages
2015-02-12 15:34:04vstinnercreate