Lines Matching full:foo
32 def __init__(self, foo): argument
33 self.foo = foo
35 return C(self.foo)
39 self.assertEqual(y.foo, x.foo)
43 def __new__(cls, foo): argument
45 obj.foo = foo
48 return (C, (obj.foo,))
125 x = {"foo": 1, "bar": 2}
162 def __init__(self, foo): argument
163 self.foo = foo
165 return self.foo == other.foo
171 def __init__(self, foo): argument
172 self.foo = foo
174 return C(self.foo)
176 return self.foo == other.foo
182 def __init__(self, foo): argument
183 self.foo = foo
185 return (self.foo,)
187 return self.foo == other.foo
193 def __new__(cls, foo): argument
195 self.foo = foo
198 return self.foo,
200 return self.foo == other.foo
206 self.assertEqual(y.foo, x.foo)
210 def __new__(cls, *, foo): argument
212 self.foo = foo
215 return (), {'foo': self.foo}
217 return self.foo == other.foo
218 x = C(foo=42)
223 self.assertEqual(y.foo, x.foo)
227 def __init__(self, foo): argument
228 self.foo = foo
230 return {"foo": self.foo}
232 return self.foo == other.foo
238 def __init__(self, foo): argument
239 self.foo = foo
241 self.foo = state["foo"]
243 return self.foo == other.foo
249 def __init__(self, foo): argument
250 self.foo = foo
252 return self.foo
254 self.foo = state
256 return self.foo == other.foo
294 def __init__(self, foo): argument
295 self.foo = foo
297 return C(self.foo)
301 self.assertEqual(y.foo, x.foo)
305 def __new__(cls, foo): argument
307 obj.foo = foo
310 return (C, (obj.foo,))
409 x = {"foo": [1, 2], "bar": 3}
413 self.assertIsNot(x["foo"], y["foo"])
417 x['foo'] = x
424 self.assertIs(y['foo'], y)
450 def __init__(self, foo): argument
451 self.foo = foo
453 return self.foo == other.foo
457 self.assertIsNot(y.foo, x.foo)
461 def __init__(self, foo): argument
462 self.foo = foo
464 return C(copy.deepcopy(self.foo, memo))
466 return self.foo == other.foo
471 self.assertIsNot(y.foo, x.foo)
475 def __init__(self, foo): argument
476 self.foo = foo
478 return (self.foo,)
480 return self.foo == other.foo
485 self.assertIsNot(y.foo, x.foo)
489 def __new__(cls, foo): argument
491 self.foo = foo
494 return self.foo,
496 return self.foo == other.foo
502 self.assertEqual(y.foo, x.foo)
503 self.assertIsNot(y.foo, x.foo)
507 def __new__(cls, *, foo): argument
509 self.foo = foo
512 return (), {'foo': self.foo}
514 return self.foo == other.foo
515 x = C(foo=[42])
520 self.assertEqual(y.foo, x.foo)
521 self.assertIsNot(y.foo, x.foo)
525 def __init__(self, foo): argument
526 self.foo = foo
528 return {"foo": self.foo}
530 return self.foo == other.foo
535 self.assertIsNot(y.foo, x.foo)
539 def __init__(self, foo): argument
540 self.foo = foo
542 self.foo = state["foo"]
544 return self.foo == other.foo
549 self.assertIsNot(y.foo, x.foo)
553 def __init__(self, foo): argument
554 self.foo = foo
556 return self.foo
558 self.foo = state
560 return self.foo == other.foo
565 self.assertIsNot(y.foo, x.foo)
571 self.assertIsNot(y.foo, x.foo)
577 x.foo = x
580 self.assertIs(y.foo, y)
610 x.foo = 42
623 x.foo = [42]
628 self.assertIsNot(y.foo, x.foo)
639 x.foo = [42]
644 self.assertIsNot(y.foo, x.foo)
650 x.foo = x
653 self.assertIs(y.foo, y)
681 x = C([("foo", [1, 2]), ("bar", 3)])
685 self.assertIs(x["foo"], y["foo"])
689 self.assertIsNot(x["foo"], y["foo"])
693 __slots__ = ["foo"]
695 x.foo = [42]
697 self.assertIs(x.foo, y.foo)
701 __slots__ = ["foo"]
703 x.foo = [42]
705 self.assertEqual(x.foo, y.foo)
706 self.assertIsNot(x.foo, y.foo)
719 x = C(d={'foo':0})
732 x.foo = [4, 5]
735 self.assertEqual(x.foo, y.foo)
737 self.assertIs(x.foo, y.foo)
743 x.foo = [4, 5]
746 self.assertEqual(x.foo, y.foo)
748 self.assertIsNot(x.foo, y.foo)
776 def foo(x, y): return x+y function
777 self.assertEqual(copy.copy(foo), foo)
783 def foo(x, y): return x+y function
784 self.assertEqual(copy.deepcopy(foo), foo)
874 class Foo(object): class
877 f = Foo()