MCPcopy Index your code
hub / github.com/python/cpython / sort

Method sort

Lib/imaplib.py:897–908  ·  view source on GitHub ↗

IMAP4rev1 extension SORT command. (typ, [data]) = .sort(sort_criteria, charset, search_criteria, ...)

(self, sort_criteria, charset, *search_criteria)

Source from the content-addressed store, hash-verified

895
896
897 def sort(self, sort_criteria, charset, *search_criteria):
898 """IMAP4rev1 extension SORT command.
899
900 (typ, [data]) = <instance>.sort(sort_criteria, charset, search_criteria, ...)
901 """
902 name = 'SORT'
903 #if not name in self.capabilities: # Let the server decide!
904 # raise self.error('unimplemented extension command: %s' % name)
905 if (sort_criteria[0],sort_criteria[-1]) != ('(',')'):
906 sort_criteria = '(%s)' % sort_criteria
907 typ, dat = self._simple_command(name, sort_criteria, charset, *search_criteria)
908 return self._untagged_response(typ, dat, name)
909
910
911 def starttls(self, ssl_context=None):

Callers 15

rtd_switcher.jsFile · 0.45
_updateBarsMethod · 0.45
_compose_mroFunction · 0.45
attr_matchesMethod · 0.45
any_missing_maybeMethod · 0.45
_getmembersFunction · 0.45
getmodulenameFunction · 0.45
walktreeFunction · 0.45
_walk_dirFunction · 0.45
sort_attributesFunction · 0.45
docmoduleMethod · 0.45

Calls 2

_simple_commandMethod · 0.95
_untagged_responseMethod · 0.95

Tested by 3

findMethod · 0.36
summarizeMethod · 0.36
DocTestSuiteFunction · 0.36