[issue25930] os.unlink != os.remove in python3.5
Eryk Sun
report at bugs.python.org
Tue Dec 22 18:56:55 EST 2015
Eryk Sun added the comment:
This is due to using argument clinic in Modules/posixmodule.c:
/*[clinic input]
os.remove = os.unlink
builtin_function_or_method instances are equal if m_self (the module in this case) and m_ml->ml_meth (the C function) are the same. In 3.4, the function posix_unlink is used for both os.unlink and os.remove, which is why they compare as equal. In 3.5, argument clinic defines separate os_unlink and os_remove implementations in Modules/clinic/posixmodule.c.h.
----------
components: +Argument Clinic, Library (Lib)
nosy: +eryksun, larry
versions: +Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25930>
_______________________________________
More information about the Python-bugs-list
mailing list