]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.
authorKa-Ping Yee <ping@zesty.ca>
Fri, 13 Apr 2001 13:57:31 +0000 (13:57 +0000)
committerKa-Ping Yee <ping@zesty.ca>
Fri, 13 Apr 2001 13:57:31 +0000 (13:57 +0000)
commit9bc576b7f6fa4bbe726255666ac7e5728f1d678b
tree32855524dc155f7daeaab8279b5831e69f867294
parenteca15c1fb19c94d3a424156d072266c8d327663d
Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.
Lib/pydoc.py