[issue30295] msvcrt SetErrorMode not documented

2021-03-06 Thread Eryk Sun


Change by Eryk Sun :


--
components: +Library (Lib)
type:  -> enhancement
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.4, Python 3.5, Python 
3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30295] msvcrt SetErrorMode not documented

2017-05-07 Thread Eryk Sun

Changes by Eryk Sun :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30295] msvcrt SetErrorMode not documented

2017-05-07 Thread Eryk Sun

Eryk Sun added the comment:

msvcrt set_error_mode, CrtReportMode, CrtReportFile and the associated CRT 
constants should be documented for use with debug builds. Also, msvcrt is 
missing the set_error_mode constants _OUT_TO_DEFAULT, _OUT_TO_STDERR, 
_OUT_TO_MSGBOX, and _REPORT_ERRMODE.

SetErrorMode [1] and the SEM_* constants are defined in msvcrt, for convenience 
I suppose. They're not related to the CRT. I think they should be aliased in 
the os module and documented there. GetErrorMode [2] can also be provided in 
Python 3.5+. It would be useful to also provide SetThreadErrorMode [3] and 
GetThreadErrorMode conditionally in Windows 7+, which is practically all 
Windows users nowadays.

[1]: https://msdn.microsoft.com/en-us/library/ms680621
[2]: https://msdn.microsoft.com/en-us/library/ms679355
[3]: https://msdn.microsoft.com/en-us/library/dd553630

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30295] msvcrt SetErrorMode not documented

2017-05-07 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

Also SEM_FAILCRITICALERRORS and other SEM_constants. They should as setting 
error mode on Windows for console applications is a pretty common use case (in 
fact ./Lib/test/libregrtest/setup.py uses it).

--
assignee: docs@python
components: Documentation
messages: 293189
nosy: docs@python, giampaolo.rodola
priority: normal
severity: normal
status: open
title: msvcrt SetErrorMode not documented
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com