Home
last modified time | relevance | path

Searched full:foo* (Results 30226 - 30250 of 30905) sorted by relevance

1...<<1201120212031204120512061207120812091210>>...1237

/third_party/python/Lib/test/
H A Dtest_linecache.py216 self.assertEqual(False, linecache.lazycache('<foo>', globals()))
H A Dtest_keywordonlyarg.py27 class Foo: class
77 self.assertRaises(TypeError, Foo, ())
118 self.assertEqual(1, Foo(k1=1).sum())
119 self.assertEqual(1+2, Foo(k1=1,k2=2).sum())
130 def foo(p1,p2=0, *, k1, k2=0): function
133 self.assertEqual(2, foo.__code__.co_kwonlyargcount)
134 self.assertEqual({"k2":0}, foo.__kwdefaults__)
135 foo.__kwdefaults__ = {"k1":0}
137 foo(1,k1=10)
H A Dtest_kqueue.py197 a.send(b'foo')
203 self.assertEqual(b.recv(r[0].data), b'foo')
H A Dtest_keyword.py26 keyword.softkwlist = ["foo", "bar", "spam", "egs", "case"]
H A Dtest_named_expressions.py109 code = """class Foo():
H A Dtest_netrc.py194 self.assertEqual(nrc.hosts['foo.domain.com'], ('bar', '', passwd))
195 self.assertEqual(nrc.hosts['bar.domain.com'], ('foo', '', 'pass'))
200 machine foo.domain.com login bar password pass
201 machine bar.domain.com login foo password pass
207 machine foo.domain.com login bar password pass
208 machine bar.domain.com login foo password pass
214 machine foo.domain.com login bar password pass
215 machine bar.domain.com login foo password pass
220 machine foo.domain.com login bar password pass
222 machine bar.domain.com login foo passwor
[all...]
H A Dtest_os.py3613 setxattr(fn, s("user.test2"), b"foo", os.XATTR_CREATE, **kwargs)
3624 self.assertEqual(getxattr(fn, s("user.test2"), **kwargs), b"foo")
4530 c = type('foo', (), {})
H A Dtest_pathlib.py759 self.assertIs(False, P('/foo/bar').is_reserved())
1115 p = P('C:Foo/Bar')
1116 self.assertEqual(p.relative_to(P('c:')), P('Foo/Bar'))
1117 self.assertEqual(p.relative_to('c:'), P('Foo/Bar'))
1118 self.assertEqual(p.relative_to(P('c:foO')), P('Bar'))
1119 self.assertEqual(p.relative_to('c:foO'), P('Bar'))
1120 self.assertEqual(p.relative_to('c:foO/'), P('Bar'))
1121 self.assertEqual(p.relative_to(P('c:foO/baR')), P())
1122 self.assertEqual(p.relative_to('c:foO/baR'), P())
1128 self.assertRaises(ValueError, p.relative_to, P('Foo'))
[all...]
H A Dtest_patma.py2650 x = C({'foo': 'bar'})
2652 case {'foo': bar}:
H A Dtest_pdb.py43 >>> def test_function(foo, bar):
48 ... 'foo',
56 (Pdb) foo
72 >>> def test_function_2(foo, bar='default'):
73 ... print(foo)
81 ... return foo.upper()
103 ... 'next', # stepping to print(foo)
126 -> def test_function_2(foo, bar='default'):
128 foo = 'baz'
131 1 -> def test_function_2(foo, ba
[all...]
H A Dtest_peepholer.py281 code = compile('"foo"[0]', '', 'single')
370 foo()
383 a = foo()
H A Dtest_subprocess.py244 [sys.executable, "-c", "print('foo')"],
246 self.assertIn('foo', output)
3663 name = os.path.join(dir, "foo")
H A Dtest_struct.py54 self.assertRaises((TypeError, struct.error), struct.pack, 'i', 'foo')
55 self.assertRaises((TypeError, struct.error), struct.pack, 'P', 'foo')
H A Dtest_typing.py257 class Foo: class
259 class FooStr: class
261 class FooStrTyping: class
264 for target in [Foo, FooStr, FooStrTyping]:
313 class Foo: class
315 class FooStr: class
317 class FooStrTyping: class
320 for target in [Foo, FooSt
1968 def foo(a: Callable[..., T]): global() function
2266 class Foo(Literal[1]): pass global() class
2875 class Foo: ... global() class
3346 class Foo(P): global() class
3708 def foobar(x: List[List['CC']]): ... global() function
3709 def foobar2(x: list[list[ForwardRef('CC')]]): ... global() function
3710 def foobar3(x: list[ForwardRef('CC | int')] | int): ... global() function
3976 def foo(x: C['C']): ... global() function
4117 def foo(x: T): global() function
4231 class Foo(obj): global() class
4559 def foo(a: c1_gth, b: c2_gth): global() function
4578 def foo(a: c1_gth, b: c2_gth): global() function
4625 def foo(a: Union['T']): global() function
4631 def foo(a: tuple[ForwardRef('T')] | int): global() function
4639 def foo(a: Tuple['T']): global() function
4645 def foo(a: tuple[ForwardRef('T')]): global() function
4652 def foo(a: 'List[\\'int\\']'): global() function
4716 def foo(a: Callable[['T'], 'T']): global() function
4724 def foo(a: 'Callable[..., T]'): global() function
4755 def foo(a: 'Node[T'): global() function
4763 def foo(a: 'Noode[T]'): global() function
4772 def foo(a: 'whatevers') -> {}: global() function
4782 def foo(a: 'whatevers') -> {}: global() member in ForwardRefTests.test_no_type_check_class.C
4802 def foo(self, x: int): ... global() member in ForwardRefTests.test_no_type_check_no_bases.Child
4921 def foo(a: 'whatevers') -> {}: global() function
4926 def foo(a: 'whatevers') -> {}: global() member in ForwardRefTests.test_meta_no_type_check.C
5330 def foobar(x: List['X']): ... global() function
5341 def foobar(x: list[ForwardRef('X')]): ... global() function
5441 class Foo: global() class
5910 def foo(): global() function
6042 class Foo: ... global() class
6148 def foo(a: A) -> Optional[BaseException]: global() function
6797 class FooBarGeneric(BarGeneric[int]): global() class
7518 def foo(self, *args: "P.args", **kwargs: "P.kwargs"): global() member in ParamSpecTests.test_stringized.C
7895 def foo(arg) -> TypeGuard[int]: ... global() function
8117 class Foo(Generic[T]): global() class
[all...]
H A Dtest_unicode.py536 self.checkraises(TypeError, ' ', 'join', ['1', '2', MyWrapper('foo')])
1156 self.assertEqual("{0[foo-bar]}".format({'foo-bar':'baz'}), 'baz')
1157 self.assertEqual("{0[foo bar]}".format({'foo bar':'baz'}), 'baz')
1160 self.assertEqual('{foo._x}'.format(foo=C(20)), '20')
1200 self.assertEqual('{0:\x00<6s}'.format('foo'), 'foo\x00\x00\x00')
1201 self.assertEqual('{0:\x01<6s}'.format('foo'), 'fo
[all...]
H A Dtest_types.py1202 d = {'a': 1, 'b': 2, 'foo': 0, 'c': 3, 'd': 4}
1204 del d['foo']
1411 class Foo(metaclass=BadMeta): class in ClassCreationTests.test_bad___prepare__.BadMeta
1844 def foo(): function
1846 self.assertEqual(foo(), 'spam')
1853 def foo(): function
1855 self.assertIs(aw, foo())
1857 # decorate foo second time
1858 foo = types.coroutine(foo)
1865 async def foo(): pass global() function
1891 def foo(): global() function
1907 def foo(): global() function
1929 def foo(): return gen global() function
2051 def foo(): return Generator('spam') global() function
2074 def foo(): return gen global() function
2108 def foo(): global() function
[all...]
H A Dtest_type_comments.py8 def foo():
17 async def foo():
31 async def foo(xs):
49 def foo(): # type: () -> int
55 def foo():
75 def foo():
370 check_both_ways("foo() # type: int\n")
H A Dtest_type_annotations.py10 foo = type("Foo", (), {})
12 self.assertFalse("__annotations__" in foo.__dict__)
13 d = foo.__annotations__
14 self.assertTrue("__annotations__" in foo.__dict__)
15 self.assertEqual(foo.__annotations__, d)
16 self.assertEqual(foo.__dict__['__annotations__'], d)
17 del foo.__annotations__
20 foo = type("Foo", (), {})
[all...]
H A Dtest_dis.py513 def foo(x): function
516 return foo
525 LOAD_CONST 1 (<code object foo at 0x..., file "%s", line %d>)
527 STORE_FAST 1 (foo)
529 %3d LOAD_FAST 1 (foo)
539 Disassembly of <code object foo at 0x..., file "%s", line %d>:
798 func = "def foo():\n " + "".join(["\n "] * count + ["spam\n"])
800 return namespace['foo']
823 func = "def foo(x):\n " + ";".join(["x = x + 1"] * count) + "\n return x"
825 return namespace['foo']
[all...]
H A Dtest_dict.py123 d["foo"] = "bar"
369 # keys-space (to optimize memory footprint).
901 d["foo"] = d
1210 class Foo: class
1213 f = Foo('123')
1220 class Foo: pass class
1221 f = Foo()
1384 d = {"a": 1, "b": 2, "foo": 0, "c": 3, "d": 4}
1385 del d["foo"]
H A Dtest_difflib.py464 a = [b'foo\n']
474 a = ['foo\n']
510 a = 'foo bar'
511 b = 'foo baz bar'
H A Dtest_float.py186 class Foo1(object): class
190 class Foo2(float): class
194 class Foo3(float): class
201 class Foo4(float): class
207 class FooStr(str): class
211 self.assertEqual(float(Foo1()), 42.)
212 self.assertEqual(float(Foo2()), 42.)
214 self.assertEqual(float(Foo3(21)), 42.)
215 self.assertRaises(TypeError, float, Foo4(42))
216 self.assertEqual(float(FooStr('
218 class Foo5: global() class
[all...]
H A Dtest_fileio.py464 fn_with_NUL = 'foo\0bar'
/third_party/python/Lib/
H A Dtyping.py426 collections.abc.Iterable - isinstance(foo, Iterable) would be True.
572 class Foo:
1719 # For some generic class `Foo`:
1720 Foo[Unpack[tuple[int, str]]] # Equivalent to Foo[int, str]
1733 Foo[*tuple[int, str]]
1801 does. For example, for some generic class `Foo`, this is called when we
1802 do `Foo[int]` - there, with `cls=Foo` and `params=int`.
1805 classes in the first place with `class Foo(Generi
[all...]
/third_party/python/Lib/urllib/
H A Drequest.py2576 'exceptions': ['foo.bar', '*.bar.com', '127.0.0.1', '10.1', '10.0/16']

Completed in 65 milliseconds

1...<<1201120212031204120512061207120812091210>>...1237