In bug 4804, there is some debate about how desirable it is for Python to unconditionally disable all CRT assertions on Windows - however, there is agreement that exposing the ability to enable and disable these assertions via the msvcrt module is reasonable - so I'm attaching a patch for exactly that. I'd also like to nominate this for the 2.6 and py3k branches.
Has there been any consensus about what to do with this? I know there was some chatter on python-dev about assertions causing problems with buildbots (6 months ago?) but I don't think anything came out of it. The code change is small and looks good. Is it worth extending this to expose CrtSetReportFile since a file is one of the options of CrtSetReportMode?