{
    "content": [
        {
            "type": "text",
            "text": "# _testcapi (pydoc)\n\n**Summary:** testcapi\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **CLASSES** (16 lines) — 12 subsections\n  - class ContainerNoGC (11 lines)\n  - class HeapCTypeSetattr (20 lines)\n  - class HeapCTypeSubclass (24 lines)\n  - class HeapCTypeSubclassWithFinalizer (28 lines)\n  - class HeapCTypeWithBuffer (4 lines)\n  - class HeapCTypeWithDict (6 lines)\n  - class HeapCTypeWithNegativeDict (6 lines)\n  - class HeapCTypeWithWeakref (4 lines)\n  - class HeapDocCType (4 lines)\n  - class HeapGcCType (14 lines)\n  - class NullTpDocType (1 lines)\n  - class error (67 lines)\n- **FUNCTIONS** (32 lines) — 208 subsections\n  - argparsing (1 lines)\n  - bad_get (1 lines)\n  - call_in_temporary_c_thread (2 lines)\n  - check_pyobject_forbidden_bytes_is_freed (1 lines)\n  - check_pyobject_freed_is_freed (1 lines)\n  - check_pyobject_null_is_freed (1 lines)\n  - check_pyobject_uninitialized_is_freed (1 lines)\n  - code_newempty (1 lines)\n  - codec_incrementaldecoder (1 lines)\n  - codec_incrementalencoder (1 lines)\n  - crash_no_current_thread (1 lines)\n  - create_cfunction (1 lines)\n  - datetime_check_date (1 lines)\n  - datetime_check_datetime (1 lines)\n  - datetime_check_delta (1 lines)\n  - datetime_check_time (1 lines)\n  - datetime_check_tzinfo (1 lines)\n  - dict_get_version (1 lines)\n  - dict_getitem_knownhash (1 lines)\n  - dict_hassplittable (1 lines)\n  - docstring_empty (1 lines)\n  - docstring_no_signature (2 lines)\n  - docstring_with_invalid_signature (4 lines)\n  - docstring_with_invalid_signature2 (6 lines)\n  - docstring_with_signature (2 lines)\n  - docstring_with_signature_and_extra_newlines (2 lines)\n  - docstring_with_signature_but_no_doc (1 lines)\n  - docstring_with_signature_with_defaults (3 lines)\n  - exception_print (1 lines)\n  - fatal_error (2 lines)\n  - get_args (1 lines)\n  - get_date_fromdate (1 lines)\n  - get_date_fromtimestamp (1 lines)\n  - get_datetime_fromdateandtime (1 lines)\n  - get_datetime_fromdateandtimeandfold (1 lines)\n  - get_datetime_fromtimestamp (1 lines)\n  - get_delta_fromdsu (1 lines)\n  - get_kwargs (1 lines)\n  - get_mapping_items (1 lines)\n  - get_mapping_keys (1 lines)\n  - get_mapping_values (1 lines)\n  - get_time_fromtime (1 lines)\n  - get_time_fromtimeandfold (1 lines)\n  - get_timezone_utc_capi (1 lines)\n  - get_timezones_offset_zero (1 lines)\n  - getargs_B (1 lines)\n  - getargs_C (1 lines)\n  - getargs_D (1 lines)\n  - getargs_H (1 lines)\n  - getargs_I (1 lines)\n  - getargs_K (1 lines)\n  - getargs_L (1 lines)\n  - getargs_S (1 lines)\n  - getargs_U (1 lines)\n  - getargs_Y (1 lines)\n  - getargs_Z (1 lines)\n  - getargs_Z_hash (1 lines)\n  - getargs_b (1 lines)\n  - getargs_c (1 lines)\n  - getargs_d (1 lines)\n  - getargs_es (1 lines)\n  - getargs_es_hash (1 lines)\n  - getargs_et (1 lines)\n  - getargs_et_hash (1 lines)\n  - getargs_f (1 lines)\n  - getargs_h (1 lines)\n  - getargs_i (1 lines)\n  - getargs_k (1 lines)\n  - getargs_keyword_only (1 lines)\n  - getargs_keywords (1 lines)\n  - getargs_l (1 lines)\n  - getargs_n (1 lines)\n  - getargs_p (1 lines)\n  - getargs_positional_only_and_keywords (1 lines)\n  - getargs_s (1 lines)\n  - getargs_s_hash (1 lines)\n  - getargs_s_hash_int (1 lines)\n  - getargs_s_hash_int2 (1 lines)\n  - getargs_s_star (1 lines)\n  - getargs_tuple (1 lines)\n  - getargs_u (1 lines)\n  - getargs_u_hash (1 lines)\n  - getargs_w_star (1 lines)\n  - getargs_y (1 lines)\n  - getargs_y_hash (1 lines)\n  - getargs_y_star (1 lines)\n  - getargs_z (1 lines)\n  - getargs_z_hash (1 lines)\n  - getargs_z_star (1 lines)\n  - getbuffer_with_null_view (1 lines)\n  - getitem_with_error (1 lines)\n  - gh_99240_clear_args (1 lines)\n  - hamt (1 lines)\n  - join_temporary_c_thread (1 lines)\n  - make_exception_with_doc (1 lines)\n  - make_memoryview_from_NULL_pointer (1 lines)\n  - make_timezones_capi (1 lines)\n  - mapping_has_key (1 lines)\n  - meth_fastcall (1 lines)\n  - meth_fastcall_keywords (1 lines)\n  - meth_noargs (1 lines)\n  - meth_o (1 lines)\n  - meth_varargs (1 lines)\n  - meth_varargs_keywords (1 lines)\n  - no_docstring (1 lines)\n  - parse_tuple_and_keywords (1 lines)\n  - pymarshal_read_last_object_from_file (1 lines)\n  - pymarshal_read_long_from_file (1 lines)\n  - pymarshal_read_object_from_file (1 lines)\n  - pymarshal_read_short_from_file (1 lines)\n  - pymarshal_write_long_to_file (1 lines)\n  - pymarshal_write_object_to_file (1 lines)\n  - pymem_api_misuse (1 lines)\n  - pymem_buffer_overflow (1 lines)\n  - pymem_getallocatorsname (1 lines)\n  - pymem_malloc_without_gil (1 lines)\n  - pynumber_tobase (1 lines)\n  - pyobject_bytes_from_null (1 lines)\n  - pyobject_fastcall (1 lines)\n  - pyobject_fastcalldict (1 lines)\n  - pyobject_malloc_without_gil (1 lines)\n  - pyobject_repr_from_null (1 lines)\n  - pyobject_str_from_null (1 lines)\n  - pyobject_vectorcall (1 lines)\n  - pytime_object_to_time_t (1 lines)\n  - pytime_object_to_timespec (1 lines)\n  - pytime_object_to_timeval (1 lines)\n  - pyvectorcall_call (1 lines)\n  - raise_SIGINT_then_send_None (1 lines)\n  - raise_exception (1 lines)\n  - raise_memoryerror (1 lines)\n  - remove_mem_hooks (2 lines)\n  - return_null_without_error (1 lines)\n  - return_result_with_error (1 lines)\n  - run_in_subinterp (1 lines)\n  - sequence_getitem (1 lines)\n  - sequence_setitem (1 lines)\n  - set_errno (1 lines)\n  - set_exc_info (1 lines)\n  - set_nomemory (2 lines)\n  - stack_pointer (1 lines)\n  - test_L_code (1 lines)\n  - test_Z_code (1 lines)\n  - test_buildvalue_N (1 lines)\n  - test_buildvalue_issue38913 (1 lines)\n  - test_capsule (1 lines)\n  - test_config (1 lines)\n  - test_datetime_capi (1 lines)\n  - test_decref_doesnt_leak (1 lines)\n  - test_dict_iteration (1 lines)\n  - test_empty_argparse (1 lines)\n  - test_from_contiguous (1 lines)\n  - test_gc_control (1 lines)\n  - test_get_statictype_slots (1 lines)\n  - test_incref_decref_API (1 lines)\n  - test_incref_doesnt_leak (1 lines)\n  - test_k_code (1 lines)\n  - test_lazy_hash_inheritance (1 lines)\n  - test_list_api (1 lines)\n  - test_long_and_overflow (1 lines)\n  - test_long_api (1 lines)\n  - test_long_as_double (1 lines)\n  - test_long_as_size_t (1 lines)\n  - test_long_as_unsigned_long_long_mask (1 lines)\n  - test_long_long_and_overflow (1 lines)\n  - test_long_numbits (1 lines)\n  - test_longlong_api (1 lines)\n  - test_mapping_has_key_string (1 lines)\n  - test_pep3118_obsolete_write_locks (1 lines)\n  - test_py_is_funcs (1 lines)\n  - test_py_is_macros (1 lines)\n  - test_pymem_alloc0 (1 lines)\n  - test_pymem_setallocators (1 lines)\n  - test_pymem_setrawallocators (1 lines)\n  - test_pyobject_setallocators (1 lines)\n  - test_pythread_tss_key_state (1 lines)\n  - test_refcount_funcs (1 lines)\n  - test_refcount_macros (1 lines)\n  - test_s_code (1 lines)\n  - test_set_type_size (1 lines)\n  - test_sizeof_c_types (1 lines)\n  - test_string_from_format (1 lines)\n  - test_string_to_double (1 lines)\n  - test_structseq_newtype_doesnt_leak (1 lines)\n  - test_structseq_newtype_null_descr_doc (1 lines)\n  - test_u_code (1 lines)\n  - test_unicode_compare_with_ascii (1 lines)\n  - test_widechar (1 lines)\n  - test_with_docstring (2 lines)\n  - test_xdecref_doesnt_leak (1 lines)\n  - test_xincref_doesnt_leak (1 lines)\n  - traceback_print (1 lines)\n  - tracemalloc_get_traceback (1 lines)\n  - tracemalloc_track (1 lines)\n  - tracemalloc_untrack (1 lines)\n  - unicode_asucs4 (1 lines)\n  - unicode_asutf8 (1 lines)\n  - unicode_asutf8andsize (1 lines)\n  - unicode_aswidechar (1 lines)\n  - unicode_aswidecharstring (1 lines)\n  - unicode_copycharacters (1 lines)\n  - unicode_encodedecimal (1 lines)\n  - unicode_findchar (1 lines)\n  - unicode_legacy_string (1 lines)\n  - unicode_transformdecimaltoascii (1 lines)\n  - with_tp_del (1 lines)\n  - without_gc (1 lines)\n  - write_unraisable_exc (1 lines)\n- **DATA** (25 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\ntestcapi\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/testcapi.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### CLASSES\n\nHeapCType(builtins.object)\nHeapCTypeSubclass\nHeapCTypeSubclassWithFinalizer\nbuiltins.Exception(builtins.BaseException)\nerror\nbuiltins.object\nContainerNoGC\nHeapCTypeSetattr\nHeapCTypeWithBuffer\nHeapCTypeWithDict\nHeapCTypeWithNegativeDict\nHeapCTypeWithWeakref\nHeapDocCType\nHeapGcCType\nNullTpDocType\n\n#### class ContainerNoGC\n\n|  Static methods defined here:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  value\n|      a container value for test purposes\n\n#### class HeapCTypeSetattr\n\n|  A heap type without GC, but with overridden setattr.\n|\n|  The 'value' attribute is set to 10 in init and updated via attribute setting.\n|\n|  Methods defined here:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  pvalue\n\n#### class HeapCTypeSubclass\n\n|  Subclass of HeapCType, without GC.\n|\n|  init sets the 'value' attribute to 10 and 'value2' to 20.\n|\n|  Method resolution order:\n|      HeapCTypeSubclass\n|      HeapCType\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  value2\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from HeapCType:\n|\n|  value\n\n#### class HeapCTypeSubclassWithFinalizer\n\n|  Subclass of HeapCType with a finalizer that reassigns class.\n|\n|  class is set to plain HeapCTypeSubclass during finalization.\n|  init sets the 'value' attribute to 10 and 'value2' to 20.\n|\n|  Method resolution order:\n|      HeapCTypeSubclassWithFinalizer\n|      HeapCTypeSubclass\n|      HeapCType\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  del(...)\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  value2\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from HeapCType:\n|\n|  value\n\n#### class HeapCTypeWithBuffer\n\n|  Heap type with buffer support.\n|\n|  The buffer is set to [b'1', b'2', b'3', b'4']\n\n#### class HeapCTypeWithDict\n\n|  Data descriptors defined here:\n|\n|  dict\n|\n|  dictobj\n\n#### class HeapCTypeWithNegativeDict\n\n|  Data descriptors defined here:\n|\n|  dict\n|\n|  dictobj\n\n#### class HeapCTypeWithWeakref\n\n|  Data descriptors defined here:\n|\n|  weakreflist\n\n#### class HeapDocCType\n\n|  HeapDocCType(arg1, arg2)\n|\n|  somedoc\n\n#### class HeapGcCType\n\n|  A heap type with GC, and with overridden dealloc.\n|\n|  The 'value' attribute is set to 10 in init.\n|\n|  Methods defined here:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  value\n\n#### class NullTpDocType\n\n#### class error\n\n|  Method resolution order:\n|      error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n### FUNCTIONS\n\nDecodeLocaleEx(...)\n\nEncodeLocaleEx(...)\n\nPyBufferSizeFromFormat(...)\n\nPyDateTimeDATEGET(...)\n\nPyDateTimeDELTAGET(...)\n\nPyDateTimeGET(...)\n\nPyDateTimeTIMEGET(...)\n\nPyTimeAsMicroseconds(...)\n\nPyTimeAsMilliseconds(...)\n\nPyTimeAsSecondsDouble(...)\n\nPyTimeAsTimespec(...)\n\nPyTimeAsTimeval(...)\n\nPyTimeFromSeconds(...)\n\nPyTimeFromSecondsObject(...)\n\nPyCompileString(...)\n\nWSTOPCODE(...)\n\n#### argparsing\n\n#### bad_get\n\n#### call_in_temporary_c_thread\n\nseterrorclass(errorclass) -> None\n\n#### check_pyobject_forbidden_bytes_is_freed\n\n#### check_pyobject_freed_is_freed\n\n#### check_pyobject_null_is_freed\n\n#### check_pyobject_uninitialized_is_freed\n\n#### code_newempty\n\n#### codec_incrementaldecoder\n\n#### codec_incrementalencoder\n\n#### crash_no_current_thread\n\n#### create_cfunction\n\n#### datetime_check_date\n\n#### datetime_check_datetime\n\n#### datetime_check_delta\n\n#### datetime_check_time\n\n#### datetime_check_tzinfo\n\n#### dict_get_version\n\n#### dict_getitem_knownhash\n\n#### dict_hassplittable\n\n#### docstring_empty\n\n#### docstring_no_signature\n\nThis docstring has no signature.\n\n#### docstring_with_invalid_signature\n\ndocstringwithinvalidsignature($module, /, boo)\n\nThis docstring has an invalid signature.\n\n#### docstring_with_invalid_signature2\n\ndocstringwithinvalidsignature2($module, /, boo)\n\n--\n\nThis docstring also has an invalid signature.\n\n#### docstring_with_signature\n\nThis docstring has a valid signature.\n\n#### docstring_with_signature_and_extra_newlines\n\nThis docstring has a valid signature and some extra newlines.\n\n#### docstring_with_signature_but_no_doc\n\n#### docstring_with_signature_with_defaults\n\nThis docstring has a valid signature with parameters,\nand the parameters take defaults of varying types.\n\n#### exception_print\n\n#### fatal_error\n\nfatalerror(message, releasegil=False): call PyFatalError(message)\n\n#### get_args\n\n#### get_date_fromdate\n\n#### get_date_fromtimestamp\n\n#### get_datetime_fromdateandtime\n\n#### get_datetime_fromdateandtimeandfold\n\n#### get_datetime_fromtimestamp\n\n#### get_delta_fromdsu\n\n#### get_kwargs\n\n#### get_mapping_items\n\n#### get_mapping_keys\n\n#### get_mapping_values\n\n#### get_time_fromtime\n\n#### get_time_fromtimeandfold\n\n#### get_timezone_utc_capi\n\n#### get_timezones_offset_zero\n\n#### getargs_B\n\n#### getargs_C\n\n#### getargs_D\n\n#### getargs_H\n\n#### getargs_I\n\n#### getargs_K\n\n#### getargs_L\n\n#### getargs_S\n\n#### getargs_U\n\n#### getargs_Y\n\n#### getargs_Z\n\n#### getargs_Z_hash\n\n#### getargs_b\n\n#### getargs_c\n\n#### getargs_d\n\n#### getargs_es\n\n#### getargs_es_hash\n\n#### getargs_et\n\n#### getargs_et_hash\n\n#### getargs_f\n\n#### getargs_h\n\n#### getargs_i\n\n#### getargs_k\n\n#### getargs_keyword_only\n\n#### getargs_keywords\n\n#### getargs_l\n\n#### getargs_n\n\n#### getargs_p\n\n#### getargs_positional_only_and_keywords\n\n#### getargs_s\n\n#### getargs_s_hash\n\n#### getargs_s_hash_int\n\n#### getargs_s_hash_int2\n\n#### getargs_s_star\n\n#### getargs_tuple\n\n#### getargs_u\n\n#### getargs_u_hash\n\n#### getargs_w_star\n\n#### getargs_y\n\n#### getargs_y_hash\n\n#### getargs_y_star\n\n#### getargs_z\n\n#### getargs_z_hash\n\n#### getargs_z_star\n\n#### getbuffer_with_null_view\n\n#### getitem_with_error\n\n#### gh_99240_clear_args\n\n#### hamt\n\n#### join_temporary_c_thread\n\n#### make_exception_with_doc\n\n#### make_memoryview_from_NULL_pointer\n\n#### make_timezones_capi\n\n#### mapping_has_key\n\n#### meth_fastcall\n\n#### meth_fastcall_keywords\n\n#### meth_noargs\n\n#### meth_o\n\n#### meth_varargs\n\n#### meth_varargs_keywords\n\n#### no_docstring\n\n#### parse_tuple_and_keywords\n\n#### pymarshal_read_last_object_from_file\n\n#### pymarshal_read_long_from_file\n\n#### pymarshal_read_object_from_file\n\n#### pymarshal_read_short_from_file\n\n#### pymarshal_write_long_to_file\n\n#### pymarshal_write_object_to_file\n\n#### pymem_api_misuse\n\n#### pymem_buffer_overflow\n\n#### pymem_getallocatorsname\n\n#### pymem_malloc_without_gil\n\n#### pynumber_tobase\n\n#### pyobject_bytes_from_null\n\n#### pyobject_fastcall\n\n#### pyobject_fastcalldict\n\n#### pyobject_malloc_without_gil\n\n#### pyobject_repr_from_null\n\n#### pyobject_str_from_null\n\n#### pyobject_vectorcall\n\n#### pytime_object_to_time_t\n\n#### pytime_object_to_timespec\n\n#### pytime_object_to_timeval\n\n#### pyvectorcall_call\n\n#### raise_SIGINT_then_send_None\n\n#### raise_exception\n\n#### raise_memoryerror\n\n#### remove_mem_hooks\n\nRemove memory hooks.\n\n#### return_null_without_error\n\n#### return_result_with_error\n\n#### run_in_subinterp\n\n#### sequence_getitem\n\n#### sequence_setitem\n\n#### set_errno\n\n#### set_exc_info\n\n#### set_nomemory\n\nsetnomemory(start:int, stop:int = 0)\n\n#### stack_pointer\n\n#### test_L_code\n\n#### test_Z_code\n\n#### test_buildvalue_N\n\n#### test_buildvalue_issue38913\n\n#### test_capsule\n\n#### test_config\n\n#### test_datetime_capi\n\n#### test_decref_doesnt_leak\n\n#### test_dict_iteration\n\n#### test_empty_argparse\n\n#### test_from_contiguous\n\n#### test_gc_control\n\n#### test_get_statictype_slots\n\n#### test_incref_decref_API\n\n#### test_incref_doesnt_leak\n\n#### test_k_code\n\n#### test_lazy_hash_inheritance\n\n#### test_list_api\n\n#### test_long_and_overflow\n\n#### test_long_api\n\n#### test_long_as_double\n\n#### test_long_as_size_t\n\n#### test_long_as_unsigned_long_long_mask\n\n#### test_long_long_and_overflow\n\n#### test_long_numbits\n\n#### test_longlong_api\n\n#### test_mapping_has_key_string\n\n#### test_pep3118_obsolete_write_locks\n\n#### test_py_is_funcs\n\n#### test_py_is_macros\n\n#### test_pymem_alloc0\n\n#### test_pymem_setallocators\n\n#### test_pymem_setrawallocators\n\n#### test_pyobject_setallocators\n\n#### test_pythread_tss_key_state\n\n#### test_refcount_funcs\n\n#### test_refcount_macros\n\n#### test_s_code\n\n#### test_set_type_size\n\n#### test_sizeof_c_types\n\n#### test_string_from_format\n\n#### test_string_to_double\n\n#### test_structseq_newtype_doesnt_leak\n\n#### test_structseq_newtype_null_descr_doc\n\n#### test_u_code\n\n#### test_unicode_compare_with_ascii\n\n#### test_widechar\n\n#### test_with_docstring\n\nThis is a pretty normal docstring.\n\n#### test_xdecref_doesnt_leak\n\n#### test_xincref_doesnt_leak\n\n#### traceback_print\n\n#### tracemalloc_get_traceback\n\n#### tracemalloc_track\n\n#### tracemalloc_untrack\n\n#### unicode_asucs4\n\n#### unicode_asutf8\n\n#### unicode_asutf8andsize\n\n#### unicode_aswidechar\n\n#### unicode_aswidecharstring\n\n#### unicode_copycharacters\n\n#### unicode_encodedecimal\n\n#### unicode_findchar\n\n#### unicode_legacy_string\n\n#### unicode_transformdecimaltoascii\n\n#### with_tp_del\n\n#### without_gc\n\n#### write_unraisable_exc\n\n### DATA\n\nCHARMAX = 127\nCHARMIN = -128\nDBLMAX = 1.7976931348623157e+308\nDBLMIN = 2.2250738585072014e-308\nFLTMAX = 3.4028234663852886e+38\nFLTMIN = 1.1754943508222875e-38\nINTMAX = 2147483647\nINTMIN = -2147483648\nLLONGMAX = 9223372036854775807\nLLONGMIN = -9223372036854775808\nLONGMAX = 9223372036854775807\nLONGMIN = -9223372036854775808\nPYSSIZETMAX = 9223372036854775807\nPYSSIZETMIN = -9223372036854775808\nSHRTMAX = 32767\nSHRTMIN = -32768\nSIZEOFTIMET = 8\nUCHARMAX = 255\nUINTMAX = 4294967295\nULLONGMAX = 18446744073709551615\nULONGMAX = 18446744073709551615\nUSHRTMAX = 65535\nWITHPYMALLOC = True\nthenumberthree = 3\n\n### FILE\n\n/usr/lib/python3.10/lib-dynload/testcapi.cpython-310-x8664-linux-gnu.so\n\n"
        }
    ],
    "structuredContent": {
        "command": "_testcapi",
        "section": "",
        "mode": "pydoc",
        "summary": "testcapi",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 16,
                "subsections": [
                    {
                        "name": "class ContainerNoGC",
                        "lines": 11
                    },
                    {
                        "name": "class HeapCTypeSetattr",
                        "lines": 20
                    },
                    {
                        "name": "class HeapCTypeSubclass",
                        "lines": 24
                    },
                    {
                        "name": "class HeapCTypeSubclassWithFinalizer",
                        "lines": 28
                    },
                    {
                        "name": "class HeapCTypeWithBuffer",
                        "lines": 4
                    },
                    {
                        "name": "class HeapCTypeWithDict",
                        "lines": 6
                    },
                    {
                        "name": "class HeapCTypeWithNegativeDict",
                        "lines": 6
                    },
                    {
                        "name": "class HeapCTypeWithWeakref",
                        "lines": 4
                    },
                    {
                        "name": "class HeapDocCType",
                        "lines": 4
                    },
                    {
                        "name": "class HeapGcCType",
                        "lines": 14
                    },
                    {
                        "name": "class NullTpDocType",
                        "lines": 1
                    },
                    {
                        "name": "class error",
                        "lines": 67
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 32,
                "subsections": [
                    {
                        "name": "argparsing",
                        "lines": 1
                    },
                    {
                        "name": "bad_get",
                        "lines": 1
                    },
                    {
                        "name": "call_in_temporary_c_thread",
                        "lines": 2
                    },
                    {
                        "name": "check_pyobject_forbidden_bytes_is_freed",
                        "lines": 1
                    },
                    {
                        "name": "check_pyobject_freed_is_freed",
                        "lines": 1
                    },
                    {
                        "name": "check_pyobject_null_is_freed",
                        "lines": 1
                    },
                    {
                        "name": "check_pyobject_uninitialized_is_freed",
                        "lines": 1
                    },
                    {
                        "name": "code_newempty",
                        "lines": 1
                    },
                    {
                        "name": "codec_incrementaldecoder",
                        "lines": 1
                    },
                    {
                        "name": "codec_incrementalencoder",
                        "lines": 1
                    },
                    {
                        "name": "crash_no_current_thread",
                        "lines": 1
                    },
                    {
                        "name": "create_cfunction",
                        "lines": 1
                    },
                    {
                        "name": "datetime_check_date",
                        "lines": 1
                    },
                    {
                        "name": "datetime_check_datetime",
                        "lines": 1
                    },
                    {
                        "name": "datetime_check_delta",
                        "lines": 1
                    },
                    {
                        "name": "datetime_check_time",
                        "lines": 1
                    },
                    {
                        "name": "datetime_check_tzinfo",
                        "lines": 1
                    },
                    {
                        "name": "dict_get_version",
                        "lines": 1
                    },
                    {
                        "name": "dict_getitem_knownhash",
                        "lines": 1
                    },
                    {
                        "name": "dict_hassplittable",
                        "lines": 1
                    },
                    {
                        "name": "docstring_empty",
                        "lines": 1
                    },
                    {
                        "name": "docstring_no_signature",
                        "lines": 2
                    },
                    {
                        "name": "docstring_with_invalid_signature",
                        "lines": 4
                    },
                    {
                        "name": "docstring_with_invalid_signature2",
                        "lines": 6
                    },
                    {
                        "name": "docstring_with_signature",
                        "lines": 2
                    },
                    {
                        "name": "docstring_with_signature_and_extra_newlines",
                        "lines": 2
                    },
                    {
                        "name": "docstring_with_signature_but_no_doc",
                        "lines": 1
                    },
                    {
                        "name": "docstring_with_signature_with_defaults",
                        "lines": 3
                    },
                    {
                        "name": "exception_print",
                        "lines": 1
                    },
                    {
                        "name": "fatal_error",
                        "lines": 2
                    },
                    {
                        "name": "get_args",
                        "lines": 1
                    },
                    {
                        "name": "get_date_fromdate",
                        "lines": 1
                    },
                    {
                        "name": "get_date_fromtimestamp",
                        "lines": 1
                    },
                    {
                        "name": "get_datetime_fromdateandtime",
                        "lines": 1
                    },
                    {
                        "name": "get_datetime_fromdateandtimeandfold",
                        "lines": 1
                    },
                    {
                        "name": "get_datetime_fromtimestamp",
                        "lines": 1
                    },
                    {
                        "name": "get_delta_fromdsu",
                        "lines": 1
                    },
                    {
                        "name": "get_kwargs",
                        "lines": 1
                    },
                    {
                        "name": "get_mapping_items",
                        "lines": 1
                    },
                    {
                        "name": "get_mapping_keys",
                        "lines": 1
                    },
                    {
                        "name": "get_mapping_values",
                        "lines": 1
                    },
                    {
                        "name": "get_time_fromtime",
                        "lines": 1
                    },
                    {
                        "name": "get_time_fromtimeandfold",
                        "lines": 1
                    },
                    {
                        "name": "get_timezone_utc_capi",
                        "lines": 1
                    },
                    {
                        "name": "get_timezones_offset_zero",
                        "lines": 1
                    },
                    {
                        "name": "getargs_B",
                        "lines": 1
                    },
                    {
                        "name": "getargs_C",
                        "lines": 1
                    },
                    {
                        "name": "getargs_D",
                        "lines": 1
                    },
                    {
                        "name": "getargs_H",
                        "lines": 1
                    },
                    {
                        "name": "getargs_I",
                        "lines": 1
                    },
                    {
                        "name": "getargs_K",
                        "lines": 1
                    },
                    {
                        "name": "getargs_L",
                        "lines": 1
                    },
                    {
                        "name": "getargs_S",
                        "lines": 1
                    },
                    {
                        "name": "getargs_U",
                        "lines": 1
                    },
                    {
                        "name": "getargs_Y",
                        "lines": 1
                    },
                    {
                        "name": "getargs_Z",
                        "lines": 1
                    },
                    {
                        "name": "getargs_Z_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_b",
                        "lines": 1
                    },
                    {
                        "name": "getargs_c",
                        "lines": 1
                    },
                    {
                        "name": "getargs_d",
                        "lines": 1
                    },
                    {
                        "name": "getargs_es",
                        "lines": 1
                    },
                    {
                        "name": "getargs_es_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_et",
                        "lines": 1
                    },
                    {
                        "name": "getargs_et_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_f",
                        "lines": 1
                    },
                    {
                        "name": "getargs_h",
                        "lines": 1
                    },
                    {
                        "name": "getargs_i",
                        "lines": 1
                    },
                    {
                        "name": "getargs_k",
                        "lines": 1
                    },
                    {
                        "name": "getargs_keyword_only",
                        "lines": 1
                    },
                    {
                        "name": "getargs_keywords",
                        "lines": 1
                    },
                    {
                        "name": "getargs_l",
                        "lines": 1
                    },
                    {
                        "name": "getargs_n",
                        "lines": 1
                    },
                    {
                        "name": "getargs_p",
                        "lines": 1
                    },
                    {
                        "name": "getargs_positional_only_and_keywords",
                        "lines": 1
                    },
                    {
                        "name": "getargs_s",
                        "lines": 1
                    },
                    {
                        "name": "getargs_s_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_s_hash_int",
                        "lines": 1
                    },
                    {
                        "name": "getargs_s_hash_int2",
                        "lines": 1
                    },
                    {
                        "name": "getargs_s_star",
                        "lines": 1
                    },
                    {
                        "name": "getargs_tuple",
                        "lines": 1
                    },
                    {
                        "name": "getargs_u",
                        "lines": 1
                    },
                    {
                        "name": "getargs_u_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_w_star",
                        "lines": 1
                    },
                    {
                        "name": "getargs_y",
                        "lines": 1
                    },
                    {
                        "name": "getargs_y_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_y_star",
                        "lines": 1
                    },
                    {
                        "name": "getargs_z",
                        "lines": 1
                    },
                    {
                        "name": "getargs_z_hash",
                        "lines": 1
                    },
                    {
                        "name": "getargs_z_star",
                        "lines": 1
                    },
                    {
                        "name": "getbuffer_with_null_view",
                        "lines": 1
                    },
                    {
                        "name": "getitem_with_error",
                        "lines": 1
                    },
                    {
                        "name": "gh_99240_clear_args",
                        "lines": 1
                    },
                    {
                        "name": "hamt",
                        "lines": 1
                    },
                    {
                        "name": "join_temporary_c_thread",
                        "lines": 1
                    },
                    {
                        "name": "make_exception_with_doc",
                        "lines": 1
                    },
                    {
                        "name": "make_memoryview_from_NULL_pointer",
                        "lines": 1
                    },
                    {
                        "name": "make_timezones_capi",
                        "lines": 1
                    },
                    {
                        "name": "mapping_has_key",
                        "lines": 1
                    },
                    {
                        "name": "meth_fastcall",
                        "lines": 1
                    },
                    {
                        "name": "meth_fastcall_keywords",
                        "lines": 1
                    },
                    {
                        "name": "meth_noargs",
                        "lines": 1
                    },
                    {
                        "name": "meth_o",
                        "lines": 1
                    },
                    {
                        "name": "meth_varargs",
                        "lines": 1
                    },
                    {
                        "name": "meth_varargs_keywords",
                        "lines": 1
                    },
                    {
                        "name": "no_docstring",
                        "lines": 1
                    },
                    {
                        "name": "parse_tuple_and_keywords",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_read_last_object_from_file",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_read_long_from_file",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_read_object_from_file",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_read_short_from_file",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_write_long_to_file",
                        "lines": 1
                    },
                    {
                        "name": "pymarshal_write_object_to_file",
                        "lines": 1
                    },
                    {
                        "name": "pymem_api_misuse",
                        "lines": 1
                    },
                    {
                        "name": "pymem_buffer_overflow",
                        "lines": 1
                    },
                    {
                        "name": "pymem_getallocatorsname",
                        "lines": 1
                    },
                    {
                        "name": "pymem_malloc_without_gil",
                        "lines": 1
                    },
                    {
                        "name": "pynumber_tobase",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_bytes_from_null",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_fastcall",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_fastcalldict",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_malloc_without_gil",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_repr_from_null",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_str_from_null",
                        "lines": 1
                    },
                    {
                        "name": "pyobject_vectorcall",
                        "lines": 1
                    },
                    {
                        "name": "pytime_object_to_time_t",
                        "lines": 1
                    },
                    {
                        "name": "pytime_object_to_timespec",
                        "lines": 1
                    },
                    {
                        "name": "pytime_object_to_timeval",
                        "lines": 1
                    },
                    {
                        "name": "pyvectorcall_call",
                        "lines": 1
                    },
                    {
                        "name": "raise_SIGINT_then_send_None",
                        "lines": 1
                    },
                    {
                        "name": "raise_exception",
                        "lines": 1
                    },
                    {
                        "name": "raise_memoryerror",
                        "lines": 1
                    },
                    {
                        "name": "remove_mem_hooks",
                        "lines": 2
                    },
                    {
                        "name": "return_null_without_error",
                        "lines": 1
                    },
                    {
                        "name": "return_result_with_error",
                        "lines": 1
                    },
                    {
                        "name": "run_in_subinterp",
                        "lines": 1
                    },
                    {
                        "name": "sequence_getitem",
                        "lines": 1
                    },
                    {
                        "name": "sequence_setitem",
                        "lines": 1
                    },
                    {
                        "name": "set_errno",
                        "lines": 1
                    },
                    {
                        "name": "set_exc_info",
                        "lines": 1
                    },
                    {
                        "name": "set_nomemory",
                        "lines": 2
                    },
                    {
                        "name": "stack_pointer",
                        "lines": 1
                    },
                    {
                        "name": "test_L_code",
                        "lines": 1
                    },
                    {
                        "name": "test_Z_code",
                        "lines": 1
                    },
                    {
                        "name": "test_buildvalue_N",
                        "lines": 1
                    },
                    {
                        "name": "test_buildvalue_issue38913",
                        "lines": 1
                    },
                    {
                        "name": "test_capsule",
                        "lines": 1
                    },
                    {
                        "name": "test_config",
                        "lines": 1
                    },
                    {
                        "name": "test_datetime_capi",
                        "lines": 1
                    },
                    {
                        "name": "test_decref_doesnt_leak",
                        "lines": 1
                    },
                    {
                        "name": "test_dict_iteration",
                        "lines": 1
                    },
                    {
                        "name": "test_empty_argparse",
                        "lines": 1
                    },
                    {
                        "name": "test_from_contiguous",
                        "lines": 1
                    },
                    {
                        "name": "test_gc_control",
                        "lines": 1
                    },
                    {
                        "name": "test_get_statictype_slots",
                        "lines": 1
                    },
                    {
                        "name": "test_incref_decref_API",
                        "lines": 1
                    },
                    {
                        "name": "test_incref_doesnt_leak",
                        "lines": 1
                    },
                    {
                        "name": "test_k_code",
                        "lines": 1
                    },
                    {
                        "name": "test_lazy_hash_inheritance",
                        "lines": 1
                    },
                    {
                        "name": "test_list_api",
                        "lines": 1
                    },
                    {
                        "name": "test_long_and_overflow",
                        "lines": 1
                    },
                    {
                        "name": "test_long_api",
                        "lines": 1
                    },
                    {
                        "name": "test_long_as_double",
                        "lines": 1
                    },
                    {
                        "name": "test_long_as_size_t",
                        "lines": 1
                    },
                    {
                        "name": "test_long_as_unsigned_long_long_mask",
                        "lines": 1
                    },
                    {
                        "name": "test_long_long_and_overflow",
                        "lines": 1
                    },
                    {
                        "name": "test_long_numbits",
                        "lines": 1
                    },
                    {
                        "name": "test_longlong_api",
                        "lines": 1
                    },
                    {
                        "name": "test_mapping_has_key_string",
                        "lines": 1
                    },
                    {
                        "name": "test_pep3118_obsolete_write_locks",
                        "lines": 1
                    },
                    {
                        "name": "test_py_is_funcs",
                        "lines": 1
                    },
                    {
                        "name": "test_py_is_macros",
                        "lines": 1
                    },
                    {
                        "name": "test_pymem_alloc0",
                        "lines": 1
                    },
                    {
                        "name": "test_pymem_setallocators",
                        "lines": 1
                    },
                    {
                        "name": "test_pymem_setrawallocators",
                        "lines": 1
                    },
                    {
                        "name": "test_pyobject_setallocators",
                        "lines": 1
                    },
                    {
                        "name": "test_pythread_tss_key_state",
                        "lines": 1
                    },
                    {
                        "name": "test_refcount_funcs",
                        "lines": 1
                    },
                    {
                        "name": "test_refcount_macros",
                        "lines": 1
                    },
                    {
                        "name": "test_s_code",
                        "lines": 1
                    },
                    {
                        "name": "test_set_type_size",
                        "lines": 1
                    },
                    {
                        "name": "test_sizeof_c_types",
                        "lines": 1
                    },
                    {
                        "name": "test_string_from_format",
                        "lines": 1
                    },
                    {
                        "name": "test_string_to_double",
                        "lines": 1
                    },
                    {
                        "name": "test_structseq_newtype_doesnt_leak",
                        "lines": 1
                    },
                    {
                        "name": "test_structseq_newtype_null_descr_doc",
                        "lines": 1
                    },
                    {
                        "name": "test_u_code",
                        "lines": 1
                    },
                    {
                        "name": "test_unicode_compare_with_ascii",
                        "lines": 1
                    },
                    {
                        "name": "test_widechar",
                        "lines": 1
                    },
                    {
                        "name": "test_with_docstring",
                        "lines": 2
                    },
                    {
                        "name": "test_xdecref_doesnt_leak",
                        "lines": 1
                    },
                    {
                        "name": "test_xincref_doesnt_leak",
                        "lines": 1
                    },
                    {
                        "name": "traceback_print",
                        "lines": 1
                    },
                    {
                        "name": "tracemalloc_get_traceback",
                        "lines": 1
                    },
                    {
                        "name": "tracemalloc_track",
                        "lines": 1
                    },
                    {
                        "name": "tracemalloc_untrack",
                        "lines": 1
                    },
                    {
                        "name": "unicode_asucs4",
                        "lines": 1
                    },
                    {
                        "name": "unicode_asutf8",
                        "lines": 1
                    },
                    {
                        "name": "unicode_asutf8andsize",
                        "lines": 1
                    },
                    {
                        "name": "unicode_aswidechar",
                        "lines": 1
                    },
                    {
                        "name": "unicode_aswidecharstring",
                        "lines": 1
                    },
                    {
                        "name": "unicode_copycharacters",
                        "lines": 1
                    },
                    {
                        "name": "unicode_encodedecimal",
                        "lines": 1
                    },
                    {
                        "name": "unicode_findchar",
                        "lines": 1
                    },
                    {
                        "name": "unicode_legacy_string",
                        "lines": 1
                    },
                    {
                        "name": "unicode_transformdecimaltoascii",
                        "lines": 1
                    },
                    {
                        "name": "with_tp_del",
                        "lines": 1
                    },
                    {
                        "name": "without_gc",
                        "lines": 1
                    },
                    {
                        "name": "write_unraisable_exc",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}