Lines Matching full:foo
27 def __init__(self, foo): argument
28 self.foo = foo
30 return C(self.foo)
34 self.assertEqual(y.foo, x.foo)
38 def __new__(cls, foo): argument
40 obj.foo = foo
43 return (C, (obj.foo,))
111 x = {"foo": 1, "bar": 2}
148 def __init__(self, foo): argument
149 self.foo = foo
151 return cmp(self.foo, other.foo)
157 def __init__(self, foo): argument
158 self.foo = foo
160 return C(self.foo)
162 return cmp(self.foo, other.foo)
168 def __init__(self, foo): argument
169 self.foo = foo
171 return (self.foo,)
173 return cmp(self.foo, other.foo)
179 def __init__(self, foo): argument
180 self.foo = foo
182 return {"foo": self.foo}
184 return cmp(self.foo, other.foo)
190 def __init__(self, foo): argument
191 self.foo = foo
193 self.foo = state["foo"]
195 return cmp(self.foo, other.foo)
201 def __init__(self, foo): argument
202 self.foo = foo
204 return self.foo
206 self.foo = state
208 return cmp(self.foo, other.foo)
246 def __init__(self, foo): argument
247 self.foo = foo
249 return C(self.foo)
253 self.assertEqual(y.foo, x.foo)
257 def __new__(cls, foo): argument
259 obj.foo = foo
262 return (C, (obj.foo,))
343 x = {"foo": [1, 2], "bar": 3}
347 self.assertTrue(x["foo"] is not y["foo"])
351 x['foo'] = x
355 self.assertTrue(y['foo'] is y)
366 def __init__(self, foo): argument
367 self.foo = foo
369 return cmp(self.foo, other.foo)
373 self.assertTrue(y.foo is not x.foo)
377 def __init__(self, foo): argument
378 self.foo = foo
380 return C(copy.deepcopy(self.foo, memo))
382 return cmp(self.foo, other.foo)
387 self.assertTrue(y.foo is not x.foo)
391 def __init__(self, foo): argument
392 self.foo = foo
394 return (self.foo,)
396 return cmp(self.foo, other.foo)
401 self.assertTrue(y.foo is not x.foo)
405 def __init__(self, foo): argument
406 self.foo = foo
408 return {"foo": self.foo}
410 return cmp(self.foo, other.foo)
415 self.assertTrue(y.foo is not x.foo)
419 def __init__(self, foo): argument
420 self.foo = foo
422 self.foo = state["foo"]
424 return cmp(self.foo, other.foo)
429 self.assertTrue(y.foo is not x.foo)
433 def __init__(self, foo): argument
434 self.foo = foo
436 return self.foo
438 self.foo = state
440 return cmp(self.foo, other.foo)
445 self.assertIsNot(y.foo, x.foo)
451 self.assertTrue(y.foo is not x.foo)
457 x.foo = x
460 self.assertTrue(y.foo is y)
479 x.foo = 42
493 x.foo = [42]
498 self.assertTrue(y.foo is not x.foo)
510 x.foo = [42]
515 self.assertTrue(y.foo is not x.foo)
521 x.foo = x
524 self.assertTrue(y.foo is y)
554 x = C([("foo", [1, 2]), ("bar", 3)])
558 self.assertTrue(x["foo"] is y["foo"])
562 self.assertTrue(x["foo"] is not y["foo"])
566 __slots__ = ["foo"]
568 x.foo = [42]
570 self.assertTrue(x.foo is y.foo)
574 __slots__ = ["foo"]
576 x.foo = [42]
578 self.assertEqual(x.foo, y.foo)
579 self.assertTrue(x.foo is not y.foo)
592 x = C(d={'foo':0})
605 x.foo = [4, 5]
608 self.assertEqual(x.foo, y.foo)
610 self.assertTrue(x.foo is y.foo)
616 x.foo = [4, 5]
619 self.assertEqual(x.foo, y.foo)
621 self.assertTrue(x.foo is not y.foo)
649 def foo(x, y): return x+y function
650 self.assertEqual(copy.copy(foo), foo)
656 def foo(x, y): return x+y function
657 self.assertEqual(copy.deepcopy(foo), foo)
747 class Foo(object): class
750 f = Foo()