sounds very much like https://www.python.org/dev/peps/pep-0463/#rejection-notice
I'm concerned with the `safe` defaulting to a bare `except:` which will also
catch CancelledError other errors that should be re-raised
also
```
file = safe open('some_file')
```
does not provide a way to manage the file with a context manager:
```
f = safe open("some_file")
if f is None:
# do something
else:
with f:
# do something else
```
seems no improvement than the current:
```
try:
f = open("some_file")
except OSError:
# do something
else:
with f:
# do something else
```
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/7MN4G5INW2CZXVMC7KHHUMXIZ3ZZNDBZ/
Code of Conduct: http://python.org/psf/codeofconduct/