[Python-Dev] process-wide warning settings (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Mon Nov 13 12:27:40 EST 2017
- Previous message (by thread): [Python-Dev] Add a developer mode to Python: -X dev command line option
- Next message (by thread): [Python-Dev] Add a developer mode to Python: -X dev command line option
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 13 Nov 2017 18:19:07 +0100 Victor Stinner <victor.stinner at gmail.com> wrote:
I really dislike this code since warnings.catchwarnings() is process-wide and so impact other threads :-( (Maybe Yury's PEP "context variables" would help here? ;-))
They can't really help unless we break the catch_warnings() API to make it affect some kind of thread-local warning settings (which don't exist currently).
Regards
Antoine.
- Previous message (by thread): [Python-Dev] Add a developer mode to Python: -X dev command line option
- Next message (by thread): [Python-Dev] Add a developer mode to Python: -X dev command line option
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]