Message195980
"This patch introduces a bit ugly traceback. Shouldn't there be “raise from None” or “raise from previous_exc” instead of simple raise?"
Oh, I see.
>>> os.environb[b'10']
Traceback (most recent call last):
File "/home/vstinner/prog/python/default/Lib/os.py", line 648, in __getitem__
value = self._data[self.encodekey(key)]
KeyError: b'10'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vstinner/prog/python/default/Lib/os.py", line 651, in __getitem__
raise KeyError(key)
KeyError: b'10'
Attached patch adds "from None". |
|
Date |
User |
Action |
Args |
2013-08-23 15:12:36 | vstinner | set | recipients:
+ vstinner, r.david.murray, python-dev, Drekin, Robert.Tasarz |
2013-08-23 15:12:35 | vstinner | set | messageid: <1377270755.93.0.20764058069.issue17702@psf.upfronthosting.co.za> |
2013-08-23 15:12:35 | vstinner | link | issue17702 messages |
2013-08-23 15:12:35 | vstinner | create | |
|