Source

rope_py3k / rope / base / builtins.py

Diff from to

File rope/base/builtins.py

 
     def _list_get(self, context):
         if self.holding is not None:
+            args = context.get_arguments(['self', 'key'])
+            if len(args) > 1 and args[1] is not None \
+                and args[1].get_type() == builtins['slice'].get_object():
+                return get_list(self.holding)
             return self.holding
         return context.get_per_name()
 
         return  'lambda'
 
     def get_param_names(self, special_args=True):
-        result = [node.id for node in self.arguments.args
-                  if isinstance(node, ast.Name)]
+        result = [node.arg for node in self.arguments.args
+                  if isinstance(node, ast.arg)]
         if self.arguments.vararg:
             result.append('*' + self.arguments.vararg)
         if self.arguments.kwarg: