def is_hostmask(self):
        int_val = self._value + 1
        return (int_val & (int_val - 1) == 0)
Updates a collection in-place.
dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/__init__.py/IPAddress.is_hostmask--crossover with--dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/resources.py/Resource.patch_list