Make the order of overloaded functions correct
This commit is contained in:
1 parent
04bc9eb62c
commit
286d2c9b1a
5 files changed
+17
-6
No files matched your search
@@ -281,11 +281,19 @@ d = dict(a=3, b='')
|
||||
x, = d.values()
|
||||
#? int() str()
|
||||
x
|
||||
#? int() str()
|
||||
#? int()
|
||||
d['a']
|
||||
#? int() str() None
|
||||
d.get('a')
|
||||
|
||||
some_dct = dict({'a': 1, 'b': ''}, a=1.0)
|
||||
#? float()
|
||||
some_dct['a']
|
||||
#? str()
|
||||
some_dct['b']
|
||||
#? int() float() str()
|
||||
some_dct['c']
|
||||
|
||||
# -----------------
|
||||
# with variable as index
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user