[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Thomas Grainger


Thomas Grainger  added the comment:

> this option should be used exclusively for debugging user extension modules.

I have a very large codebase that fires the odd ResourceWarning, and after 
fixing them all I'd like to ensure that they do not reoccur. When using `-W 
error` it still won't fail CI. So I would use this -X option for more than 
debugging user extension modules

--

___
Python tracker 

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



[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It looks like a good idea to me. But it should not be -W error. It should be an 
-X option, and this option should be used exclusively for debugging user 
extension modules.

--
nosy: +vstinner

___
Python tracker 

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



[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi Serhiy,

What do you think about this idea?

Normally, we could use -W error when there is an exception.

--
nosy: +matrixise, serhiy.storchaka

___
Python tracker 

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



[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Thomas Grainger


New submission from Thomas Grainger :

Currently it's quite easy for these errors to go unnoticed.

I'd like a way to easily detect these in CI.

nedbat suggested piping the process output to another tool, and looking for 
'Exception ignored in:' but this seems a little diff

--
components: Interpreter Core
messages: 341708
nosy: graingert
priority: normal
severity: normal
status: open
title: CLI option to make PyErr_WriteUnraisable abortthe current process
type: enhancement

___
Python tracker 

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