rope_py3k / rope / base /

Diff from to


     def get_param_names(self, special_args=True):
         return self.argnames
+    @utils.saveit
+    def get_attributes(self):
+        result = _object_attributes(self.builtin.__class__, self)
+        return result
 class BuiltinUnknown(_BuiltinElement, pyobjects.PyObject):
         if inspect.isclass(child):
             pyobject = BuiltinClass(child, {}, parent=parent)
         elif inspect.isroutine(child):
-            pyobject = BuiltinFunction(builtin=child, parent=parent)
+            if inspect.ismethoddescriptor(child) and "__weakref__" in dir(obj):
+                try:
+                    bobj = child.__get__(obj.__weakref__.__objclass__())
+                except:
+                    bobj = child
+                pyobject = BuiltinFunction(builtin=bobj, parent=parent)
+            else:
+                pyobject = BuiltinFunction(builtin=child, parent=parent)
             pyobject = BuiltinUnknown(builtin=child)
         attributes[name] = BuiltinName(pyobject)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.