New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

Currently most errors during creating posix.environ are ignored except an error 
of creating an empty dict.

The initial revision 85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d contained the 
comment "XXX This part ignores errors". Later changes removed "XXX" from the 
comment and added explicit error clearing. Later the POSIX code was duplicated 
for Windows. It looks to me that that comment was not declared the intentional 
behavior, but just described existing code, and was left as a reminder for 
implementing error handling.

The proposed PR implements proper error handling in this code.

----------
components: Extension Modules
messages: 331427
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Do not ignore errors when create posix.environ
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35445>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to