May 13, 2021
9:15 a.m.
Following a recent change, we now have in traceback.py: _sentinel = object() def print_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, file=None, chain=True): So now: >>> import traceback >>> help(traceback.print_exception) Help on function print_exception in module traceback: print_exception(exc, /, value=<object object at 0x000002825DF09650>, tb=<object object at 0x000002825DF09650>, limit=None, file=None, chain=True) Is there a convention on how such default sentinel values should appear in docs? https://bugs.python.org/issue43024
1795
Age (days ago)
1814
Last active (days ago)
66 comments
22 participants
participants (22)
-
Antoine Pitrou -
Barry Warsaw -
Chris Angelico -
Christopher Barker -
David Mertz -
Eric V. Smith -
Ethan Furman -
Irit Katriel -
Joao S. O. Bueno -
Larry Hastings -
Luciano Ramalho -
micro codery -
MRAB -
Nick Coghlan -
Pascal Chambon -
Paul Moore -
Petr Viktorin -
Ronald Oussoren -
Sebastian Berg -
Steve Dower -
Tal Einat -
Victor Stinner