mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-11 09:08:43 +08:00
sorted builtin should now be working, fixes #312
This commit is contained in:
@@ -199,6 +199,10 @@ class reversed():
|
|||||||
return self.__next__()
|
return self.__next__()
|
||||||
|
|
||||||
|
|
||||||
|
def sorted(iterable, cmp=None, key=None, reverse=False):
|
||||||
|
return iterable
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------
|
#--------------------------------------------------------
|
||||||
# basic types
|
# basic types
|
||||||
#--------------------------------------------------------
|
#--------------------------------------------------------
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ std library stuff
|
|||||||
# -----------------
|
# -----------------
|
||||||
arr = ['']
|
arr = ['']
|
||||||
|
|
||||||
#? int()
|
#? str()
|
||||||
sorted(arr)[0]
|
sorted(arr)[0]
|
||||||
|
|
||||||
#? str()
|
#? str()
|
||||||
|
|||||||
Reference in New Issue
Block a user