def _get__cmp__items(self):
        """implementation details"""
        items = []
        if self._optimized:
            # in this case we don't need to build class internal declarations
            # list
            items.append(self._all_decls_not_recursive.sort())
        else:
            items.append(self.declarations.sort())
        items.extend(self._get__cmp__scope_items())
        return items
def _get__cmp__items ( self ) : items = [ ] if self . _optimized : items . append ( self . _all_decls_not_recursive . sort ( ) ) else : items . append ( self . declarations . sort ( ) ) items . extend ( self . _get__cmp__scope_items ( ) ) return items
implementation details