/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | fun_callstar.py | 3 def foo(a, b, c): function 6 foo(*(1, 2, 3)) 7 foo(1, *(2, 3)) 8 foo(1, 2, *(3,)) 9 foo(1, 2, 3, *()) 12 foo(1, 2, *[100]) 15 foo(*range(3)) 21 def foo(*rest): function 23 foo(*range(10)) 32 a.foo(*(1, 2, 3)) [all …]
|
A D | class_binop.py | 1 class foo(object): class 27 print(foo(i) == foo(j)) 28 print(foo(i) < foo(j)) 29 print(foo(i) > foo(j)) 30 print(foo(i) <= foo(j)) 31 print(foo(i) >= foo(j))
|
A D | fun_globals.py | 4 def foo(): function 8 if not hasattr(foo, "__globals__"): 12 print(type(foo.__globals__)) 13 print(foo.__globals__ is globals()) 15 foo.__globals__["bar"] = 123 19 foo.__globals__ = None
|
A D | subclass_classmethod.py | 5 def foo(cls): member in Base 18 Sub.foo() 23 foo = 0 variable in A 27 print(cls.foo) 30 print(self.foo) 33 foo = 1 variable in B
|
A D | try_finally1.py | 38 foo() 50 foo() 64 foo() 80 foo 92 foo
|
A D | class_super_multinherit.py | 4 def foo(self): member in A 8 def foo(self): member in B 12 def foo(self): member in C 14 super().foo() 16 C().foo()
|
A D | class_super.py | 28 def foo(self): member in A 32 def foo(self): member in B 35 return super().foo().count(2) # calling a subsequent method 36 print(B().foo()) 47 super(B, B()).foo = 1 51 del super(B, B()).foo
|
A D | class_super_closure.py | 6 def foo(self): member in A 10 def foo(self): member in B 13 return [self.bar(i) for i in super().foo()] 17 print(A().foo()) 18 print(B().foo())
|
A D | namedtuple1.py | 13 for t in T(1, 2), T(bar=1, foo=2): 16 print(t.foo, t.bar) 53 t = T(foo=1) 58 t = T(1, foo=1) 77 print(t.foo, t.bar) 82 print(t.foo, t.bar)
|
A D | class_instance_override.py | 4 def foo(self): member in A 8 print(a.foo()) 9 a.foo = lambda:2 10 print(a.foo())
|
A D | fun_defargs2.py | 3 def foo(a, b=3): function 7 foo(1, 333) 10 foo(1, b=333) 13 foo(a=2, b=333)
|
A D | logic_constfolding.py | 12 print(1 or foo) 13 print(f_false() or 1 or foo) 16 print(0 and foo) 18 print(f_true() and 0 and foo)
|
A D | try2.py | 7 foo() 18 foo() 45 foo()
|
A D | builtin_dir.py | 19 foo = Foo() variable 20 print('__init__' in dir(foo)) 21 print('x' in dir(foo))
|
A D | builtin_property_inherit.py | 30 F.foo = property(lambda self: print('foo get')) 33 F().foo 34 G().foo
|
A D | string_format.py | 80 print("{foo}/foo".format(foo="bar")) 81 print("{}".format(123, foo="bar")) 82 print("{}-{foo}".format(123, foo="bar"))
|
/AliOS-Things-master/components/py_engine/tests/import/ |
A D | import_pkg2.py | 1 from pkg.mod import foo 11 print(foo()) 17 print(mod_1.foo is mod_2.foo) 18 print(foo is mod_1.foo)
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | float_compare.py | 8 foo = Foo() variable 10 print(foo == 1.0) 11 print(1.0 == foo) 17 print(foo < 1.0) 22 print(1.0 < foo)
|
/AliOS-Things-master/components/py_engine/tests/micropython/ |
A D | heapalloc_super.py | 20 def foo(self): member in A 26 def foo(self): member in B 28 print(super().foo()) 34 b.foo()
|
/AliOS-Things-master/components/cplusplus/example/cpp_aos/ |
A D | basic_test.cpp | 17 void foo() { cout << "A class foo." << endl; } in foo() function in A 26 void foo() { cout << "B class foo." << endl; } in foo() function in B 46 pa->foo(); in class_ploy_test() 49 pb->foo(); in class_ploy_test() 52 pc->foo(); in class_ploy_test()
|
/AliOS-Things-master/components/py_engine/tests/stress/ |
A D | recursion.py | 1 def foo(): function 2 foo() 6 foo()
|
/AliOS-Things-master/components/py_engine/tests/thread/ |
A D | stress_recurse.py | 8 def foo(): function 9 foo() 14 foo()
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | uasyncio_await_return.py | 13 async def foo(): function 19 print(await foo()) 22 task = asyncio.create_task(foo())
|
/AliOS-Things-master/components/py_engine/engine/mpy-cross/ |
A D | README.md | 13 $ ./mpy-cross foo.py 15 This will create a file foo.mpy which can then be copied to a place accessible 17 imported like any other Python module using `import foo`. 23 $ ./mpy-cross -mcache-lookup-bc foo.py
|
/AliOS-Things-master/documentation/coding/ |
A D | coding_style.md | 101 void foo(void) 124 void foo(void) 134 void foo(void) 145 void foo(unsigned int nbr_processes) 184 foo(NULL); /* abc */ 202 foo(); 228 void foo(void) 266 void foo(int x, int y); 298 foo(0);
|