this repo has no description
at trunk 1392 lines 19 kB view raw
1#!/usr/bin/env python3 2# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) 3# $builtin-init-module$ 4 5 6# These values are injected by our boot process. flake8 has no knowledge about 7# their definitions and will complain without these circular assignments. 8_Unbound = _Unbound # noqa: F821 9 10 11def _ContextVar_guard(obj): 12 _builtin() 13 14 15def _Token_guard(obj): 16 _builtin() 17 18 19def _builtin(): 20 """This function acts as a marker to `freeze_modules.py` it should never 21 actually be called.""" 22 _unimplemented() 23 24 25def _address(c): 26 _builtin() 27 28 29def _anyset_check(obj): 30 _builtin() 31 32 33def _async_generator_finalizer(obj): 34 _builtin() 35 36 37def _async_generator_guard(obj): 38 _builtin() 39 40 41def _async_generator_op_iter_get_state(obj): 42 _builtin() 43 44 45def _base_exception_cause(self): 46 _builtin() 47 48 49def _base_exception_context(self): 50 _builtin() 51 52 53def _base_exception_set_cause(self, value): 54 _builtin() 55 56 57def _base_exception_set_context(self, value): 58 _builtin() 59 60 61def _base_exception_set_traceback(self, value): 62 _builtin() 63 64 65def _base_exception_traceback(self): 66 _builtin() 67 68 69def _bool_check(self): 70 "$intrinsic$" 71 _builtin() 72 73 74def _bool_guard(self): 75 "$intrinsic$" 76 _builtin() 77 78 79def _bound_method(fn, owner): 80 _builtin() 81 82 83def _bound_method_guard(obj): 84 _builtin() 85 86 87def _builtin_type(name): 88 """Returns the builtin type with name `name`. This even works before the 89 type is initialized via a `class` statement and is intended to be used when 90 a builtin type definition requires to reference itself.""" 91 _builtin() 92 93 94def _byte_guard(obj): 95 _builtin() 96 97 98def _bytearray_append(obj, item): 99 _builtin() 100 101 102def _bytearray_check(obj): 103 "$intrinsic$" 104 _builtin() 105 106 107def _bytearray_clear(obj): 108 _builtin() 109 110 111def _bytearray_contains(obj, key): 112 _builtin() 113 114 115def _bytearray_contains_byteslike(obj, key): 116 _builtin() 117 118 119def _bytearray_copy(obj): 120 _builtin() 121 122 123def _bytearray_delitem(self, key): 124 _builtin() 125 126 127def _bytearray_delslice(self, start, stop, step): 128 _builtin() 129 130 131def _bytearray_getitem(self, key): 132 _builtin() 133 134 135def _bytearray_getslice(self, start, stop, step): 136 _builtin() 137 138 139def _bytearray_guard(obj): 140 "$intrinsic$" 141 _builtin() 142 143 144def _bytearray_join(self, iterable): 145 _builtin() 146 147 148def _bytearray_len(self): 149 "$intrinsic$" 150 _builtin() 151 152 153def _bytearray_ljust(self, width, fillbyte): 154 _builtin() 155 156 157def _bytearray_rjust(self, width, fillbyte): 158 _builtin() 159 160 161def _bytearray_setitem(self, key, value): 162 _builtin() 163 164 165def _bytearray_setslice(self, start, stop, step, value): 166 _builtin() 167 168 169def _bytes_check(obj): 170 "$intrinsic$" 171 _builtin() 172 173 174def _bytes_contains(obj, key): 175 _builtin() 176 177 178def _bytes_decode(obj, encoding): 179 _builtin() 180 181 182def _bytes_decode_ascii(obj): 183 _builtin() 184 185 186def _bytes_decode_utf_8(obj): 187 _builtin() 188 189 190def _bytes_from_bytes(cls, value): 191 _builtin() 192 193 194def _bytes_from_ints(source): 195 _builtin() 196 197 198def _bytes_getitem(self, index): 199 _builtin() 200 201 202def _bytes_getslice(self, start, stop, step): 203 _builtin() 204 205 206def _bytes_guard(obj): 207 "$intrinsic$" 208 _builtin() 209 210 211def _bytes_join(self, iterable): 212 _builtin() 213 214 215def _bytes_len(self): 216 "$intrinsic$" 217 _builtin() 218 219 220def _bytes_ljust(self, width, fillbyte): 221 _builtin() 222 223 224def _bytes_maketrans(frm, to): 225 _builtin() 226 227 228def _bytes_repeat(self, count): 229 _builtin() 230 231 232def _bytes_replace(self, old, new, count): 233 _builtin() 234 235 236def _bytes_split(self, sep, maxsplit): 237 _builtin() 238 239 240def _bytes_split_whitespace(self, maxsplit): 241 _builtin() 242 243 244def _byteslike_check(obj): 245 "$intrinsic$" 246 _builtin() 247 248 249def _byteslike_compare_digest(a, b): 250 _builtin() 251 252 253def _byteslike_count(self, sub, start, end): 254 _builtin() 255 256 257def _byteslike_endswith(self, suffix, start, end): 258 _builtin() 259 260 261def _byteslike_find_byteslike(self, sub, start, end): 262 _builtin() 263 264 265def _byteslike_find_int(self, sub, start, end): 266 _builtin() 267 268 269def _byteslike_guard(obj): 270 "$intrinsic$" 271 _builtin() 272 273 274def _byteslike_rfind_byteslike(self, sub, start, end): 275 _builtin() 276 277 278def _byteslike_rfind_int(self, sub, start, end): 279 _builtin() 280 281 282def _byteslike_startswith(self, prefix, start, end): 283 _builtin() 284 285 286def _caller_function(): 287 _builtin() 288 289 290def _caller_locals(): 291 _builtin() 292 293 294def _classmethod(function): 295 _builtin() 296 297 298def _classmethod_isabstract(self): 299 _builtin() 300 301 302def _code_check(obj): 303 _builtin() 304 305 306def _code_guard(c): 307 _builtin() 308 309 310def _code_new( 311 cls, 312 argcount, 313 posonlyargcount, 314 kwonlyargcount, 315 nlocals, 316 stacksize, 317 flags, 318 code, 319 consts, 320 names, 321 varnames, 322 filename, 323 name, 324 firstlineno, 325 lnotab, 326 freevars, 327 cellvars, 328): 329 _builtin() 330 331 332def _code_set_filename(code, filename): 333 _builtin() 334 335 336def _complex_check(obj): 337 "$intrinsic$" 338 _builtin() 339 340 341def _complex_checkexact(obj): 342 _builtin() 343 344 345def _complex_imag(c): 346 _builtin() 347 348 349def _complex_new(cls, imag, real): 350 _builtin() 351 352 353def _complex_real(c): 354 _builtin() 355 356 357def _compute_mro(type): 358 _builtin() 359 360 361def _debug_dump(obj): 362 _builtin() 363 364 365def _deque_guard(obj): 366 "$intrinsic$" 367 _builtin() 368 369 370def _dict_check(obj): 371 "$intrinsic$" 372 _builtin() 373 374 375def _dict_check_exact(obj): 376 "$intrinsic$" 377 _builtin() 378 379 380# TODO(T56301601): Move this into a type-specific file. 381def _dict_get(self, key, default=None): 382 _builtin() 383 384 385def _dict_guard(obj): 386 "$intrinsic$" 387 _builtin() 388 389 390def _dict_items_guard(self): 391 _builtin() 392 393 394def _dict_keys_guard(self): 395 _builtin() 396 397 398def _dict_len(self): 399 "$intrinsic$" 400 _builtin() 401 402 403# TODO(T56301601): Move this into a type-specific file. 404def _dict_setitem(self, key, value): 405 _builtin() 406 407 408# TODO(T56301601): Move this into a type-specific file. 409def _dict_update(self, other, kwargs): 410 _builtin() 411 412 413def _divmod(number, divisor): 414 _builtin() 415 416 417def _exec(code, module, implicit_globals): 418 _builtin() 419 420 421def _float_check(obj): 422 "$intrinsic$" 423 _builtin() 424 425 426def _float_check_exact(obj): 427 "$intrinsic$" 428 _builtin() 429 430 431def _float_divmod(number, divisor): 432 _builtin() 433 434 435def _float_format( 436 value, format_code, precision, skip_sign, add_dot_0, use_alt_formatting 437): 438 _builtin() 439 440 441def _float_guard(obj): 442 "$intrinsic$" 443 _builtin() 444 445 446def _float_new_from_byteslike(cls, obj): 447 _builtin() 448 449 450def _float_new_from_float(cls, obj): 451 _builtin() 452 453 454def _float_new_from_str(cls, obj): 455 _builtin() 456 457 458def _float_signbit(value): 459 _builtin() 460 461 462def _frozenset_check(obj): 463 "$intrinsic$" 464 _builtin() 465 466 467def _frozenset_guard(obj): 468 "$intrinsic$" 469 _builtin() 470 471 472def _function_annotations(obj): 473 _builtin() 474 475 476def _function_closure(obj): 477 _builtin() 478 479 480def _function_defaults(obj): 481 _builtin() 482 483 484def _function_globals(obj): 485 _builtin() 486 487 488def _function_guard(obj): 489 "$intrinsic$" 490 _builtin() 491 492 493def _function_kwdefaults(obj): 494 _builtin() 495 496 497def _function_lineno(function, pc): 498 _builtin() 499 500 501def _function_new(self, code, mod, name, defaults, closure): 502 _builtin() 503 504 505def _function_set_annotations(obj, annotations): 506 _builtin() 507 508 509def _function_set_defaults(obj, defaults): 510 _builtin() 511 512 513def _function_set_kwdefaults(obj, kwdefaults): 514 _builtin() 515 516 517def _gc(): 518 _builtin() 519 520 521def _get_asyncgen_hooks(): 522 _builtin() 523 524 525def _get_member_byte(addr): 526 _builtin() 527 528 529def _get_member_char(addr): 530 _builtin() 531 532 533def _get_member_double(addr): 534 _builtin() 535 536 537def _get_member_float(addr): 538 _builtin() 539 540 541def _get_member_int(addr): 542 _builtin() 543 544 545def _get_member_long(addr): 546 _builtin() 547 548 549def _get_member_pyobject(addr, name): 550 _builtin() 551 552 553def _get_member_short(addr): 554 _builtin() 555 556 557def _get_member_string(addr): 558 _builtin() 559 560 561def _get_member_ubyte(addr): 562 _builtin() 563 564 565def _get_member_uint(addr): 566 _builtin() 567 568 569def _get_member_ulong(addr): 570 _builtin() 571 572 573def _get_member_ushort(addr): 574 _builtin() 575 576 577def _heap_dump(filename): 578 _builtin() 579 580 581def _instance_dunder_dict_set(obj, dict): 582 _builtin() 583 584 585def _instance_delattr(obj, name): 586 _builtin() 587 588 589def _instance_getattr(obj, name): 590 _builtin() 591 592 593def _instance_guard(obj): 594 _builtin() 595 596 597def _instance_overflow_dict(obj): 598 _builtin() 599 600 601def _instance_setattr(obj, name, value): 602 _builtin() 603 604 605def _instancemethod_func(obj): 606 _builtin() 607 608 609def _int_check(obj): 610 "$intrinsic$" 611 _builtin() 612 613 614def _int_check_exact(obj): 615 "$intrinsic$" 616 _builtin() 617 618 619def _int_ctor(cls, x=_Unbound, base=_Unbound): 620 _builtin() 621 622 623def _int_ctor_obj(cls, x): 624 _builtin() 625 626 627def _int_from_bytes(cls, bytes, byteorder_big, signed): 628 _builtin() 629 630 631def _int_guard(obj): 632 "$intrinsic$" 633 _builtin() 634 635 636def _int_new_from_byteslike(cls, x, base): 637 _builtin() 638 639 640def _int_new_from_int(cls, value): 641 _builtin() 642 643 644def _int_new_from_str(cls, x, base): 645 _builtin() 646 647 648def _jit(func): 649 """Compile the function's body to native code. Return the function. Useful 650 as a decorator: 651 @_jit 652 def foo: 653 pass 654 """ 655 _builtin() 656 657 658def _jit_fromlist(funcs): 659 """Compile a list of function objects to native code.""" 660 for func in funcs: 661 _jit(func) 662 663 664def _jit_fromtype(type): 665 _type_guard(type) 666 for item in type.__dict__.values(): 667 _jit(item) 668 669 670def _jit_iscompiled(func): 671 """Return True if the given function is compiled and False otherwise.""" 672 _builtin() 673 674 675def _list_append(self, item): 676 "$intrinsic$" 677 _builtin() 678 679 680def _list_check(obj): 681 "$intrinsic$" 682 _builtin() 683 684 685def _list_check_exact(obj): 686 "$intrinsic$" 687 _builtin() 688 689 690def _list_ctor(cls, iterable=()): 691 _builtin() 692 693 694def _list_delitem(self, key): 695 _builtin() 696 697 698def _list_delslice(self, start, stop, step): 699 _builtin() 700 701 702def _list_extend(self, other): 703 _builtin() 704 705 706def _list_getitem(self, key): 707 "$intrinsic$" 708 _builtin() 709 710 711def _list_getslice(self, start, stop, step): 712 _builtin() 713 714 715def _list_guard(obj): 716 "$intrinsic$" 717 _builtin() 718 719 720def _list_len(self): 721 "$intrinsic$" 722 _builtin() 723 724 725def _list_new(size, fill=None): 726 _builtin() 727 728 729def _list_setitem(self, key, value): 730 "$intrinsic$" 731 _builtin() 732 733 734def _list_setslice(self, start, stop, step, value): 735 _builtin() 736 737 738def _list_sort(list): 739 _builtin() 740 741 742def _list_sort_by_key(list): 743 _builtin() 744 745 746def _list_swap(list, i, j): 747 _builtin() 748 749 750def _lt(a, b): 751 "Same as a < b." 752 return a < b 753 754 755def _lt_key(obj, other): 756 return _tuple_getitem(obj, 0) < _tuple_getitem(other, 0) 757 758 759def _mappingproxy_guard(obj): 760 _builtin() 761 762 763def _mappingproxy_mapping(obj): 764 _builtin() 765 766 767def _mappingproxy_set_mapping(obj, mapping): 768 _builtin() 769 770 771def _memoryview_check(obj): 772 _builtin() 773 774 775def _memoryview_getitem(obj, key): 776 _builtin() 777 778 779def _memoryview_getslice(self, start, stop, step): 780 _builtin() 781 782 783def _memoryview_guard(obj): 784 "$intrinsic$" 785 _builtin() 786 787 788def _memoryview_itemsize(obj): 789 _builtin() 790 791 792def _memoryview_nbytes(self): 793 _builtin() 794 795 796def _memoryview_setitem(self, key, value): 797 _builtin() 798 799 800def _memoryview_setslice(self, start, stop, step, value): 801 _builtin() 802 803 804def _memoryview_start(self): 805 _builtin() 806 807 808def _mmap_check(obj): 809 _builtin() 810 811 812def _module_dir(module): 813 _builtin() 814 815 816def _module_proxy(module): 817 _builtin() 818 819 820def _module_proxy_check(obj): 821 _builtin() 822 823 824def _module_proxy_guard(module): 825 _builtin() 826 827 828def _module_proxy_keys(self): 829 _builtin() 830 831 832def _module_proxy_setitem(self, key, value): 833 _builtin() 834 835 836def _module_proxy_values(self): 837 _builtin() 838 839 840def _iter(self): 841 _builtin() 842 843 844def _object_class_set(obj, name): 845 _builtin() 846 847 848def _object_keys(self): 849 _builtin() 850 851 852def _object_type_getattr(obj, name): 853 """Looks up the named attribute on the object's type, resolving descriptors. 854 Behaves like _PyObject_LookupSpecial.""" 855 _builtin() 856 857 858def _object_type_hasattr(obj, name): 859 _builtin() 860 861 862def _os_write(fd, buf): 863 _builtin() 864 865 866def _os_error_subclass_from_errno(errno): 867 _builtin() 868 869 870def _profiler_install(new_thread_func, call_func, return_func): 871 _builtin() 872 873 874def _profiler_exclude(callable): 875 """Call `callable` and disable opcode counting in the current thread for the 876 duration of the call.""" 877 _builtin() 878 879 880def _property(fget=None, fset=None, fdel=None, doc=None): 881 """Has the same effect as property(), but can be used for bootstrapping.""" 882 _builtin() 883 884 885def _property_isabstract(self): 886 _builtin() 887 888 889def _pyobject_offset(instance, offset): 890 _builtin() 891 892 893def _range_check(obj): 894 "$intrinsic$" 895 _builtin() 896 897 898def _range_ctor_start_stop(cls, start, stop): 899 _builtin() 900 901 902def _range_ctor_start_stop_step(cls, start, stop, step): 903 _builtin() 904 905 906def _range_ctor_stop(cls, stop): 907 _builtin() 908 909 910def _range_guard(obj): 911 "$intrinsic$" 912 _builtin() 913 914 915def _range_len(self): 916 _builtin() 917 918 919def _readline(prompt): 920 _builtin() 921 922 923def _repr_enter(obj): 924 _builtin() 925 926 927def _repr_leave(obj): 928 _builtin() 929 930 931def _seq_index(obj): 932 "$intrinsic$" 933 _builtin() 934 935 936def _seq_iterable(obj): 937 "$intrinsic$" 938 _builtin() 939 940 941def _seq_set_index(obj, index): 942 "$intrinsic$" 943 _builtin() 944 945 946def _seq_set_iterable(obj, iterable): 947 "$intrinsic$" 948 _builtin() 949 950 951def _set_check(obj): 952 "$intrinsic$" 953 _builtin() 954 955 956def _set_ctor(cls, iterable=()): 957 _builtin() 958 959 960def _set_function_flag_iterable_coroutine(code): 961 _builtin() 962 963 964def _set_guard(obj): 965 "$intrinsic$" 966 _builtin() 967 968 969def _set_len(self): 970 "$intrinsic$" 971 _builtin() 972 973 974def _set_member_double(addr, value): 975 _builtin() 976 977 978def _set_member_float(addr, value): 979 _builtin() 980 981 982def _set_member_integral(addr, value, num_bytes): 983 _builtin() 984 985 986def _set_member_integral_unsigned(addr, value, num_bytes): 987 _builtin() 988 989 990def _set_member_pyobject(addr, value): 991 _builtin() 992 993 994def _slice_check(obj): 995 "$intrinsic$" 996 _builtin() 997 998 999def _slice_guard(obj): 1000 "$intrinsic$" 1001 _builtin() 1002 1003 1004def _slice_start(start, step, length): 1005 _builtin() 1006 1007 1008def _staticmethod(func): 1009 _builtin() 1010 1011 1012def _slice_start_long(start, step, length): 1013 _builtin() 1014 1015 1016def _slice_step(step): 1017 _builtin() 1018 1019 1020def _slice_step_long(step): 1021 _builtin() 1022 1023 1024def _slice_stop(stop, step, length): 1025 _builtin() 1026 1027 1028def _slice_stop_long(stop, step, length): 1029 _builtin() 1030 1031 1032def _staticmethod_isabstract(self): 1033 _builtin() 1034 1035 1036def _stop_iteration_ctor(cls, *args): 1037 _builtin() 1038 1039 1040def _str_array_clear(self): 1041 _builtin() 1042 1043 1044def _str_array_ctor(cls, source=_Unbound): 1045 _builtin() 1046 1047 1048def _str_array_iadd(self, other): 1049 _builtin() 1050 1051 1052def _str_center(self, width, fillchar): 1053 _builtin() 1054 1055 1056def _str_check(obj): 1057 "$intrinsic$" 1058 _builtin() 1059 1060 1061def _str_check_exact(obj): 1062 "$intrinsic$" 1063 _builtin() 1064 1065 1066def _str_compare_digest(a, b): 1067 _builtin() 1068 1069 1070def _str_count(self, sub, start, end): 1071 _builtin() 1072 1073 1074def _str_ctor(cls, obj=_Unbound, encoding=_Unbound, errors=_Unbound): 1075 "$intrinsic$" 1076 _builtin() 1077 1078 1079def _str_ctor_obj(cls, obj): 1080 _builtin() 1081 1082 1083def _str_encode(self, encoding): 1084 _builtin() 1085 1086 1087def _str_encode_ascii(self): 1088 _builtin() 1089 1090 1091def _str_endswith(self, suffix, start, end): 1092 _builtin() 1093 1094 1095def _str_getitem(self, key): 1096 _builtin() 1097 1098 1099def _str_getslice(self, start, stop, step): 1100 _builtin() 1101 1102 1103def _str_guard(obj): 1104 "$intrinsic$" 1105 _builtin() 1106 1107 1108def _str_ischr(obj): 1109 _builtin() 1110 1111 1112def _str_join(sep, iterable): 1113 _builtin() 1114 1115 1116def _str_ljust(self, width, fillchar): 1117 _builtin() 1118 1119 1120def _str_escape_non_ascii(s): 1121 _builtin() 1122 1123 1124def _str_find(self, sub, start, end): 1125 _builtin() 1126 1127 1128def _str_from_str(cls, value): 1129 _builtin() 1130 1131 1132def _str_len(self): 1133 "$intrinsic$" 1134 _builtin() 1135 1136 1137def _str_mod_fast_path(self, other): 1138 _builtin() 1139 1140 1141def _str_partition(self, sep): 1142 _builtin() 1143 1144 1145def _str_replace(self, old, newstr, count): 1146 _builtin() 1147 1148 1149def _str_rfind(self, sub, start, end): 1150 _builtin() 1151 1152 1153def _str_rjust(self, width, fillchar): 1154 _builtin() 1155 1156 1157def _str_rpartition(self, sep): 1158 _builtin() 1159 1160 1161def _str_split(self, sep, maxsplit): 1162 _builtin() 1163 1164 1165def _str_splitlines(self, keepends): 1166 _builtin() 1167 1168 1169def _str_startswith(self, prefix, start, end): 1170 _builtin() 1171 1172 1173def _str_translate(obj, table): 1174 _builtin() 1175 1176 1177def _structseq_getitem(structseq, index): 1178 _builtin() 1179 1180 1181def _structseq_new_type(name, field_names, is_heaptype=True, num_in_sequence=_Unbound): 1182 _builtin() 1183 1184 1185def _structseq_setitem(structseq, index, value): 1186 _builtin() 1187 1188 1189def _super(cls): 1190 _builtin() 1191 1192 1193def _super_ctor(cls, type=_Unbound, type_or_obj=_Unbound): 1194 _builtin() 1195 1196 1197def _traceback_frame_get(self): 1198 _builtin() 1199 1200 1201def _traceback_lineno_get(self): 1202 _builtin() 1203 1204 1205def _traceback_next_get(self): 1206 _builtin() 1207 1208 1209def _traceback_next_set(self, new_next): 1210 _builtin() 1211 1212 1213def _tuple_check(obj): 1214 "$intrinsic$" 1215 _builtin() 1216 1217 1218def _tuple_check_exact(obj): 1219 "$intrinsic$" 1220 _builtin() 1221 1222 1223def _tuple_getitem(self, index): 1224 "$intrinsic$" 1225 _builtin() 1226 1227 1228def _tuple_getslice(self, start, stop, step): 1229 _builtin() 1230 1231 1232def _tuple_guard(obj): 1233 "$intrinsic$" 1234 _builtin() 1235 1236 1237def _tuple_len(self): 1238 "$intrinsic$" 1239 _builtin() 1240 1241 1242def _tuple_new(cls, old_tuple): 1243 _builtin() 1244 1245 1246def _type(obj): 1247 "$intrinsic$" 1248 _builtin() 1249 1250 1251def _type_ctor(cls, obj): 1252 _builtin() 1253 1254 1255def _type_abstractmethods_del(self): 1256 _builtin() 1257 1258 1259def _type_abstractmethods_get(self): 1260 _builtin() 1261 1262 1263def _type_abstractmethods_set(self, value): 1264 _builtin() 1265 1266 1267def _type_bases_del(self): 1268 _builtin() 1269 1270 1271def _type_bases_get(self): 1272 _builtin() 1273 1274 1275def _type_bases_set(self, value): 1276 _builtin() 1277 1278 1279def _type_check(obj): 1280 "$intrinsic$" 1281 _builtin() 1282 1283 1284def _type_check_exact(obj): 1285 "$intrinsic$" 1286 _builtin() 1287 1288 1289def _type_dunder_call(self, *args, **kwargs): 1290 _builtin() 1291 1292 1293def _type_guard(obj): 1294 "$intrinsic$" 1295 _builtin() 1296 1297 1298def _type_issubclass(subclass, superclass): 1299 "$intrinsic$" 1300 _builtin() 1301 1302 1303def _type_module_get(self): 1304 _builtin() 1305 1306 1307def _type_module_set(self, value): 1308 _builtin() 1309 1310 1311def _type_name_get(self): 1312 _builtin() 1313 1314 1315def _type_name_set(self, value): 1316 _builtin() 1317 1318 1319def _type_proxy(type_obj): 1320 _builtin() 1321 1322 1323def _type_new(cls, name, bases, dict, is_heaptype): 1324 _builtin() 1325 1326 1327def _type_proxy_check(obj): 1328 _builtin() 1329 1330 1331def _type_proxy_get(self, key, default): 1332 _builtin() 1333 1334 1335def _type_proxy_guard(obj): 1336 _builtin() 1337 1338 1339def _type_proxy_keys(self): 1340 _builtin() 1341 1342 1343def _type_proxy_len(self): 1344 _builtin() 1345 1346 1347def _type_proxy_values(self): 1348 _builtin() 1349 1350 1351def _type_qualname_get(self): 1352 _builtin() 1353 1354 1355def _type_qualname_set(self, value): 1356 _builtin() 1357 1358 1359def _type_subclass_guard(subclass, superclass): 1360 "$intrinsic$" 1361 _builtin() 1362 1363 1364def _unimplemented(): 1365 """Prints a message and a stacktrace, and stops the program execution.""" 1366 _builtin() 1367 1368 1369def _warn(message, category=None, stacklevel=1, source=None): 1370 """Calls warnings.warn.""" 1371 _builtin() 1372 1373 1374def _weakref_callback(self): 1375 _builtin() 1376 1377 1378def _weakref_check(self): 1379 "$intrinsic$" 1380 _builtin() 1381 1382 1383def _weakref_guard(self): 1384 "$intrinsic$" 1385 _builtin() 1386 1387 1388def _weakref_referent(self): 1389 _builtin() 1390 1391 1392maxunicode = maxunicode # noqa: F821