Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 133) sorted by relevance

123456

/AliOS-Things-master/components/py_engine/tests/basics/
A Dfun_callstar.py3 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 Dclass_binop.py1 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 Dfun_globals.py4 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 Dsubclass_classmethod.py5 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 Dtry_finally1.py38 foo()
50 foo()
64 foo()
80 foo
92 foo
A Dclass_super_multinherit.py4 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 Dclass_super.py28 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 Dclass_super_closure.py6 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 Dnamedtuple1.py13 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 Dclass_instance_override.py4 def foo(self): member in A
8 print(a.foo())
9 a.foo = lambda:2
10 print(a.foo())
A Dfun_defargs2.py3 def foo(a, b=3): function
7 foo(1, 333)
10 foo(1, b=333)
13 foo(a=2, b=333)
A Dlogic_constfolding.py12 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 Dtry2.py7 foo()
18 foo()
45 foo()
A Dbuiltin_dir.py19 foo = Foo() variable
20 print('__init__' in dir(foo))
21 print('x' in dir(foo))
A Dbuiltin_property_inherit.py30 F.foo = property(lambda self: print('foo get'))
33 F().foo
34 G().foo
A Dstring_format.py80 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 Dimport_pkg2.py1 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 Dfloat_compare.py8 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 Dheapalloc_super.py20 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 Dbasic_test.cpp17 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 Drecursion.py1 def foo(): function
2 foo()
6 foo()
/AliOS-Things-master/components/py_engine/tests/thread/
A Dstress_recurse.py8 def foo(): function
9 foo()
14 foo()
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duasyncio_await_return.py13 async def foo(): function
19 print(await foo())
22 task = asyncio.create_task(foo())
/AliOS-Things-master/components/py_engine/engine/mpy-cross/
A DREADME.md13 $ ./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 Dcoding_style.md101 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);

Completed in 25 milliseconds

123456