Anonymous committed 194b9d9

builtin: removed unneeded builtin methods

They are calculated in _object_attributes()

Comments (0)

Files changed (1)


         collector('__iter__', function=self._iterator_get)
         collector('__new__', function=self._new_list)
-        for method in ['count', 'index', 'remove', 'reverse', 'sort']:
-            collector(method)
         # Adding methods
         collector('append', function=self._list_add, argnames=['self', 'value'])
         item = get_tuple(self.keys, self.values)
         collector = _AttributeCollector(dict)
         collector('__new__', function=self._new_dict)
-        for method in ['clear', 'setdefault']:
-            collector(method)
         collector('__setitem__', function=self._dict_add)
         collector('popitem', function=self._item_get)
         collector('pop', function=self._value_get)
                         'symmetric_difference', 'union']
         for method in self_methods:
             collector(method, function=self._self_get)
-        normal_methods = ['discard', 'remove',
-                          'issuperset', 'issubset', 'clear']
-        for method in normal_methods:
-            collector(method)
         collector('add', function=self._set_add)
         collector('update', function=self._self_set)
         collector('update', function=self._self_set)
         for method in ['rsplit', 'split', 'splitlines']:
             collector(method, get_list(self_object))
-        for method in ['count', 'endswith', 'find', 'index', 'isalnum',
-                       'isalpha', 'isdigit', 'islower', 'isspace', 'istitle',
-                       'isupper', 'rfind', 'rindex', 'startswith']:
-            collector(method)
         super(Str, self).__init__(str, collector.attributes)
     def get_doc(self):
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.