Commit d2da02fd authored by Stefan Behnel's avatar Stefan Behnel

add comment

parent f8d45815
......@@ -2796,6 +2796,8 @@ class IndexNode(ExprNode):
self.compile_time_value_error(e)
def is_ephemeral(self):
# in most cases, indexing will return a safe reference to an object in a container,
# so we consider the result safe if the base object is
return self.base.is_ephemeral()
def is_simple(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment