[issue25315] OrderedDict mangled private attribute is inaccessible
R. David Murray
report at bugs.python.org
Mon Oct 5 10:19:16 EDT 2015
R. David Murray added the comment:
A method that starts with an '_' is not part of the API unless documented to be so (as with namedtuple), and a non-special method that starts with two is purposefully mangled so that you cannot accidentally rely on it. The C implementation is an implementation of the API and the behavior when that API is used (as vetted by the tests that are run against both implementations); it is not otherwise required to "conform" to the python implementation or vice versa.
----------
nosy: +r.david.murray
resolution: -> not a bug
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25315>
_______________________________________
More information about the Python-bugs-list
mailing list