Lines Matching refs:set

575                         get, set = hits.get(key, (None, None))
577 hits[key] = get, set
580 get, set = hits.get(key, (None, None))
581 set = val
582 hits[key] = get, set
583 for key, (get, set) in hits.items():
584 dict[key] = property(get, set)
1062 # We set __slots__ = () to ensure that the subclasses are
1342 self.fail("shouldn't be allowed to set a.foo")
1734 def __init__(self, get, set=None, delete=None):
1736 self.__set = set
2013 set_add = set.add
2015 expected_errmsg = "unbound method set.add() needs an argument"
2021 expected_errmsg = "descriptor 'add' for 'set' objects doesn't apply to a 'int' object"
2071 ("__bytes__", bytes, hello, set(), {}),
2072 ("__reversed__", reversed, empty_seq, set(), {}),
2073 ("__length_hint__", list, zero, set(),
2075 ("__sizeof__", sys.getsizeof, zero, set(), {}),
2076 ("__instancecheck__", do_isinstance, return_true, set(), {}),
2078 set(("__class__",)), {}),
2080 set(("__bases__",)), {}),
2081 ("__enter__", run_context, iden, set(), {"__exit__" : swallow}),
2082 ("__exit__", run_context, swallow, set(), {"__enter__" : iden}),
2083 ("__complex__", complex, complex_num, set(), {}),
2084 ("__format__", format, format_impl, set(), {}),
2085 ("__floor__", math.floor, zero, set(), {}),
2086 ("__trunc__", math.trunc, zero, set(), {}),
2087 ("__ceil__", math.ceil, zero, set(), {}),
2088 ("__dir__", dir, empty_seq, set(), {}),
2089 ("__round__", round, zero, set(), {}),
2309 self.fail("expected AttributeError from trying to set readonly %r "
4023 self.fail("shouldn't be able to set .__bases__ to ()")
4139 # with an exception set (which was possible at one point).
4822 self.assertIn("cannot set '__doc__' attribute of immutable type 'list'", str(cm.exception))
4988 # set PyTypeObject.tp_subclasses to NULL. remove_subclass() is called
5055 # Testing type of __dict__ when metaclass set...
5105 # __bases__ is set during the lookup for example.
5124 # mykey2 is read from Base2 because MyKey.__eq__ has set __bases__