Refactor execute_operation a bit
This commit is contained in:
1 parent
bd2ed8dbbd
commit
11a12d6ca8
7 files changed
+36
-17
No files matched your search
@@ -300,6 +300,17 @@ some_dct['b']
|
||||
#? int() float() str()
|
||||
some_dct['c']
|
||||
|
||||
class Foo:
|
||||
pass
|
||||
|
||||
objects = {object(): 1, Foo: '', Foo(): 3.0}
|
||||
#? int() float() str()
|
||||
objects[Foo]
|
||||
#? int() float() str()
|
||||
objects[Foo()]
|
||||
#? int() float() str()
|
||||
objects['']
|
||||
|
||||
# -----------------
|
||||
# with variable as index
|
||||
# -----------------
|
||||
|
||||
@@ -56,6 +56,12 @@ a
|
||||
(3 ** 3)
|
||||
#? int() str()
|
||||
(3 ** 'a')
|
||||
#? int() str()
|
||||
(3 + 'a')
|
||||
#? bool()
|
||||
(3 == 'a')
|
||||
#? bool()
|
||||
(3 >= 'a')
|
||||
|
||||
class X():
|
||||
foo = 2
|
||||
|
||||
Reference in new issue
Block a user