diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-06-17 16:14:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 16:14:30 (GMT) |
commit | f73377d57c5272390de63cccc3c292c44689310a (patch) | |
tree | 608ad7b3d6e108ff3e356e1c275a9f7d83ad9b3e /Lib/traceback.py | |
parent | ba2f32a983a08c4f64c23c187432e38908639c12 (diff) | |
download | cpython-f73377d57c5272390de63cccc3c292c44689310a.zip cpython-f73377d57c5272390de63cccc3c292c44689310a.tar.gz cpython-f73377d57c5272390de63cccc3c292c44689310a.tar.bz2 |
bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331)
…inel defaults
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index e19745d..b4c7641 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -84,8 +84,11 @@ _context_message = ( "another exception occurred:\n\n") -_sentinel = object() +class _Sentinel: + def __repr__(self): + return "<implicit>" +_sentinel = _Sentinel() def _parse_value_tb(exc, value, tb): if (value is _sentinel) != (tb is _sentinel): |