This document describes the current stable version of Celery (5.5). For development docs, go here.
celery.utils.saferepr¶
Streaming, truncating, non-recursive version of repr().
Differences from regular repr():
Sets are represented the Python 3 way:
{1, 2}vsset([1, 2]).Unicode strings does not have the
u'prefix, even on Python 2.Empty set formatted as
set()(Python 3), notset([])(Python 2).Longs don’t have the
Lsuffix.
Very slow with no limits, super quick with limits.