def intcomma(value):
    orig = str(value)
    new = re.sub("^(-?\d+)(\d{3})", '\g<1>,\g<2>', str(value))
    if orig == new:
        return new
    else:
        return intcomma(new)
Returns the value for the current id as the given type.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/contrib/humanize/templatetags/humanize.py/intcomma--crossover with--dataset/ETHPy150Open dokipen/whoosh/src/whoosh/postings.py/PostingReader.value_as