[New-bugs-announce] [issue35445] Do not ignore errors when create posix.environ

Serhiy Storchaka report at bugs.python.org
Sun Dec 9 07:34:29 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35445>
_______________________________________


More information about the New-bugs-announce mailing list