├── .github └── workflows │ ├── dev-test.yml │ └── master-test.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── README.md ├── README.tmpl ├── check_coverage_reports.py ├── color_schemes.png ├── examples ├── change_global_printer.py ├── change_global_printer_in_jupiter.py ├── colab.ipynb ├── external_script.sh ├── flask.py ├── for_readme_image.py ├── format_customized.py ├── interactive_print_last_exception.py ├── log_for_code_block.py ├── log_for_function.py ├── print_cur_tb.py ├── print_for_code_block.py ├── print_for_function.py ├── secret_data.py ├── simple.py ├── simple_jupyter.py └── work_with_traceback_lines.py ├── gen_readme.py ├── header.png ├── setup.py ├── tests ├── dummies.py ├── dumps │ ├── test_core.after_0_.txt │ ├── test_core.after_100_.txt │ ├── test_core.after_2_.txt │ ├── test_core.before_0_.txt │ ├── test_core.before_100_.txt │ ├── test_core.before_2_.txt │ ├── test_core.before_after.txt │ ├── test_core.color_scheme_common.txt │ ├── test_core.color_scheme_nice.txt │ ├── test_core.color_scheme_synthwave.txt │ ├── test_core.cur_tb_0_.txt │ ├── test_core.cur_tb_1_.txt │ ├── test_core.default.txt │ ├── test_core.ellipsis.txt │ ├── test_core.ellipsis_rel_pos_0.0_.txt │ ├── test_core.ellipsis_rel_pos_0.5_.txt │ ├── test_core.ellipsis_rel_pos_0.7_.txt │ ├── test_core.ellipsis_rel_pos_1.0_.txt │ ├── test_core.ellipsis_rel_pos_1.5_.txt │ ├── test_core.ellipsis_rel_pos__0.5_.txt │ ├── test_core.explicit_e.txt │ ├── test_core.files_._dummies.__._dummies.__.txt │ ├── test_core.files_._dummies.__None_.txt │ ├── test_core.files_._dummies.__skip_files_except2_.txt │ ├── test_core.files_None_._dummies.__.txt │ ├── test_core.files_None_None_.txt │ ├── test_core.files_None_skip_files_except2_.txt │ ├── test_core.files_brief_files_except2_._dummies.__.txt │ ├── test_core.files_brief_files_except2_None_.txt │ ├── test_core.files_brief_files_except2_skip_files_except2_.txt │ ├── test_core.max_exc_str_len.txt │ ├── test_core.max_value_str_len.txt │ ├── test_core.num_skipped_frames_0_.txt │ ├── test_core.num_skipped_frames_1_.txt │ ├── test_core.num_skipped_frames_2_.txt │ ├── test_core.objects_details_0_obj0_.txt │ ├── test_core.objects_details_0_obj1_.txt │ ├── test_core.objects_details_0_obj2_.txt │ ├── test_core.objects_details_0_obj3_.txt │ ├── test_core.objects_details_10_obj0_.txt │ ├── test_core.objects_details_10_obj1_.txt │ ├── test_core.objects_details_10_obj2_.txt │ ├── test_core.objects_details_10_obj3_.txt │ ├── test_core.objects_details_1_obj0_.txt │ ├── test_core.objects_details_1_obj1_.txt │ ├── test_core.objects_details_1_obj2_.txt │ ├── test_core.objects_details_1_obj3_.txt │ ├── test_core.standard_prints_for_var_printers_0_show_.txt │ ├── test_core.standard_prints_for_var_printers_1_hide_.txt │ ├── test_core.standard_prints_for_var_printers_2_skip_.txt │ ├── test_core.standard_prints_for_var_printers_3_str_.txt │ ├── test_core.standard_prints_for_var_printers_4_repr_.txt │ ├── test_core.standard_prints_for_var_printers_5_None_.txt │ ├── test_core.var_printers_0_None_0_None_.txt │ ├── test_core.var_printers_0_None_1_fs11_.txt │ ├── test_core.var_printers_0_None_2_fs12_.txt │ ├── test_core.var_printers_0_None_3_fs13_.txt │ ├── test_core.var_printers_1_fs21_0_None_.txt │ ├── test_core.var_printers_1_fs21_1_fs11_.txt │ ├── test_core.var_printers_1_fs21_2_fs12_.txt │ ├── test_core.var_printers_1_fs21_3_fs13_.txt │ ├── test_core.var_printers_2_fs22_0_None_.txt │ ├── test_core.var_printers_2_fs22_1_fs11_.txt │ ├── test_core.var_printers_2_fs22_2_fs12_.txt │ ├── test_core.var_printers_2_fs22_3_fs13_.txt │ ├── test_core.var_printers_3_fs23_0_None_.txt │ ├── test_core.var_printers_3_fs23_1_fs11_.txt │ ├── test_core.var_printers_3_fs23_2_fs12_.txt │ ├── test_core.var_printers_3_fs23_3_fs13_.txt │ ├── test_default_global_hooks.patterns_to_hide.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj000_int_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj001_float_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj002_str_4_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj003_bool_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj004_bool_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj005_type_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj006_type_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj007_list_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj008_list_1_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj009_list_0_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj010_tuple_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj011_tuple_1_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj012_tuple_0_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj013_set_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj014_set_1_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj015_set_0_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj016_dict_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj017_dict_1_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj018_dict_0_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj019_HasStr_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj020_HasNoStr_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj021_B_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj022_A_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj023_A_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj024_D_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj025_D_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj026_list_5_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj027_SuperList_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj028_SuperDict_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj029_Decimal_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj030_defaultdict_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj031_deque_3_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj032_DWithRepr_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj033_DWithStr_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj034_TextIOWrapper_na_.txt │ ├── test_fast_capped_str_casts.left_equals_right_obj035_PosixPath_na_.txt │ ├── test_fast_capped_str_casts.obj_depth_0_.txt │ ├── test_fast_capped_str_casts.obj_depth_1_.txt │ ├── test_fast_capped_str_casts.obj_depth_2_.txt │ ├── test_fast_capped_str_casts.obj_depth_3_.txt │ ├── test_fast_capped_str_casts.obj_depth__1_.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.right.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.left.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.mid.txt │ ├── test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.right.txt │ ├── test_global_hooks.activate_by_import.common.txt │ ├── test_global_hooks.activate_by_import.python.txt │ ├── test_global_hooks.activate_by_import.short_direct.txt │ ├── test_global_hooks.activate_by_import.short_from.txt │ ├── test_global_hooks.activate_in_ipython_by_import.common.txt │ ├── test_global_hooks.activate_in_ipython_by_import.ipython.txt │ ├── test_global_hooks.activate_in_ipython_by_import.short_direct.txt │ ├── test_global_hooks.activate_in_ipython_by_import.short_from.txt │ ├── test_global_hooks.activate_in_ipython_by_import_error.txt │ ├── test_global_hooks.basics_in_jupyter.set_fmt_attr.txt │ ├── test_global_hooks.basics_in_jupyter.simple.txt │ ├── test_main.argparse_code.txt │ ├── test_main.argparse_code_script_help.txt │ ├── test_main.module.txt │ ├── test_main.simple_code_color_scheme.txt │ ├── test_main.simple_code_excess_script_args.txt │ ├── test_main.simple_code_excess_tool_args.txt │ ├── test_main.simple_code_incomplete_tool_args.txt │ ├── test_main.simple_code_no_args.txt │ ├── test_main.simple_code_tool_args.txt │ ├── test_main.simple_code_tool_args_no_globals.txt │ ├── test_main.simple_code_tool_help.txt │ ├── test_main.status0_code.txt │ ├── test_print.logger_as_file.txt │ ├── test_print.logger_as_file_lines.txt │ ├── test_print.print_cur_tb.txt │ ├── test_print.printing_exc.txt │ ├── test_print.printing_exc_skip_cur_frame.txt │ ├── test_print.printing_exc_stderr.txt │ ├── test_print.printing_exc_to_tty.txt │ ├── test_print.prints_exc.txt │ ├── test_print.prints_exc_noncall.txt │ ├── test_tb_alias.create_and_rm_tb_alias.run_1_without_tb.txt │ ├── test_tb_alias.create_and_rm_tb_alias.run_2_without_tb.txt │ └── test_tb_alias.create_and_rm_tb_alias.run_with_tb.txt ├── test_core.py ├── test_default_global_hooks.py ├── test_fast_capped_str_casts.py ├── test_global_hooks.py ├── test_main.py ├── test_module_alias.py ├── test_print.py ├── test_tb_alias.py └── test_utils.py └── traceback_with_variables ├── __init__.py ├── a.py ├── activate_by_import.py ├── activate_in_ipython_by_import.py ├── activate_in_python_by_import.py ├── color.py ├── core.py ├── default_global_hooks.py ├── fast_capped_str_casts.py ├── global_hooks.py ├── main.py ├── module_alias.py ├── print.py └── tb_alias.py /.github/workflows/dev-test.yml: -------------------------------------------------------------------------------- 1 | name: Dev-Tests 2 | on: 3 | pull_request: 4 | branches: 5 | - '*' 6 | push: 7 | branches: 8 | - '*' 9 | jobs: 10 | tests: 11 | runs-on: ${{ matrix.arrays.os }} 12 | strategy: 13 | matrix: 14 | arrays: [ 15 | # {os: ubuntu-22.04, python-version: '3.7.17'}, # multiline code is depicted differently 16 | {os: ubuntu-22.04, python-version: '3.8'}, 17 | {os: ubuntu-22.04, python-version: '3.9'}, 18 | {os: ubuntu-22.04, python-version: '3.10'}, 19 | {os: ubuntu-22.04, python-version: '3.11'}, 20 | {os: ubuntu-22.04, python-version: '3.12'}, 21 | {os: ubuntu-22.04, python-version: '3.13'}, 22 | # {os: ubuntu-22.04, python-version: '3.14.0-alpha.5'}, # too early 23 | # {os: windows-latest, python-version: '3.7.9'}, # multiline code is depicted differently 24 | {os: windows-latest, python-version: '3.8'}, 25 | {os: windows-latest, python-version: '3.9'}, 26 | {os: windows-latest, python-version: '3.10'}, 27 | {os: windows-latest, python-version: '3.11'}, 28 | {os: windows-latest, python-version: '3.12'}, 29 | {os: windows-latest, python-version: '3.13'} 30 | # {os: windows-latest, python-version: '3.14.0-alpha.5'} # too early 31 | ] 32 | steps: 33 | - name: Set up Python ${{ matrix.arrays.python-version }} 34 | uses: actions/setup-python@v4 35 | with: 36 | python-version: ${{ matrix.arrays.python-version }} 37 | 38 | - name: Install dependencies 39 | run: | 40 | python -m pip install --upgrade pip 41 | pip install flake8 pytest-cov ipython notebook==6.2.0 42 | 43 | - name: Checkout code 44 | uses: actions/checkout@v2 45 | 46 | - name: Lint with flake8 47 | run: | 48 | flake8 traceback_with_variables --count --show-source --statistics --max-line-length=127 49 | 50 | - name: Test with pytest 51 | env: 52 | PYTHONHASHSEED: 1 53 | run: | 54 | python -Xfrozen_modules=off -m pytest -vv --cov=traceback_with_variables --cov-report=json 55 | 56 | - name: Upload coverage report 57 | uses: actions/upload-artifact@v4 58 | with: 59 | name: coverage-${{ matrix.arrays.os }}-${{ matrix.arrays.python-version }} 60 | path: coverage.json 61 | 62 | coverage: 63 | needs: tests 64 | runs-on: ubuntu-latest 65 | steps: 66 | - uses: actions/checkout@v2 67 | 68 | - name: Download all coverage reports 69 | uses: actions/download-artifact@v4 70 | with: 71 | path: coverage-reports 72 | 73 | - name: Check coverage 74 | run: python3 check_coverage_reports.py --inp-dir coverage-reports --max-allowed-num-uncovered-lines 0 75 | -------------------------------------------------------------------------------- /.github/workflows/master-test.yml: -------------------------------------------------------------------------------- 1 | name: tests 2 | on: 3 | pull_request: 4 | branches: 5 | - 'master' 6 | push: 7 | branches: 8 | - 'master' 9 | jobs: 10 | tests: 11 | runs-on: ${{ matrix.arrays.os }} 12 | strategy: 13 | matrix: 14 | arrays: [ 15 | # {os: ubuntu-22.04, python-version: '3.7.17'}, # multiline code is depicted differently 16 | {os: ubuntu-22.04, python-version: '3.8'}, 17 | {os: ubuntu-22.04, python-version: '3.9'}, 18 | {os: ubuntu-22.04, python-version: '3.10'}, 19 | {os: ubuntu-22.04, python-version: '3.11'}, 20 | {os: ubuntu-22.04, python-version: '3.12'}, 21 | {os: ubuntu-22.04, python-version: '3.13'}, 22 | # {os: ubuntu-22.04, python-version: '3.14.0-alpha.5'}, # too early 23 | # {os: windows-latest, python-version: '3.7.9'}, # multiline code is depicted differently 24 | {os: windows-latest, python-version: '3.8'}, 25 | {os: windows-latest, python-version: '3.9'}, 26 | {os: windows-latest, python-version: '3.10'}, 27 | {os: windows-latest, python-version: '3.11'}, 28 | {os: windows-latest, python-version: '3.12'}, 29 | {os: windows-latest, python-version: '3.13'} 30 | # {os: windows-latest, python-version: '3.14.0-alpha.5'} # too early 31 | ] 32 | steps: 33 | - name: Set up Python ${{ matrix.arrays.python-version }} 34 | uses: actions/setup-python@v4 35 | with: 36 | python-version: ${{ matrix.arrays.python-version }} 37 | 38 | - name: Install dependencies 39 | run: | 40 | python -m pip install --upgrade pip 41 | pip install flake8 pytest-cov ipython notebook==6.2.0 42 | 43 | - name: Checkout code 44 | uses: actions/checkout@v2 45 | 46 | - name: Lint with flake8 47 | run: | 48 | flake8 traceback_with_variables --count --show-source --statistics --max-line-length=127 49 | 50 | - name: Test with pytest 51 | env: 52 | PYTHONHASHSEED: 1 53 | run: | 54 | python -Xfrozen_modules=off -m pytest -vv --cov=traceback_with_variables --cov-report=json 55 | 56 | - name: Upload coverage report 57 | uses: actions/upload-artifact@v4 58 | with: 59 | name: coverage-${{ matrix.arrays.os }}-${{ matrix.arrays.python-version }} 60 | path: coverage.json 61 | 62 | coverage: 63 | needs: tests 64 | runs-on: ubuntu-latest 65 | steps: 66 | - uses: actions/checkout@v2 67 | 68 | - name: Download all coverage reports 69 | uses: actions/download-artifact@v4 70 | with: 71 | path: coverage-reports 72 | 73 | - name: Check coverage 74 | run: python3 check_coverage_reports.py --inp-dir coverage-reports --max-allowed-num-uncovered-lines 0 75 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 2.2.0 4 | - Fully compatible with 2.1.1 5 | - (BIG) Huge collections are printed faster, time depends only on `max_value_str_len` 6 | - Add `hide`, `skip`, `show` as standard prints 7 | - Variables like `password` and `token` are now hidden by default 8 | - Added warning about secrets to readme, an example code to deal with it and a short essay 9 | - Tested in python 3.13 and python 3.7 10 | - More test cases and data types 11 | - All objects without custom `__str__` are printed with all attrs 12 | - Standard backup tracebacks have this library stacks collapsed 13 | 14 | ## 2.1.1 15 | - Add "tb" alias creation for lines like `import tb.a` 16 | 17 | ## 2.1.0 18 | - Fully compatible with 2.0.4 19 | - Add short names for frequently used things like `a` and `fmt` 20 | - Add unified `activate_by_import` to be used both for Jupyter and regular Python 21 | - Add relative ellipsis position for strings like `x=['some', ...long', 'list']` 22 | - Add detailed object printout, useful for non-dataclass classes 23 | - Add protection against acidental mistyping in format attributes 24 | - Fixed some bugs, e.g. 25 | - cli not working in Python 3.12+ 26 | - `default_format` being sometimes ignored 27 | 28 | ## 2.0.4 29 | - ...much, to be filled... 30 | 31 | ## 2.0.3 32 | - Fixed tests in Windows/Mac 33 | - Removed `sys` from globals in the "main" mode 34 | 35 | ## 2.0.2 36 | - Fixed globals when calling extrnally, i.e. in the "main" mode 37 | 38 | ## 2.0.0 39 | - Some renames 40 | - Add `Format` and pack all style arguments inside it 41 | - Add `before` and `after` instead of `num_context_lines` 42 | - Add `skip-files-except` and `brief-files-except` 43 | - Add warning on sensitive data 44 | - Add colab badge 45 | - Add a single `customized` example 46 | - Add `custom_var_printers` 47 | - Add past exceptions discovery 48 | - Add current tb printing 49 | - Rm outer try block in `core` 50 | - Add `format_*` functions to `core` 51 | - Rename `*_tb` functions to `*_exc` 52 | - Add `*_cur_tb*` methods 53 | 54 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | Welcome to contribute! The general todo list is this: 4 | 5 | * discuss the idea in the chat 6 | * get the informal approve 7 | * go to Testing 8 | 9 | ## Color Schemes 10 | 11 | If you have a nice color scheme, pls proceed to contributing it, some details on how to do it are in FAQ. 12 | You can also ask in the chat. 13 | 14 | ## The rest of the code 15 | 16 | This package was written because other tools' code looked overly complex or hard to read or error-prone to use :) 17 | Therefore there are some codestyle guidelines applied: 18 | * code transparent for linter 19 | * type annotations everywhere 20 | * no `**kwargs`, `*args`, dicts-instead-of-objects 21 | * no classes other than simple dataclasses with create-like methods 22 | * naming that requires to remember as few things as possible 23 | * no overrides with `if arg is None` logic inside 24 | 25 | ## Testing 26 | 27 | * add new test cases using `assert_smart_equals_ref` 28 | * create new dump files and check coverage by running `PYTEST_UPDATE_REFS=1 python3 -m pytest -s --cov=./traceback_with_variables --cov-report=xml` 29 | * create a pull request to `next_version` branch 30 | 31 | ## TODO list 32 | 33 | * add `...skipped N files...` lines 34 | * fix colab example 35 | * fix tests for python 3.5-3.7 36 | * add comparison to other tools 37 | * add chain args 38 | * move to pytest-regtest in tests 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Andrey Lyashko 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | -------------------------------------------------------------------------------- /check_coverage_reports.py: -------------------------------------------------------------------------------- 1 | import argparse 2 | import json 3 | import sys 4 | from collections import defaultdict 5 | from pathlib import Path 6 | from typing import List 7 | 8 | 9 | def check_coverage_reports(inp_dir: Path, max_allowed_num_uncovered_lines: int) -> None: 10 | file_to_line_to_was_hit: Dict[str, Dict[int, bool]] = defaultdict(dict) 11 | 12 | for report_path in inp_dir.rglob('*.json'): 13 | with report_path.open('r') as inp: 14 | for file_, data in json.load(inp)['files'].items(): 15 | line_to_was_hit = file_to_line_to_was_hit[file_.replace('\\', '/')] 16 | for line in data['executed_lines']: 17 | line_to_was_hit[line] = True 18 | for line in data['missing_lines']: 19 | line_to_was_hit.setdefault(line, False) 20 | 21 | num_uncovered_lines = 0 22 | for file_, line_to_was_hit in file_to_line_to_was_hit.items(): 23 | for line, was_hit in line_to_was_hit.items(): 24 | if not was_hit: 25 | sys.stderr.write(f'miss at {file_}:{line}\n') 26 | num_uncovered_lines += 1 27 | 28 | if num_uncovered_lines > max_allowed_num_uncovered_lines: 29 | raise ValueError('check failed') 30 | 31 | 32 | def parse_args(): 33 | p = argparse.ArgumentParser() 34 | p.add_argument('--inp-dir', required=True, type=Path) 35 | p.add_argument('--max-allowed-num-uncovered-lines', required=True, type=int) 36 | 37 | return p.parse_args() 38 | 39 | 40 | def main(): 41 | args = parse_args() 42 | 43 | check_coverage_reports( 44 | inp_dir=args.inp_dir, 45 | max_allowed_num_uncovered_lines=args.max_allowed_num_uncovered_lines 46 | ) 47 | 48 | 49 | if __name__ == '__main__': 50 | main() 51 | 52 | -------------------------------------------------------------------------------- /color_schemes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy-landy/traceback_with_variables/86c660d5c7583426f36852093e50584d116a16de/color_schemes.png -------------------------------------------------------------------------------- /examples/change_global_printer.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import global_print_exc 2 | 3 | 4 | global_print_exc() 5 | 6 | 7 | def main(): 8 | n = 0 9 | print(1 / n) 10 | 11 | 12 | main() 13 | -------------------------------------------------------------------------------- /examples/change_global_printer_in_jupiter.py: -------------------------------------------------------------------------------- 1 | !pip install traceback_with_variables 2 | from traceback_with_variables import global_print_exc_in_ipython 3 | 4 | 5 | global_print_exc_in_ipython() 6 | 7 | 8 | def main(): 9 | n = 0 10 | print(1 / n) 11 | 12 | 13 | main() 14 | -------------------------------------------------------------------------------- /examples/external_script.sh: -------------------------------------------------------------------------------- 1 | # if normally you called 2 | some_cmd ...its args... 3 | # or 4 | path/to/some_script.py ...its args... 5 | # or 6 | python3 path/to/some_script.py ...its args... 7 | # or 8 | python3 -m some_module ...its args... 9 | 10 | 11 | # then your calls become: 12 | # command known to be a script (e.g. 'pip') and it's args 13 | traceback-with-variables some_cmd ...its args... 14 | 15 | # script and it's args 16 | traceback-with-variables path/to/some_script.py ...its args... 17 | 18 | # a module (e.g. 'http.server') and it's args 19 | traceback-with-variables some_module ...its args... 20 | 21 | 22 | # help: 23 | traceback-with-variables --help 24 | 25 | 26 | # more 27 | # customizing tracebacks 28 | traceback-with-variables --max-value-str-len 100 --before 3 --after 1 path/to/some_script.py ...its args... 29 | 30 | # print less blocks 31 | traceback-with-variables --skip-files-except my_porject site --brief-files-except my_project 32 | 33 | # no globals 34 | traceback-with-variables --no-globals ... 35 | 36 | # synthwave+ 37 | traceback-with-variables --color-scheme synthwave ... 38 | traceback-with-variables --color-scheme nice ... 39 | 40 | # runnig with `python -m` 41 | python3 -m traceback_with_variables path/to/some_script.py ...its args... 42 | -------------------------------------------------------------------------------- /examples/flask.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import format_exc 2 | 3 | 4 | @app.errorhandler(Exception) 5 | def handle_exception(e): 6 | app.logger.error(format_exc(e)) 7 | 8 | return 'Server Error', 500 # for a simple prod server 9 | return format_exc(e), 500 # for a debug server 10 | -------------------------------------------------------------------------------- /examples/for_readme_image.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import printing_exc, ColorSchemes 2 | 3 | 4 | def mean(vs): 5 | return sum(vs) / sum(1 for v in vs) 6 | 7 | 8 | def get_avg_ratio(size1, size2): 9 | return mean([get_ratio(h, w) for h, w in [size1, size2]]) 10 | 11 | 12 | def get_ratio(h, w): 13 | return h / w 14 | 15 | 16 | def main(): 17 | sizes_str = '300 200 300 0' 18 | with printing_exc(reraise=False): 19 | h1, w1, h2, w2 = map(int, sizes_str.split()) 20 | 21 | return get_avg_ratio((h1, w1), (h2, w2)) 22 | 23 | 24 | main() 25 | -------------------------------------------------------------------------------- /examples/format_customized.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import Format, ColorSchemes, is_ipython_global, fmt, hide, skip 2 | 3 | 4 | # approach 1 for simples usage 5 | 6 | fmt.max_value_str_len = 10000 7 | 8 | # show all vars, no hides, no skips: 9 | 10 | fmt.custom_var_printers = [] 11 | 12 | 13 | # approach 2 for explicit format passing 14 | 15 | fmt2 = Format( 16 | before=3, 17 | after=1, 18 | max_value_str_len=10000, 19 | objects_details=0, 20 | ellipsis_rel_pos=0.7 21 | max_exc_str_len=1000, 22 | ellipsis_='...', 23 | color_scheme=ColorSchemes.synthwave, 24 | skip_files_except=['my_project', 'site-packages'], 25 | brief_files_except='my_project', 26 | custom_var_printers=[ # first matching is used 27 | ('password', hide), # by name, print const str 28 | (list, lambda v: f'list{v}'), # by type, print fancy str 29 | (lambda name, type_, filename, is_global: is_global, skip), # custom filter, skip printing 30 | (is_ipython_global, lambda v: None), # same, handy for Jupyter 31 | (['secret', dict, (lambda name, *_: 'asd' in name)], lambda v: '???'), # by different things, print const str 32 | ] 33 | ) 34 | print_exc(fmt=fmt2) 35 | 36 | 37 | # approach 3 for explicit format passing, less code 38 | 39 | fmt3 = defaults.replace(max_value_str_len=10000) 40 | print_exc(fmt=fmt3) 41 | -------------------------------------------------------------------------------- /examples/interactive_print_last_exception.py: -------------------------------------------------------------------------------- 1 | >>> from traceback_with_variables import print_exc 2 | 3 | >>> def f(n): 4 | .... return 1 / n 5 | .... 6 | 7 | >>> f(0) 8 | Traceback (most recent call last): 9 | File "", line 1, in 10 | File "", line 2, in f 11 | ZeroDivisionError: division by zero 12 | 13 | >>> print_exc() 14 | 15 | >>> # you might want to import activate_[in_ipython]by_import to automate this step -------------------------------------------------------------------------------- /examples/log_for_code_block.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | from traceback_with_variables import printing_exc, LoggerAsFile 4 | 5 | 6 | logging.basicConfig(format='%(asctime)-15s %(name)s %(levelname)s %(message)s') 7 | logger = logging.getLogger(__name__) 8 | 9 | 10 | def f(n): 11 | print(1 / n) 12 | 13 | 14 | def main(): 15 | with printing_exc(file_=LoggerAsFile(logger)): 16 | x = 1 17 | f(x - 1) 18 | 19 | 20 | main() 21 | -------------------------------------------------------------------------------- /examples/log_for_function.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | from traceback_with_variables import prints_exc, LoggerAsFile 4 | 5 | 6 | logging.basicConfig(format='%(asctime)-15s %(name)s %(levelname)s %(message)s') 7 | logger = logging.getLogger(__name__) 8 | 9 | 10 | @prints_exc(file_=LoggerAsFile(logger)) 11 | def f(n): 12 | print(1 / n) 13 | 14 | 15 | def main(): 16 | f(0) 17 | 18 | 19 | main() 20 | -------------------------------------------------------------------------------- /examples/print_cur_tb.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import print_cur_tb # , format_cur_tb, iter_cur_tb_lines 2 | 3 | 4 | def f(n): 5 | print_cur_tb() 6 | # cur_tb_str = format_cur_tb() 7 | # cur_tb_lines = list(iter_cur_tb_lines()) 8 | 9 | return n + 1 10 | 11 | 12 | def main(): 13 | f(10) 14 | 15 | 16 | main() 17 | -------------------------------------------------------------------------------- /examples/print_for_code_block.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import printing_exc 2 | 3 | 4 | def f(n): 5 | print(1 / n) 6 | 7 | 8 | def main(): 9 | with printing_exc(): 10 | x = 1 11 | f(x - 1) 12 | 13 | 14 | main() 15 | -------------------------------------------------------------------------------- /examples/print_for_function.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import prints_exc 2 | 3 | 4 | @prints_exc 5 | def f(n): 6 | print(1 / n) 7 | 8 | 9 | def main(): 10 | f(0) 11 | 12 | 13 | main() 14 | -------------------------------------------------------------------------------- /examples/secret_data.py: -------------------------------------------------------------------------------- 1 | """ 2 | When you deal with secrets like passwords or tokens any debug report system 3 | puts you at risk of exposing those secrets. 4 | 5 | Why? Some secrets are stored securely in databases and are kept decrypted only 6 | for short time in memory while being used in code. So any traceback printout 7 | will save them explicitly for you to read later. 8 | 9 | Its not a huge problem if the secret is stored unencrypted, i.e. its your 10 | (not users') secret and the machine is secure. User passwords are a problem. 11 | 12 | How to prevent secret vars from being printed? You might 13 | * correctly guess how the secret variables in your code are called 14 | * hide the 3rd party well-established library code totally 15 | 16 | It will look like this: some of variables in your code will have 17 | "...hidden..." values, and all library files (where secret variables might go 18 | with unrelated names like "s", "part", "msg" etc.) will be skipped totally. 19 | 20 | Default settings include all frequent patterns for your variables: 21 | PATTERN_TO_HIDE = '.*(?i:pass|secret|token|key|api_key|cred|pwd).*' 22 | Which will hide a bit too much, names like "keyword" or "compassion". Address 23 | examples below to fit the hiding. 24 | 25 | To hide libraries address examples below, note that you can only allow code, 26 | not deny it, so all 3rd party libraries will be hidden if you use this 27 | setting. 28 | """ 29 | 30 | # simple tools usage, for more manual approach address format_customized.py 31 | 32 | from traceback_with_variables import fmt, hide 33 | 34 | 35 | # hide all libraries except couple 36 | 37 | fmt.brief_files_except = ['.*my_project.*', '.*some_library_1.*', '.*some_library_2.*'] 38 | 39 | 40 | # show all variables 41 | 42 | fmt.custom_var_printers = [] 43 | 44 | 45 | # hide variables differently 46 | 47 | fmt.custom_var_printers = [ 48 | ('.*(precious|ring).*', hide), # by name 49 | (MySecret, hide), # by class 50 | ] 51 | -------------------------------------------------------------------------------- /examples/simple.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import a # , fmt 2 | # or 3 | from traceback_with_variables import activate_by_import # , fmt 4 | # or (if you added the "tb" alias) 5 | import tb.a 6 | 7 | 8 | # fmt.max_value_str_len = 10000 9 | 10 | def main(): 11 | n = 0 12 | print(1 / n) 13 | 14 | 15 | main() 16 | -------------------------------------------------------------------------------- /examples/simple_jupyter.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import a 2 | 3 | # or just 4 | # import tb.a 5 | # if you created the tb alias 6 | 7 | # or 8 | # from traceback_with_variables import activate_by_import 9 | # if you prefer better names 10 | 11 | n = 0 12 | 1/0 13 | 14 | 15 | 16 | 17 | 18 | """How to install in Colab etc.""" 19 | 20 | !pip install traceback-with-variables 21 | # add this to use "tb" alias for the package 22 | from tracaback_with_variables import create_tb_alias 23 | create_tb_alias() 24 | -------------------------------------------------------------------------------- /examples/work_with_traceback_lines.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables import iter_exc_lines 2 | 3 | 4 | def main(): 5 | try: 6 | n = 0 7 | print(1 / n) 8 | 9 | except Exception as e: 10 | lines = list(iter_exc_lines(e)) 11 | 12 | # requests.post('http://myreport.mysite.com/report', data={'lines': lines}) 13 | 14 | 15 | main() 16 | -------------------------------------------------------------------------------- /gen_readme.py: -------------------------------------------------------------------------------- 1 | from pathlib import Path 2 | 3 | from jinja2 import Template 4 | 5 | from traceback_with_variables import __version__ as version 6 | 7 | 8 | user_name = 'andy-landy' 9 | repo_name = 'traceback_with_variables' 10 | import_name = 'traceback_with_variables' 11 | package_name = 'traceback-with-variables' 12 | user_repo_name = f'{user_name}/{repo_name}' 13 | repo_url = f'https://github.com/{user_repo_name}' 14 | code_url = f'{repo_url}/tree/master' 15 | lib_code_url = f'{code_url}/{import_name}' 16 | examples_code_url = f'{code_url}/examples' 17 | pypi_url = f'https://pypi.org/project/{package_name}' 18 | content_url = f'https://raw.githubusercontent.com/{user_repo_name}/master' 19 | gitter_url = f'https://gitter.im/{user_name}/{package_name}' 20 | 21 | 22 | Path('README.md').write_text(Template(Path('README.tmpl').read_text()).render( 23 | user_name=user_name, 24 | repo_name=repo_name, 25 | import_name=import_name, 26 | package_name=package_name, 27 | user_repo_name=user_repo_name, 28 | repo_url=repo_url, 29 | code_url=code_url, 30 | lib_code_url=lib_code_url, 31 | examples_code_url=examples_code_url, 32 | pypi_url=pypi_url, 33 | content_url=content_url, 34 | gitter_url=gitter_url, 35 | version=version, 36 | )) 37 | -------------------------------------------------------------------------------- /header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy-landy/traceback_with_variables/86c660d5c7583426f36852093e50584d116a16de/header.png -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | from traceback_with_variables import __version__ 4 | 5 | with open('README.md', 'r', encoding='utf-8') as in_: 6 | long_description = in_.read() 7 | 8 | setuptools.setup( 9 | name='traceback-with-variables', 10 | version=__version__, 11 | author='Andrey Lyashko', 12 | author_email='andydashlandy@gmail.com', 13 | description='Adds variables to python traceback. Simple, lightweight, cont' 14 | 'rollable. Debug reasons of exceptions by logging or pretty printing color' 15 | 'ful variable contexts for each frame in a stacktrace, showing every value' 16 | '. Dump locals environments after errors to console, files, and loggers. W' 17 | 'orks with Jupyter and IPython.', 18 | long_description=long_description, 19 | long_description_content_type="text/markdown", 20 | url='https://github.com/andy-landy/traceback_with_variables', 21 | packages=['traceback_with_variables'], 22 | keywords=['python', 'traceback', 'locals', 'logging', 'debugging', 'print', 23 | 'variables', 'python3', 'stacktrace', 'arguments', 'errors', 24 | 'error-handling', 'dump', 'exception-handling', 'exceptions', 25 | 'pretty', 'pretty-print', 'frame', 'simple', 26 | 'colors', 'jupyter', 'jupyter-notebook', 'ipython', 'customize'], 27 | classifiers=[ 28 | 'Programming Language :: Python :: 3', 29 | 'License :: OSI Approved :: MIT License', 30 | 'Operating System :: OS Independent', 31 | 'Intended Audience :: Developers', 32 | 'Topic :: Software Development :: Debuggers', 33 | 'Topic :: Software Development :: Libraries', 34 | ], 35 | entry_points={'console_scripts': [ 36 | 'traceback-with-variables = traceback_with_variables.main:main', 37 | ]}, 38 | tests_require=[ 39 | 'flake8', 40 | 'ipython', 41 | 'pytest-cov', 42 | 'notebook==6.2.0', 43 | ], 44 | install_requires=[], 45 | python_requires='>=3.6', 46 | ) 47 | -------------------------------------------------------------------------------- /tests/dummies.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Any 3 | 4 | 5 | @dataclass 6 | class D: 7 | f1: Any 8 | f2: Any 9 | 10 | 11 | @dataclass 12 | class DWithRepr: 13 | f1: Any 14 | 15 | def __repr__(self): 16 | return f'DWithRepr-{self.f1}' 17 | 18 | 19 | @dataclass 20 | class DWithStr: 21 | f1: Any 22 | 23 | def __str__(self): 24 | return f'DWithStr-{self.f1}' 25 | 26 | 27 | class Unprintable: 28 | def __repr__(self): 29 | raise ValueError("please don't print me") 30 | 31 | 32 | class A: 33 | class B: 34 | def __init__(self, f3): 35 | self.f3 = f3 36 | 37 | def __init__(self, f1, f2): 38 | self.f1 = f1 39 | self.f2 = f2 40 | 41 | def __hash__(self): 42 | return hash((self.f1, self.f2)) 43 | 44 | def __eq__(self, other): 45 | return type(self) == type(other) and self.f1 == other.f1 and self.f2 == other.f2 46 | 47 | 48 | class SuperList(list): 49 | pass 50 | 51 | 52 | class SuperDict(dict): 53 | pass 54 | 55 | 56 | class SuperSet(set): 57 | def __iter__(self): 58 | return iter(sorted(super().__iter__(), key=lambda x: (type(x).__qualname__, hash(x)))) 59 | 60 | 61 | class HasNoStr: 62 | f1 = 'one' 63 | 64 | def __init__(self): 65 | self.f2 = 'two' 66 | self.f3 = 'three' 67 | 68 | def __hash__(self): 69 | return hash((self.f2, self.f3)) 70 | 71 | def __eq__(self, other): 72 | return type(self) == type(other) and self.f2 == other.f2 and self.f3 == other.f3 73 | 74 | 75 | class HasStr(HasNoStr): 76 | def __str__(self): 77 | return f'HasStr-with-f2-{self.f2}-f3-{self.f3}' 78 | 79 | 80 | def f(n: int = 10001) -> int: 81 | s1 = f'short string with n: {n}' 82 | l1 = f'long string with 0..n: {", ".join(map(str, range(n)))}' 83 | us = [Unprintable(), Unprintable(), Unprintable()] 84 | 85 | if n % 10 == 0: 86 | return 1 // (n * 0) 87 | 88 | if True: 89 | if n % 2 == 0: 90 | return f(n - 1) 91 | else: 92 | return f( 93 | n 94 | 95 | - 1 96 | ) -------------------------------------------------------------------------------- /tests/dumps/test_core.cur_tb_0_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_cur_tb 3 | tb_reg(core.format_cur_tb(num_skipped_frames=num_skipped_frames, fmt=Format(skip_files_except='test_core'))) 4 | tb_reg = > 5 | num_skipped_frames = 0 -------------------------------------------------------------------------------- /tests/dumps/test_core.cur_tb_1_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): -------------------------------------------------------------------------------- /tests/dumps/test_core.files_._dummies.__skip_files_except2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.files_None_skip_files_except2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[re.compile('.*test_core.*')])} 5 | tb_reg = > 6 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.files_brief_files_except2_._dummies.__.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 3 | return f( 4 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 5 | return 1 // (n * 0) 6 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.files_brief_files_except2_None_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[re.compile('.*test_core.*')], color_scheme=None, custom_var_printers=[], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 9 | return 1 // (n * 0) 10 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.files_brief_files_except2_skip_files_except2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[re.compile('.*test_core.*')], color_scheme=None, custom_var_printers=[], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[re.compile('.*test_core.*')])} 5 | tb_reg = > 6 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.max_value_str_len.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, bri...ails=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1...9996, 9997, 9998, 9999, 10000' 11 | us = Traceback (most recent call last): 12 | ...traceback_with_variables internal stacks... 13 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 14 | raise ValueError("please don't print me") 15 | ValueError: please don't print me 16 | 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1... 9995, 9996, 9997, 9998, 9999' 22 | us = Traceback (most recent call last): 23 | ...traceback_with_variables internal stacks... 24 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 25 | raise ValueError("please don't print me") 26 | ValueError: please don't print me 27 | 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.num_skipped_frames_2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 3 | return 1 // (n * 0) 4 | n = 10000 5 | s1 = 'short string with n: 10000' 6 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 7 | us = Traceback (most recent call last): 8 | ...traceback_with_variables internal stacks... 9 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 10 | raise ValueError("please don't print me") 11 | ValueError: please don't print me 12 | 13 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_0_obj0_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = [1, 2, 3] 6 | objects_details = 0 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_0_obj1_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(-) 6 | objects_details = 0 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_0_obj2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(-) 6 | objects_details = 0 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_0_obj3_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(-) 6 | objects_details = 0 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_10_obj0_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = [1, 2, 3] 6 | objects_details = 10 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_10_obj1_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(f1=11, f2=12) 6 | objects_details = 10 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_10_obj2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(f1=tests.dummies.A(f1=11, f2=12), f2=tests.dummies.A(f1=13, f2=14)) 6 | objects_details = 10 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_10_obj3_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = Traceback (most recent call last): 6 | ...traceback_with_variables internal stacks... 7 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 8 | raise ValueError("please don't print me") 9 | ValueError: please don't print me 10 | 11 | objects_details = 10 12 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_1_obj0_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = [1, 2, 3] 6 | objects_details = 1 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_1_obj1_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(f1=11, f2=12) 6 | objects_details = 1 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_1_obj2_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = tests.dummies.A(f1=tests.dummies.A(-), f2=tests.dummies.A(-)) 6 | objects_details = 1 7 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.objects_details_1_obj3_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in test_objects_details 3 | 1/0 4 | tb_reg = > 5 | obj = Traceback (most recent call last): 6 | ...traceback_with_variables internal stacks... 7 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 8 | raise ValueError("please don't print me") 9 | ValueError: please don't print me 10 | 11 | objects_details = 1 12 | builtins.ZeroDivisionError: division by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.standard_prints_for_var_printers_1_hide_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, )], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | l1 = ...hidden... 11 | us = Traceback (most recent call last): 12 | ...traceback_with_variables internal stacks... 13 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 14 | raise ValueError("please don't print me") 15 | ValueError: please don't print me 16 | 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | l1 = ...hidden... 22 | us = Traceback (most recent call last): 23 | ...traceback_with_variables internal stacks... 24 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 25 | raise ValueError("please don't print me") 26 | ValueError: please don't print me 27 | 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.standard_prints_for_var_printers_2_skip_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, )], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | us = Traceback (most recent call last): 11 | ...traceback_with_variables internal stacks... 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 13 | raise ValueError("please don't print me") 14 | ValueError: please don't print me 15 | 16 | ...skipped... 1 vars 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | us = Traceback (most recent call last): 22 | ...traceback_with_variables internal stacks... 23 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 24 | raise ValueError("please don't print me") 25 | ValueError: please don't print me 26 | 27 | ...skipped... 1 vars 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_0_None_1_fs11_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_0_None_2_fs12_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, . at 0x...omitted for tests only...>)], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | us = Traceback (most recent call last): 11 | ...traceback_with_variables internal stacks... 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 13 | raise ValueError("please don't print me") 14 | ValueError: please don't print me 15 | 16 | ...skipped... 1 vars 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | us = Traceback (most recent call last): 22 | ...traceback_with_variables internal stacks... 23 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 24 | raise ValueError("please don't print me") 25 | ValueError: please don't print me 26 | 27 | ...skipped... 1 vars 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_0_None_3_fs13_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_1_fs21_0_None_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = var 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = var 10 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 11 | us = var 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 13 | return 1 // (n * 0) 14 | n = 10000 15 | s1 = var 16 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 17 | us = var 18 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_1_fs21_1_fs11_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_1_fs21_2_fs12_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = var 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = var 10 | us = var 11 | ...skipped... 1 vars 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 13 | return 1 // (n * 0) 14 | n = 10000 15 | s1 = var 16 | us = var 17 | ...skipped... 1 vars 18 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_1_fs21_3_fs13_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_2_fs22_0_None_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, . at 0x...omitted for tests only...>)], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | l1 = var 11 | us = Traceback (most recent call last): 12 | ...traceback_with_variables internal stacks... 13 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 14 | raise ValueError("please don't print me") 15 | ValueError: please don't print me 16 | 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | l1 = var 22 | us = Traceback (most recent call last): 23 | ...traceback_with_variables internal stacks... 24 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 25 | raise ValueError("please don't print me") 26 | ValueError: please don't print me 27 | 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_2_fs22_1_fs11_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = var 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = var 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_2_fs22_2_fs12_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = {'fmt': traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, . at 0x...omitted for tests only...>), (.should_print at 0x...omitted for tests only...>, . at 0x...omitted for tests only...>)], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[])} 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = 'short string with n: 10001' 10 | us = Traceback (most recent call last): 11 | ...traceback_with_variables internal stacks... 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 13 | raise ValueError("please don't print me") 14 | ValueError: please don't print me 15 | 16 | ...skipped... 1 vars 17 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 18 | return 1 // (n * 0) 19 | n = 10000 20 | s1 = 'short string with n: 10000' 21 | us = Traceback (most recent call last): 22 | ...traceback_with_variables internal stacks... 23 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in __repr__ 24 | raise ValueError("please don't print me") 25 | ValueError: please don't print me 26 | 27 | ...skipped... 1 vars 28 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_2_fs22_3_fs13_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = var 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = var 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_3_fs23_0_None_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = var 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = var 10 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 11 | us = var 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 13 | return 1 // (n * 0) 14 | n = 10000 15 | s1 = var 16 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 17 | us = var 18 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_3_fs23_1_fs11_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_3_fs23_2_fs12_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | kwargs = var 5 | tb_reg = > 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | s1 = var 10 | us = var 11 | ...skipped... 1 vars 12 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 13 | return 1 // (n * 0) 14 | n = 10000 15 | s1 = var 16 | us = var 17 | ...skipped... 1 vars 18 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_core.var_printers_3_fs23_3_fs13_.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_core.py", line...omitted for tests only..., in check_ 3 | f() 4 | tb_reg = > 5 | ...skipped... 1 vars 6 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 7 | return f( 8 | n = 10001 9 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156...9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000' 10 | ...skipped... 2 vars 11 | File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f 12 | return 1 // (n * 0) 13 | n = 10000 14 | l1 = 'long string with 0..n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156... 9950, 9951, 9952, 9953, 9954, 9955, 9956, 9957, 9958, 9959, 9960, 9961, 9962, 9963, 9964, 9965, 9966, 9967, 9968, 9969, 9970, 9971, 9972, 9973, 9974, 9975, 9976, 9977, 9978, 9979, 9980, 9981, 9982, 9983, 9984, 9985, 9986, 9987, 9988, 9989, 9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999' 15 | ...skipped... 2 vars 16 | builtins.ZeroDivisionError: integer division or modulo by zero -------------------------------------------------------------------------------- /tests/dumps/test_default_global_hooks.patterns_to_hide.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_default_global_hooks.py", line...omitted for tests only..., in check 3 | f() 4 | tb_reg = > 5 | fmt = traceback_with_variables.core.Format(after=0, before=0, brief_files_except=[], color_scheme=None, custom_var_printers=[(.should_print at 0x...omitted for tests only...>, )], ellipsis_='...', ellipsis_rel_pos=0.7, max_exc_str_len=10000, max_value_str_len=1000, objects_details=1, skip_files_except=[]) 6 | File "...omitted for tests only.../test_default_global_hooks.py", line...omitted for tests only..., in f 7 | return f(n - 1) 8 | n = 1 9 | money = '1000' 10 | password = ...hidden... 11 | secret_word = ...hidden... 12 | monkey_species = ...hidden... 13 | my_pAssWOrd_2 = ...hidden... 14 | mySecretN = ...hidden... 15 | card_number = '1234 5678 1234 5678' 16 | File "...omitted for tests only.../test_default_global_hooks.py", line...omitted for tests only..., in f 17 | raise ValueError('planned exception') 18 | n = 0 19 | money = '1000' 20 | password = ...hidden... 21 | secret_word = ...hidden... 22 | monkey_species = ...hidden... 23 | my_pAssWOrd_2 = ...hidden... 24 | mySecretN = ...hidden... 25 | card_number = '1234 5678 1234 5678' 26 | builtins.ValueError: planned exception -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj000_int_na_.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj001_float_na_.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj002_str_4_.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj003_bool_na_.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj004_bool_na_.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj005_type_na_.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj006_type_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasStr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj007_list_3_.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj008_list_1_.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj009_list_0_.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj010_tuple_3_.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj011_tuple_1_.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj012_tuple_0_.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj013_set_3_.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj014_set_1_.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj015_set_0_.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj016_dict_3_.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1', 'a2': 'k2', 'a3': 'k3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj017_dict_1_.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj018_dict_0_.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj019_HasStr_na_.txt: -------------------------------------------------------------------------------- 1 | HasStr-with-f2-two-f3-three -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj020_HasNoStr_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasNoStr(f2='two', f3='three') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj021_B_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A.B(f3=11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj022_A_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj023_A_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj024_D_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj025_D_na_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj026_list_5_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(f2='two', f3='three'), True, 4], f2={5: tests.dummies.SuperSet{tests.dummies.A(f1=6, f2=7), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj027_SuperList_3_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperList[11, 12, 13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj028_SuperDict_3_.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperDict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj029_Decimal_na_.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj030_defaultdict_3_.txt: -------------------------------------------------------------------------------- 1 | collections.defaultdict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj031_deque_3_.txt: -------------------------------------------------------------------------------- 1 | deque([11, 12, 13]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj032_DWithRepr_na_.txt: -------------------------------------------------------------------------------- 1 | DWithRepr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj033_DWithStr_na_.txt: -------------------------------------------------------------------------------- 1 | DWithStr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj034_TextIOWrapper_na_.txt: -------------------------------------------------------------------------------- 1 | <_io.TextIOWrapper name='./temp_out.txt' mode='w' encoding='UTF-8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.left_equals_right_obj035_PosixPath_na_.txt: -------------------------------------------------------------------------------- 1 | /some/path/to/file.txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.obj_depth_0_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(-)] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.obj_depth_1_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(-), True, 4], f2={5: tests.dummies.SuperSet{tests.dummies.A(-), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.obj_depth_2_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(f2='two', f3='three'), True, 4], f2={5: tests.dummies.SuperSet{tests.dummies.A(f1=6, f2=7), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.obj_depth_3_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(f2='two', f3='three'), True, 4], f2={5: tests.dummies.SuperSet{tests.dummies.A(f1=6, f2=7), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.obj_depth__1_.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(f2='two', f3='three'), True, 4], f2={5: tests.dummies.SuperSet{tests.dummies.A(f1=6, f2=7), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj000_int_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj001_float_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | 5.0 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.left.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.mid.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_100_.right.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.left.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.mid.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_10_.right.txt: -------------------------------------------------------------------------------- 1 | 'five' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...e' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.mid.txt: -------------------------------------------------------------------------------- 1 | '...' -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj002_str_4_5_.right.txt: -------------------------------------------------------------------------------- 1 | 'f... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj003_bool_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj004_bool_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | False -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj005_type_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | list -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasStr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasStr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasStr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ....HasStr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...Str -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...tr -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...r -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj006_type_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | [1, 2, 3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | [...] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj007_list_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | [1... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.left.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.mid.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_100_.right.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.left.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.mid.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_10_.right.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.left.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.mid.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_3_.right.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.left.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.mid.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj008_list_1_5_.right.txt: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.left.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.mid.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_100_.right.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.left.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.mid.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_10_.right.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.left.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.mid.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_3_.right.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.left.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.mid.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj009_list_0_5_.right.txt: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | (1, 2, 3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...3) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | (...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj010_tuple_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | (1... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.left.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.mid.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_100_.right.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.left.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.mid.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_10_.right.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.left.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.mid.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_3_.right.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.left.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.mid.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj011_tuple_1_5_.right.txt: -------------------------------------------------------------------------------- 1 | (1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.left.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.mid.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_100_.right.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.left.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.mid.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_10_.right.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.left.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.mid.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_3_.right.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.left.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.mid.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj012_tuple_0_5_.right.txt: -------------------------------------------------------------------------------- 1 | () -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | {1, 2, 3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...3} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | {...} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj013_set_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | {1... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.left.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.mid.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_100_.right.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.left.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.mid.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_10_.right.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.left.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.mid.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_3_.right.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.left.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.mid.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj014_set_1_5_.right.txt: -------------------------------------------------------------------------------- 1 | {1} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.left.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.mid.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_100_.right.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.left.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.mid.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_10_.right.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.left.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.mid.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj015_set_0_5_.right.txt: -------------------------------------------------------------------------------- 1 | set() -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1', 'a2': 'k2', 'a3': 'k3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1', 'a2': 'k2', 'a3': 'k3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1', 'a2': 'k2', 'a3': 'k3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...: 'k3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | {'k1...3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | {'k1': ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | {...} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj016_dict_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | {'... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.left.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.mid.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_100_.right.txt: -------------------------------------------------------------------------------- 1 | {'k1': 'v1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...: 'v1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.mid.txt: -------------------------------------------------------------------------------- 1 | {'k1...1'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_10_.right.txt: -------------------------------------------------------------------------------- 1 | {'k1': ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.mid.txt: -------------------------------------------------------------------------------- 1 | {...} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj017_dict_1_5_.right.txt: -------------------------------------------------------------------------------- 1 | {'... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.left.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.mid.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_100_.right.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.left.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.mid.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_10_.right.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.left.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.mid.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_3_.right.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.left.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.mid.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj018_dict_0_5_.right.txt: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | HasStr-with-f2-two-f3-three -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | HasStr-with-f2-two-f3-three -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | HasStr-with-f2-two-f3-three -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...3-three -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | HasS...ree -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | HasStr-... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...ee -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | H...e -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj019_HasStr_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | Ha... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasNoStr(f2='two', f3='three') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasNoStr(f2='two', f3='three') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.HasNoStr(f2='two', f3='three') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...three') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...e') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...') -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj020_HasNoStr_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A.B(f3=11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A.B(f3=11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A.B(f3=11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...(f3=11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...11) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...1) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj021_B_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ... f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...2) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj022_A_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.A(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ..., f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj023_A_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=11, f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ... f2=12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...12) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...2) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj024_D_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.D(f1=[1, 2, 3], f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ..., f2=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...=4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...4) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj025_D_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.left.txt: -------------------------------------------------------------------------------- 1 | ... tests.dummies.SuperSet{tests.dummies.A(f1=6, f2=7), HasStr-with-f2-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.mid.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[...-two-f3-three, None}, 8: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_100_.right.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0, 'three', HasStr-with-f2-two-f3-three, tests.dummies.A(f1=[tests.dummies.HasNoStr(f2='two... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...: -9})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.mid.txt: -------------------------------------------------------------------------------- 1 | [1, ...})] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_10_.right.txt: -------------------------------------------------------------------------------- 1 | [1, 2.0... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...)] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.mid.txt: -------------------------------------------------------------------------------- 1 | [...] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj026_list_5_5_.right.txt: -------------------------------------------------------------------------------- 1 | [1... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperList[11, 12, 13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperList[11, 12, 13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperList[11, 12, 13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...12, 13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...13] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...3] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...] -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj027_SuperList_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperDict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperDict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | tests.dummies.SuperDict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...: 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | test...3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | tests.d... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | t...} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj028_SuperDict_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj029_Decimal_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | 12.34 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | collections.defaultdict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | collections.defaultdict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | collections.defaultdict{'k1': 'v1', 'k2': 'v2', 'k3': 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...: 'v3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | coll...3'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | collect... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...'} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | c...} -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj030_defaultdict_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | co... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.left.txt: -------------------------------------------------------------------------------- 1 | deque([11, 12, 13]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.mid.txt: -------------------------------------------------------------------------------- 1 | deque([11, 12, 13]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_100_.right.txt: -------------------------------------------------------------------------------- 1 | deque([11, 12, 13]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...2, 13]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.mid.txt: -------------------------------------------------------------------------------- 1 | dequ...3]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_10_.right.txt: -------------------------------------------------------------------------------- 1 | deque([... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...]) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.mid.txt: -------------------------------------------------------------------------------- 1 | d...) -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj031_deque_3_5_.right.txt: -------------------------------------------------------------------------------- 1 | de... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | DWithRepr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | DWithRepr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | DWithRepr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...Repr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | DWit...-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | DWithRe... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | D...1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj032_DWithRepr_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | DW... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | DWithStr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | DWithStr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | DWithStr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...hStr-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | DWit...-v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | DWithSt... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...v1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | D...1 -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj033_DWithStr_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | DW... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | <_io.TextIOWrapper name='./temp_out.txt' mode='w' encoding='UTF-8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | <_io.TextIOWrapper name='./temp_out.txt' mode='w' encoding='UTF-8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | <_io.TextIOWrapper name='./temp_out.txt' mode='w' encoding='UTF-8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...UTF-8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | <_io...8'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | <_io.Te... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...'> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | <...> -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj034_TextIOWrapper_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | <_... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.left.txt: -------------------------------------------------------------------------------- 1 | /some/path/to/file.txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.mid.txt: -------------------------------------------------------------------------------- 1 | /some/path/to/file.txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_100_.right.txt: -------------------------------------------------------------------------------- 1 | /some/path/to/file.txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.left.txt: -------------------------------------------------------------------------------- 1 | ...ile.txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.mid.txt: -------------------------------------------------------------------------------- 1 | /som...txt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_10_.right.txt: -------------------------------------------------------------------------------- 1 | /some/p... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.left.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.mid.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_3_.right.txt: -------------------------------------------------------------------------------- 1 | ... -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.left.txt: -------------------------------------------------------------------------------- 1 | ...xt -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.mid.txt: -------------------------------------------------------------------------------- 1 | /...t -------------------------------------------------------------------------------- /tests/dumps/test_fast_capped_str_casts.to_big_tokens_obj035_PosixPath_na_5_.right.txt: -------------------------------------------------------------------------------- 1 | /s... -------------------------------------------------------------------------------- /tests/dumps/test_global_hooks.activate_in_ipython_by_import_error.txt: -------------------------------------------------------------------------------- 1 | Traceback (most recent call last): 2 | File "...omitted for tests only.../global_hooks.py", line...omitted for tests only..., in global_print_exc_in_ipython 3 | import IPython 4 | File "...omitted for tests only.../IPython.py", line...omitted for tests only..., in 5 | import nonexistent_module 6 | ModuleNotFoundError: No module named 'nonexistent_module' 7 | 8 | During handling of the above exception, another exception occurred: 9 | 10 | Traceback (most recent call last): 11 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 12 | from traceback_with_variables import activate_in_ipython_by_import 13 | File "...omitted for tests only.../activate_in_ipython_by_import.py", line...omitted for tests only..., in 14 | default_global_print_exc_in_ipython() 15 | File "...omitted for tests only.../default_global_hooks.py", line...omitted for tests only..., in default_global_print_exc_in_ipython 16 | global_print_exc_in_ipython() 17 | File "...omitted for tests only.../global_hooks.py", line...omitted for tests only..., in global_print_exc_in_ipython 18 | raise ValueError("IPython not found") 19 | ValueError: IPython not found 20 | -------------------------------------------------------------------------------- /tests/dumps/test_main.argparse_code.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | f(a - 2) 4 | __loader__ = _frozen_importlib_external.SourceFileLoader(name='traceback_with_variables.main', path='...omitted for tests only.../main.py') 5 | __builtins__ = 6 | __package__ = None 7 | __spec__ = None 8 | __annotations__ = None 9 | __cached__ = None 10 | __name__ = '__main__' 11 | __file__ = '...omitted for tests only.../code.py' 12 | argparse = 13 | f = 14 | p = ArgumentParser(prog='code.py', usage=None, description=None, formatter_class=, conflict_handler='error', add_help=True) 15 | args = Namespace(a=3) 16 | a = 3 17 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 18 | return 1 / m 19 | n = 1 20 | m = 0 21 | builtins.ZeroDivisionError: division by zero 22 | -------------------------------------------------------------------------------- /tests/dumps/test_main.argparse_code_script_help.txt: -------------------------------------------------------------------------------- 1 | usage: code.py [-h] 2 | --a A 3 | 4 | options: 5 | -h, --help show this help message and exit 6 | --a A 7 | -------------------------------------------------------------------------------- /tests/dumps/test_main.module.txt: -------------------------------------------------------------------------------- 1 | usage:server.py(-h)... -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_color_scheme.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 |  File "...omitted for tests only.../code.py", line...omitted for tests only..., in  3 |  f(a - 2) 4 |  __loader__ = _frozen_importlib_external.SourceFileLoader(name='traceback_with_variables.main', path='...omitted for tests only.../main.py') 5 |  __builtins__ =  6 |  __package__ = None 7 |  __spec__ = None 8 |  __annotations__ = None 9 |  __cached__ = None 10 |  __name__ = '__main__' 11 |  __file__ = '...omitted for tests only.../code.py' 12 |  f =  13 |  a = 3 14 |  File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 15 |  return 1 / m 16 |  n = 1 17 |  m = 0 18 | builtins.ZeroDivisionError: division by zero 19 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_excess_script_args.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | f(a - 2) 4 | __loader__ = _frozen_importlib_external.SourceFileLoader(name='traceback_with_variables.main', path='...omitted for tests only.../main.py') 5 | __builtins__ = 6 | __package__ = None 7 | __spec__ = None 8 | __annotations__ = None 9 | __cached__ = None 10 | __name__ = '__main__' 11 | __file__ = '...omitted for tests only.../code.py' 12 | f = 13 | a = 3 14 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 15 | return 1 / m 16 | n = 1 17 | m = 0 18 | builtins.ZeroDivisionError: division by zero 19 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_excess_tool_args.txt: -------------------------------------------------------------------------------- 1 | usage: main.py [-h] 2 | [--max-value-str-len MAX_VALUE_STR_LEN] 3 | [--ellipsis-rel-pos ELLIPSIS_REL_POS] 4 | [--max-exc-str-len MAX_EXC_STR_LEN] 5 | [--objects-details OBJECTS_DETAILS] 6 | [--ellipsis ELLIPSIS] 7 | [--before BEFORE] 8 | [--after AFTER] 9 | [--color-scheme {auto,common,nice,none,synthwave}] 10 | [--skip-files-except [SKIP_FILES_EXCEPT ...]] 11 | [--brief-files-except [BRIEF_FILES_EXCEPT ...]] 12 | [--no-globals] 13 | script [script-arg ...] 14 | main.py: error: ambiguous option: ...could match --before, --brief-files-except 15 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_incomplete_tool_args.txt: -------------------------------------------------------------------------------- 1 | usage: main.py [-h] 2 | [--max-value-str-len MAX_VALUE_STR_LEN] 3 | [--ellipsis-rel-pos ELLIPSIS_REL_POS] 4 | [--max-exc-str-len MAX_EXC_STR_LEN] 5 | [--objects-details OBJECTS_DETAILS] 6 | [--ellipsis ELLIPSIS] 7 | [--before BEFORE] 8 | [--after AFTER] 9 | [--color-scheme {auto,common,nice,none,synthwave}] 10 | [--skip-files-except [SKIP_FILES_EXCEPT ...]] 11 | [--brief-files-except [BRIEF_FILES_EXCEPT ...]] 12 | [--no-globals] 13 | script [script-arg ...] 14 | main.py: error: argument --max-value-str-len: invalid int value: '...omitted for tests only.../code.py' 15 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_no_args.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | f(a - 2) 4 | __loader__ = _frozen_importlib_external.SourceFileLoader(name='traceback_with_variables.main', path='...omitted for tests only.../main.py') 5 | __builtins__ = 6 | __package__ = None 7 | __spec__ = None 8 | __annotations__ = None 9 | __cached__ = None 10 | __name__ = '__main__' 11 | __file__ = '...omitted for tests only.../code.py' 12 | f = 13 | a = 3 14 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 15 | return 1 / m 16 | n = 1 17 | m = 0 18 | builtins.ZeroDivisionError: division by zero 19 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_tool_args.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | f(a - 2) 4 | __loader__ = _frozen_importlib_external.SourceFileLoader(na...h_variables/main.py') 5 | __builtins__ = 6 | __package__ = None 7 | __spec__ = None 8 | __annotations__ = None 9 | __cached__ = None 10 | __name__ = '__main__' 11 | __file__ = '...omitted for tests only.../code.py' 12 | f = 13 | a = 3 14 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 15 | return 1 / m 16 | n = 1 17 | m = 0 18 | builtins.ZeroDivisionError: division by zero 19 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_tool_args_no_globals.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | f(a - 2) 4 | ...skipped... 10 vars 5 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 6 | return 1 / m 7 | n = 1 8 | m = 0 9 | builtins.ZeroDivisionError: division by zero 10 | -------------------------------------------------------------------------------- /tests/dumps/test_main.simple_code_tool_help.txt: -------------------------------------------------------------------------------- 1 | usage: main.py [-h] 2 | [--max-value-str-len MAX_VALUE_STR_LEN] 3 | [--ellipsis-rel-pos ELLIPSIS_REL_POS] 4 | [--max-exc-str-len MAX_EXC_STR_LEN] 5 | [--objects-details OBJECTS_DETAILS] 6 | [--ellipsis ELLIPSIS] 7 | [--before BEFORE] 8 | [--after AFTER] 9 | [--color-scheme {auto,common,nice,none,synthwave}] 10 | [--skip-files-except [SKIP_FILES_EXCEPT ...]] 11 | [--brief-files-except [BRIEF_FILES_EXCEPT ...]] 12 | [--no-globals] 13 | script [script-arg ...] 14 | positional arguments: 15 | script 16 | script-arg 17 | 18 | options: 19 | -h, --help show this help message and exit 20 | --max-value-str-len MAX_VALUE_STR_LEN 21 | --ellipsis-rel-pos ELLIPSIS_REL_POS 22 | --max-exc-str-len MAX_EXC_STR_LEN 23 | --objects-details OBJECTS_DETAILS 24 | --ellipsis ELLIPSIS 25 | --before BEFORE 26 | --after AFTER 27 | --color-scheme {auto,common,nice,none,synthwave} 28 | --skip-files-except [SKIP_FILES_EXCEPT ...] 29 | --brief-files-except [BRIEF_FILES_EXCEPT ...] 30 | --no-globals 31 | -------------------------------------------------------------------------------- /tests/dumps/test_main.status0_code.txt: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /tests/dumps/test_print.print_cur_tb.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../test_print.py", line...omitted for tests only..., in test_print_cur_tb 3 | get_cur_tb(out) 4 | tb_reg = > 5 | out = _io.StringIO() 6 | File "...omitted for tests only.../test_print.py", line...omitted for tests only..., in get_cur_tb 7 | return print_cur_tb(fmt=Format(skip_files_except='test_print'), file_=out) 8 | out = _io.StringIO() 9 | x = 10 10 | -------------------------------------------------------------------------------- /tests/dumps/test_print.printing_exc_stderr.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in main 3 | return f(10) 4 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 5 | return n / 0 6 | n = 10 7 | builtins.ZeroDivisionError: division by zero 8 | -------------------------------------------------------------------------------- /tests/dumps/test_print.prints_exc_noncall.txt: -------------------------------------------------------------------------------- 1 | Traceback with variables (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in f 3 | return n / 0 4 | n = 10 5 | builtins.ZeroDivisionError: division by zero 6 | -------------------------------------------------------------------------------- /tests/dumps/test_tb_alias.create_and_rm_tb_alias.run_1_without_tb.txt: -------------------------------------------------------------------------------- 1 | Traceback (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | import tb.a 4 | ModuleNotFoundError: No module named 'tb' 5 | -------------------------------------------------------------------------------- /tests/dumps/test_tb_alias.create_and_rm_tb_alias.run_2_without_tb.txt: -------------------------------------------------------------------------------- 1 | Traceback (most recent call last): 2 | File "...omitted for tests only.../code.py", line...omitted for tests only..., in 3 | import tb.a 4 | ModuleNotFoundError: No module named 'tb' 5 | -------------------------------------------------------------------------------- /tests/test_default_global_hooks.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | 3 | from traceback_with_variables import fmt, format_exc 4 | 5 | from tests.test_utils import tb_reg 6 | 7 | 8 | def f(n = 1): 9 | money = '1000' 10 | password = 'qwerty' 11 | secret_word = 'please' 12 | monkey_species = 'gorilla' 13 | my_pAssWOrd_2 = 'qwerty' 14 | mySecretN = 5 15 | card_number = '1234 5678 1234 5678' 16 | 17 | if n > 0: 18 | return f(n - 1) 19 | 20 | raise ValueError('planned exception') 21 | 22 | 23 | def check(tb_reg, fmt): 24 | try: 25 | f() 26 | except Exception: # noqa 27 | tb_reg(format_exc(fmt=fmt)) 28 | 29 | 30 | def test_patterns_to_hide(tb_reg): 31 | check(tb_reg, fmt) 32 | -------------------------------------------------------------------------------- /tests/test_global_hooks.py: -------------------------------------------------------------------------------- 1 | import re 2 | import sys 3 | 4 | import pytest 5 | 6 | from tests.test_utils import run_code, run_code_in_jupyter, run_code_in_ipython_2 \ 7 | , dummies_code, activate_line, jupyter_activate_line, tb_reg 8 | 9 | 10 | _import = 'from traceback_with_variables import ' 11 | 12 | 13 | def test_activate_by_import(tmp_path, tb_reg): 14 | tb_reg(run_code(tmp_path, [], [_import + 'activate_in_python_by_import', dummies_code, 'f()'], [], True), 'python') 15 | tb_reg(run_code(tmp_path, [], [_import + 'activate_by_import', dummies_code, 'f()'], [], True), 'common') 16 | tb_reg(run_code(tmp_path, [], [_import + 'a', dummies_code, 'f()'], [], True), 'short_from') 17 | tb_reg(run_code(tmp_path, [], ['import traceback_with_variables.a', dummies_code, 'f()'], [], True), 'short_direct') 18 | 19 | 20 | def test_activate_in_ipython_by_import_error(tmp_path, tb_reg): 21 | (tmp_path / 'IPython.py').write_text('import nonexistent_module') 22 | tb_reg(run_code(tmp_path, [], [jupyter_activate_line], [], True)) 23 | 24 | 25 | def test_activate_in_ipython_by_import(tmp_path, tb_reg): 26 | if sys.platform == 'win32': 27 | return 28 | 29 | tb_reg(run_code_in_ipython_2(tmp_path, [_import + 'activate_in_ipython_by_import', dummies_code, 'f()']), 'ipython') 30 | tb_reg(run_code_in_ipython_2(tmp_path, [_import + 'activate_by_import', dummies_code, 'f()']), 'common') 31 | tb_reg(run_code_in_ipython_2(tmp_path, [_import + 'a', dummies_code, 'f()']), 'short_from') 32 | tb_reg(run_code_in_ipython_2(tmp_path, ['import traceback_with_variables.a', dummies_code, 'f()']), 'short_direct') 33 | 34 | 35 | def test_basics_in_jupyter(tmp_path, tb_reg): 36 | for subname, lines in [ 37 | ('simple', [jupyter_activate_line]), 38 | ('set fmt attr', [jupyter_activate_line + ', default_format as d', 'd.max_value_str_len = 100']), 39 | ('shorts', [_import + 'a, fmt', 'fmt.max_value_str_len = 100']), 40 | ][:1 if sys.platform == 'win32' else 2]: 41 | tb_reg(run_code_in_jupyter(tmp_path, lines + [dummies_code, 'f()']), subname) 42 | 43 | -------------------------------------------------------------------------------- /tests/test_module_alias.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | import pytest 4 | 5 | import traceback_with_variables as twv 6 | from traceback_with_variables.module_alias import create_alias, rm_alias, module_name_to_path, Path 7 | 8 | 9 | ROOT_PATH = Path(twv.__file__).parent.parent 10 | TWV = 'traceback_with_variables' 11 | OS = 'os' 12 | ALIAS = 'alias' 13 | 14 | 15 | def test_module_name_to_path(): 16 | assert module_name_to_path(OS) == Path(os.__file__) 17 | assert module_name_to_path(TWV) == ROOT_PATH / TWV 18 | with pytest.raises(ModuleNotFoundError): 19 | module_name_to_path('nonexistant_module') 20 | 21 | 22 | def test_create_and_rm_alias(): 23 | # problems before we have the alias 24 | 25 | with pytest.raises(ValueError) as e: 26 | create_alias('', TWV) 27 | assert str(e.value) == 'the alias must be non-empty' 28 | 29 | with pytest.raises(ValueError) as e: 30 | create_alias('bad name', TWV) 31 | assert str(e.value) == 'the alias must have only ascii lowecases, digits and underscores' 32 | 33 | with pytest.raises(ModuleNotFoundError): 34 | create_alias(ALIAS, 'nonexistant_module') 35 | 36 | with pytest.raises(ValueError) as e: 37 | create_alias(OS, TWV) 38 | assert str(e.value) == 'a module with the alias name already exists' 39 | 40 | with pytest.raises(ModuleNotFoundError): 41 | rm_alias(ALIAS) 42 | 43 | with pytest.raises(ValueError) as e: 44 | rm_alias(TWV) 45 | 46 | assert str(e.value) == 'the module is not an alias' 47 | 48 | create_alias(ALIAS, TWV) 49 | 50 | # problems once we have the alias 51 | 52 | with pytest.raises(ValueError) as e: 53 | create_alias(ALIAS, TWV) 54 | assert str(e.value) == 'a module with the alias name already exists' 55 | 56 | with pytest.raises(ValueError) as e: 57 | create_alias(ALIAS, OS) 58 | assert str(e.value) == 'a module with the alias name already exists' 59 | 60 | rm_alias(ALIAS) 61 | 62 | # problems after we rm the alias 63 | 64 | with pytest.raises(ModuleNotFoundError): 65 | rm_alias(ALIAS) 66 | 67 | # rare case of garbage in the lib dir 68 | 69 | os.symlink(str(ROOT_PATH / 'nonexistant'), str(ROOT_PATH / ALIAS)) 70 | with pytest.raises(ValueError) as e: 71 | create_alias(ALIAS, TWV) 72 | assert str(e.value) == 'the needed file system location already occupied' 73 | os.remove(str(ROOT_PATH / ALIAS)) 74 | -------------------------------------------------------------------------------- /tests/test_tb_alias.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | 3 | from traceback_with_variables.tb_alias import create_tb_alias, rm_tb_alias 4 | 5 | from tests.test_utils import run_code, dummies_code, tb_reg 6 | 7 | 8 | def test_create_and_rm_tb_alias(tmp_path, tb_reg): 9 | tb_reg(run_code(tmp_path, [], ['import tb.a', dummies_code, 'f()'], [], True), 'run 1 without tb') 10 | 11 | create_tb_alias() 12 | tb_reg(run_code(tmp_path, [], ['import tb.a', dummies_code, 'f()'], [], True), 'run with tb') 13 | 14 | rm_tb_alias() 15 | tb_reg(run_code(tmp_path, [], ['import tb.a', dummies_code, 'f()'], [], True), 'run 2 without tb') 16 | -------------------------------------------------------------------------------- /traceback_with_variables/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Python Traceback (Error Message) Printing Variables 3 | 4 | README.md and examples: https://pypi.org/project/traceback-with-variables 5 | """ 6 | 7 | from .color import ( # noqa: F401 8 | ColorScheme, 9 | ColorSchemes, 10 | supports_ansi, 11 | ) 12 | from .core import ( # noqa: F401 13 | Format, 14 | default_format, 15 | format_cur_tb, 16 | format_exc, 17 | hide, 18 | iter_cur_tb_lines, 19 | iter_exc_lines, 20 | show, 21 | skip, 22 | ) 23 | from .global_hooks import ( # noqa: F401 24 | global_print_exc, 25 | global_print_exc_in_ipython, 26 | is_ipython_global, 27 | ) 28 | from .print import ( # noqa: F401 29 | LoggerAsFile, 30 | print_cur_tb, 31 | print_exc, 32 | printing_exc, 33 | prints_exc, 34 | ) 35 | 36 | 37 | __version__ = '2.2.0' 38 | 39 | # shorter names for swifter interactive usage 40 | fmt = default_format # noqa 41 | -------------------------------------------------------------------------------- /traceback_with_variables/a.py: -------------------------------------------------------------------------------- 1 | """ 2 | For the simplest usage possible. Just import it. Handles all environments. 3 | Same as traceback_with_variables.activate_by_import but the shortest possible 4 | name to save time typing. 5 | """ 6 | 7 | from traceback_with_variables import activate_by_import # noqa 8 | -------------------------------------------------------------------------------- /traceback_with_variables/activate_by_import.py: -------------------------------------------------------------------------------- 1 | """ 2 | For the simplest usage possible. Just import it. Handles all environments. 3 | """ 4 | 5 | from traceback_with_variables.default_global_hooks import default_global_print_exc_in_all 6 | 7 | 8 | default_global_print_exc_in_all() 9 | -------------------------------------------------------------------------------- /traceback_with_variables/activate_in_ipython_by_import.py: -------------------------------------------------------------------------------- 1 | """ 2 | For the simplest usage possible. Jupyter or IPython. Just import it 3 | """ 4 | 5 | from traceback_with_variables.default_global_hooks import default_global_print_exc_in_ipython 6 | 7 | 8 | default_global_print_exc_in_ipython() 9 | -------------------------------------------------------------------------------- /traceback_with_variables/activate_in_python_by_import.py: -------------------------------------------------------------------------------- 1 | """ 2 | For the simplest usage possible. Just import it. For 'python3' command usage, not for Jupyter or IPython 3 | """ 4 | 5 | from traceback_with_variables.default_global_hooks import default_global_print_exc 6 | 7 | 8 | default_global_print_exc() 9 | -------------------------------------------------------------------------------- /traceback_with_variables/color.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | from typing import TextIO 4 | 5 | 6 | def supports_ansi(file_: TextIO) -> bool: 7 | try: 8 | import winreg 9 | key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, 'Console') 10 | win_reg_ok = winreg.QueryValueEx(key, 'VirtualTerminalLevel')[0] == 1 11 | except (ModuleNotFoundError, FileNotFoundError): 12 | win_reg_ok = False 13 | 14 | return hasattr(file_, 'isatty') and file_.isatty() and ( 15 | sys.platform != 'win32' 16 | or win_reg_ok 17 | or 'WT_SESSION' in os.environ 18 | or os.environ.get('TERM_PROGRAM', '') == 'vscode' 19 | or 'ANSICON' in os.environ 20 | ) 21 | 22 | 23 | def to_ansi(str_: str) -> str: 24 | return f'\033[{str_}m' if str_ else '' 25 | 26 | 27 | class ColorScheme: 28 | def __init__( 29 | self, 30 | common: str, 31 | file_: str, 32 | line_num: str, 33 | func_name: str, 34 | func_snippet: str, 35 | name: str, 36 | value: str, 37 | exc_class: str, 38 | exc_text: str, 39 | end: str, 40 | ): 41 | self.c = to_ansi(common) # used by internals, needs shortest names 42 | self.f = to_ansi(file_) 43 | self.ln = to_ansi(line_num) 44 | self.fn = to_ansi(func_name) 45 | self.fs = to_ansi(func_snippet) 46 | self.n = to_ansi(name) 47 | self.v = to_ansi(value) 48 | self.ec = to_ansi(exc_class) 49 | self.et = to_ansi(exc_text) 50 | self.e = to_ansi(end) 51 | 52 | self.c_ = self.e + self.c 53 | self.f_ = self.e + self.f 54 | self.ln_ = self.e + self.ln 55 | self.fn_ = self.e + self.fn 56 | self.fs_ = self.e + self.fs 57 | self.n_ = self.e + self.n 58 | self.v_ = self.e + self.v 59 | self.ec_ = self.e + self.ec 60 | self.et_ = self.e + self.et 61 | 62 | 63 | class ColorSchemes: 64 | auto = None 65 | none = ColorScheme('', '', '', '', '', '', '', '', '', '') 66 | common = ColorScheme('36', '36;1', '36;1', '36;1', '35', '32;1', '', '31', '91', '0') 67 | synthwave = ColorScheme('38;2;255;153;255', '38;2;255;153;0', '38;2;255;153;0', '38;2;255;153;0', 68 | '38;2;50;100;255', '38;2;254;0;254', '38;2;153;204;255', '38;2;255;0;53', 69 | '38;2;255;0;123', '0') 70 | nice = ColorScheme('38;2;201;183;183', '38;2;216;182;113', '38;2;222;200;159', '38;2;216;182;113', 71 | '38;2;111;178;144', '38;2;92;127;146', '38;2;170;130;110', '38;2;233;103;109', 72 | '38;2;193;103;109', '0') 73 | -------------------------------------------------------------------------------- /traceback_with_variables/default_global_hooks.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables.color import ColorSchemes 2 | from traceback_with_variables.core import skip 3 | from traceback_with_variables.global_hooks import ( 4 | global_print_exc_in_ipython, 5 | global_print_exc, 6 | is_ipython_global, 7 | in_ipython, 8 | ) 9 | from traceback_with_variables import default_format 10 | 11 | 12 | def default_global_print_exc(): 13 | default_format.custom_var_printers += [ 14 | ((lambda n, t, fn, is_global: is_global), skip), # noqa: U100 15 | ] 16 | global_print_exc() 17 | 18 | 19 | def default_global_print_exc_in_ipython(): 20 | default_format.custom_var_printers += [ 21 | (is_ipython_global, skip), 22 | ] 23 | default_format.color_scheme = ColorSchemes.common 24 | global_print_exc_in_ipython() 25 | 26 | 27 | def default_global_print_exc_in_all(): 28 | (default_global_print_exc_in_ipython if in_ipython() else default_global_print_exc)() 29 | -------------------------------------------------------------------------------- /traceback_with_variables/global_hooks.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from typing import Optional, Type 3 | 4 | from traceback_with_variables.print import print_exc, Format 5 | 6 | 7 | def global_print_exc(fmt: Optional[Format] = None) -> None: 8 | sys.excepthook = lambda e_cls, e, tb: print_exc(e=e, fmt=fmt) # noqa: U100 9 | 10 | 11 | def global_print_exc_in_ipython(fmt: Optional[Format] = None) -> None: 12 | try: 13 | import IPython 14 | except ModuleNotFoundError: 15 | raise ValueError("IPython not found") 16 | 17 | IPython.core.interactiveshell.InteractiveShell.showtraceback = \ 18 | lambda self, *args, **kwargs: print_exc(num_skipped_frames=1, fmt=fmt) # noqa: U100 19 | 20 | 21 | def in_ipython() -> bool: 22 | try: 23 | __IPYTHON__ # noqa 24 | return True 25 | except NameError: 26 | return False 27 | 28 | 29 | def is_ipython_global(name: str, type_: Type, filename: str, is_global: bool) -> bool: # noqa: U100 30 | return is_global and ( 31 | name in ['In', 'Out', 'get_ipython', 'exit', 'quit'] 32 | or name.startswith('_') 33 | ) 34 | -------------------------------------------------------------------------------- /traceback_with_variables/module_alias.py: -------------------------------------------------------------------------------- 1 | """Potentially evil magic to speed up the interactive commands""" 2 | 3 | import importlib 4 | import os 5 | import string 6 | from pathlib import Path 7 | 8 | 9 | VALID_CHARS = set(string.ascii_lowercase + string.digits + '_') 10 | 11 | 12 | def module_name_to_path(name: str) -> Path: 13 | spec = importlib.util.find_spec(name) 14 | if spec is None: 15 | raise ModuleNotFoundError(name) 16 | path = Path(spec.origin) 17 | return path.parent if path.name == '__init__.py' else path 18 | 19 | 20 | def module_exists(name: str) -> bool: 21 | try: 22 | module_name_to_path(name) 23 | except ModuleNotFoundError: 24 | return False 25 | return True 26 | 27 | 28 | def create_alias(alias: str, module_name: str) -> None: 29 | if not alias: 30 | raise ValueError('the alias must be non-empty') 31 | if any(c not in VALID_CHARS for c in alias): 32 | raise ValueError('the alias must have only ascii lowecases, digits and underscores') 33 | if module_exists(alias): 34 | raise ValueError('a module with the alias name already exists') 35 | module_path = module_name_to_path(module_name) 36 | 37 | try: 38 | os.symlink(str(module_path), str(module_path.parent / alias)) 39 | except FileExistsError: 40 | raise ValueError('the needed file system location already occupied') 41 | 42 | 43 | def rm_alias(alias: str) -> None: 44 | module_path = module_name_to_path(alias) 45 | if not module_path.is_symlink(): 46 | raise ValueError('the module is not an alias') 47 | os.remove(str(module_path)) 48 | -------------------------------------------------------------------------------- /traceback_with_variables/tb_alias.py: -------------------------------------------------------------------------------- 1 | from traceback_with_variables.module_alias import create_alias, rm_alias 2 | 3 | 4 | def create_tb_alias() -> None: 5 | create_alias(alias='tb', module_name='traceback_with_variables') 6 | 7 | 8 | def rm_tb_alias() -> None: 9 | rm_alias(alias='tb') 10 | --------------------------------------------------------------------------------