Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.
1 file changed