After this change, the filtered stack trace is attached to the main exception, and the unfiltered stack trace becomes a __cause__ exception.
PiperOrigin-RevId: 371509766
[XLA:Python] Add support for converting a fast-traceback into a Python exception traceback.
Add a helper for building traceback objects on Python 3.6. On Python 3.7+ this can be done by calling the traceback type, and we can in essence backport that implementation to Python 3.6.
Consolidate the py_traceback and traceback modules.
PiperOrigin-RevId: 371193212
1. Build on Windows
2. Fix OverflowError
When calling `key = random.PRNGKey(0)` OverflowError: Python int too
large to convert to C long for casting value 4294967295 (0xFFFFFFFF)
from python int to int32.
3. fix file path in regex of errors_test
4. handle ValueError of os.path.commonpath