def __getitem__(self, index):
        "return bit value for that index (n-0)"
        return (self._d >> index) & 1
return bit value for that index (n-0)
recipes/Python/578922_bitfield_rev2/recipe-578922.py