[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper
Serhiy Storchaka
report at bugs.python.org
Wed Mar 31 10:09:41 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
As for dbm.dumb, it was an attempt to make _Database._commit() working at the shutdown stage (it is indirectly called from __del__()). See issue723231. Although in Python 2 __builtin__.open != io.open, and in Python 3.0 the code already uses io.open directly.
I afraid that this code is not reliable (and never was reliable), because modules os and io can be cleared before calling it, so os.unlink and io.open would not work. But this is a different issue.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43680>
_______________________________________
More information about the Python-bugs-list
mailing list