Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: guard-compatible
Changeset: r93674:cc0db61083d2
Date: 2018-01-15 17:07 +0100
http://bitbucket.org/pypy/pypy/changeset/cc0db61083d2/
Log: improve docstring
diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -98,9 +98,9 @@
@jit.elidable_compatible()
def find_map_storageindex(self, name, index):
""" return an index of the attributes, or a negative number if the
- attribute is not there. returns -1 if the attribute does not exist and
- the object does *not* have a devolved terminator, and -2 if the
- terminator *is* devolved """
+ attribute is not there. returns NOATTR if the attribute does not exist
+ and the object does *not* have a devolved terminator, and
+ NOATTR_DEVOLVED_TERMINATOR if the terminator *is* devolved """
attr = self.find_map_attr(name, index)
if attr is None:
if isinstance(self.terminator, DevolvedDictTerminator):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit