* wrapper * builtins * context mgr * direct place * ret all var * call fix * fix ndarray serde * jobs * try-with gil management * cleanup * exec tests passing * list tests * transforms test passing * all pass * headers * dict fixes+test * python path * bool isinstance * job tests * nits * transform fix+test * transform tests * leak fixes * more mem leak fixes * more fixes * nits for adam * PythonJob lombok builder * checked exceptions * more nits * small leak fix * more nits * pythonexceptions * fix jvm crash when bad python code * Exception->PythonException * Add support for boolean types in arrow records and ability to cast from float, double to int for TypeConversion (#178) * nits for alex * update tests * fix test * all pass * refacc * rem old code * dtypes * bytes working+exception pass through+cleanup (#209) * more bytes tests * header * rem dummy test * rem bad import * alex nits + refacc * Small error fixes (wrong type in msg) + minor formatting Signed-off-by: AlexDBlack <blacka101@gmail.com> * use actual python type names (dictionary->dict, boolean->bool) Co-authored-by: Shams Ul Azeem <shamsazeem20@gmail.com> Co-authored-by: Alex Black <blacka101@gmail.com>
21 lines
370 B
Python
21 lines
370 B
Python
import sys
|
|
import traceback
|
|
import json
|
|
import inspect
|
|
|
|
__python_exception__ = ""
|
|
try:
|
|
pass
|
|
sys.stdout.flush()
|
|
sys.stderr.flush()
|
|
except Exception as ex:
|
|
__python_exception__ = ex
|
|
try:
|
|
exc_info = sys.exc_info()
|
|
finally:
|
|
print(ex)
|
|
traceback.print_exception(*exc_info)
|
|
sys.stdout.flush()
|
|
sys.stderr.flush()
|
|
|