parameters: (self, key, start=None, end=None)
return_statement: return self.execute_command('BITCOUNT', *params)
docstring: Returns the count of set bits in the value of ``key``.  Optional
          ``start`` and ``end`` paramaters indicate which bytes to consider
docstring_summary: Returns the count of set bits in the value of ``key``.  Optional
          ``start`` and ``end`` paramaters indicate which bytes to consider
docstring_tokens: Returns the count of set bits in the value of key . Optional start and end paramaters indicate which bytes to consider
function: def bitcount(self, key, start=None, end=None):
          """
          Returns the count of set bits in the value of ``key``.  Optional
          ``start`` and ``end`` paramaters indicate which bytes to consider
          """
          params = [key]
          if start is not None and end is not None:
              params.append(start)
              params.append(end)
          elif (start is not None and end is None) or \
                  (end is not None and start is None):
              raise RedisError("Both start and end must be specified")
          return self.execute_command('BITCOUNT', *params)
function_tokens: def bitcount ( self , key , start = None , end = None ) : params = [ key ] if start is not None and end is not None : params . append ( start ) params . append ( end ) elif ( start is not None and end is None ) or ( end is not None and start is None ) : raise RedisError ( "Both start and end must be specified" ) return self . execute_command ( 'BITCOUNT' , * params )