💾 Archived View for tris.fyi › pydoc › _testcapi captured on 2023-04-26 at 13:34:27. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
This module has no docstring.
value = <member 'value' of '_testcapi.ContainerNoGC' objects> a container value for test purposes
A heap type without GC, but with overridden __setattr__. The 'value' attribute is set to 10 in __init__ and updated via attribute setting.
pvalue = <member 'pvalue' of '_testcapi.HeapCTypeSetattr' objects>
Subclass of HeapCType, without GC. __init__ sets the 'value' attribute to 10 and 'value2' to 20.
value = <member 'value' of '_testcapi.HeapCType' objects>
value2 = <member 'value2' of '_testcapi.HeapCTypeSubclass' objects>
Subclass of HeapCType with a finalizer that reassigns __class__. __class__ is set to plain HeapCTypeSubclass during finalization. __init__ sets the 'value' attribute to 10 and 'value2' to 20.
value = <member 'value' of '_testcapi.HeapCType' objects>
value2 = <member 'value2' of '_testcapi.HeapCTypeSubclassWithFinalizer' objects>
Heap type with buffer support. The buffer is set to [b'1', b'2', b'3', b'4']
dictobj = <member 'dictobj' of '_testcapi.HeapCTypeWithDict' objects>
dictobj = <member 'dictobj' of '_testcapi.HeapCTypeWithNegativeDict' objects>
weakreflist = <member 'weakreflist' of '_testcapi.HeapCTypeWithWeakref' objects>
somedoc
A heap type with GC, and with overridden dealloc. The 'value' attribute is set to 10 in __init__.
value = <member 'value' of '_testcapi.HeapGcCType' objects>
Class with class methods to test calling conventions
meth_fastcall(...)
meth_fastcall_keywords(...)
meth_noargs(...)
meth_o(...)
meth_varargs(...)
meth_varargs_keywords(...)
Class with normal (instance) methods to test calling conventions
meth_fastcall(...)
meth_fastcall_keywords(...)
meth_noargs(...)
meth_o(...)
meth_varargs(...)
meth_varargs_keywords(...)
Class with static methods to test calling conventions
meth_fastcall(...)
meth_fastcall_keywords(...)
meth_noargs(...)
meth_o(...)
meth_varargs(...)
meth_varargs_keywords(...)
append(self, object, /) Append object to the end of the list.
clear(self, /) Remove all items from list.
copy(self, /) Return a shallow copy of the list.
count(self, value, /) Return number of occurrences of value.
extend(self, iterable, /) Extend list by appending elements from the iterable.
index(self, value, start=0, stop=9223372036854775807, /) Return first index of value. Raises ValueError if the value is not present.
insert(self, index, object, /) Insert object before index.
pop(self, index=-1, /) Remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
remove(self, value, /) Remove first occurrence of value. Raises ValueError if the value is not present.
reverse(self, /) Reverse *IN PLACE*.
sort(self, /, *, key=None, reverse=False) Sort the list in ascending order and return None. The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained). If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values. The reverse flag can be set to sort in descending order.
Instantiating this exception starts infinite recursion.
with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
C level type with tp_as_async
with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
instancemethod(function) Bind a function to a class.
C level type with matrix operations defined
DecodeLocaleEx(...)
EncodeLocaleEx(...)
PyBuffer_SizeFromFormat(...)
PyDateTime_DATE_GET(...)
PyDateTime_DELTA_GET(...)
PyDateTime_GET(...)
PyDateTime_TIME_GET(...)
PyTime_AsMicroseconds(...)
PyTime_AsMilliseconds(...)
PyTime_AsSecondsDouble(...)
PyTime_AsTimespec(...)
PyTime_AsTimeval(...)
PyTime_FromSeconds(...)
PyTime_FromSecondsObject(...)
Py_CompileString(...)
W_STOPCODE(...)
argparsing(...)
bad_get(...)
call_in_temporary_c_thread(...) set_error_class(error_class) -> None
check_pyobject_forbidden_bytes_is_freed(...)
check_pyobject_freed_is_freed(...)
check_pyobject_null_is_freed(...)
check_pyobject_uninitialized_is_freed(...)
code_newempty(...)
codec_incrementaldecoder(...)
codec_incrementalencoder(...)
crash_no_current_thread(...)
create_cfunction(...)
datetime_check_date(...)
datetime_check_datetime(...)
datetime_check_delta(...)
datetime_check_time(...)
datetime_check_tzinfo(...)
dict_get_version(...)
dict_getitem_knownhash(...)
dict_hassplittable(...)
docstring_empty(...)
docstring_no_signature(...) This docstring has no signature.
docstring_with_invalid_signature(...) docstring_with_invalid_signature($module, /, boo) This docstring has an invalid signature.
docstring_with_invalid_signature2(...) docstring_with_invalid_signature2($module, /, boo) -- This docstring also has an invalid signature.
docstring_with_signature(sig) This docstring has a valid signature.
docstring_with_signature_and_extra_newlines(parameter) This docstring has a valid signature and some extra newlines.
docstring_with_signature_but_no_doc(sig)
docstring_with_signature_with_defaults(module, s='avocado', b=b'bytes', d=3.14, i=35, n=None, t=True, f=False, local=3, sys=9223372036854775807) This docstring has a valid signature with parameters, and the parameters take defaults of varying types.
exception_print(...)
fatal_error(...) fatal_error(message, release_gil=False): call Py_FatalError(message)
get_args(...)
get_date_fromdate(...)
get_date_fromtimestamp(...)
get_datetime_fromdateandtime(...)
get_datetime_fromdateandtimeandfold(...)
get_datetime_fromtimestamp(...)
get_delta_fromdsu(...)
get_kwargs(...)
get_mapping_items(...)
get_mapping_keys(...)
get_mapping_values(...)
get_time_fromtime(...)
get_time_fromtimeandfold(...)
get_timezone_utc_capi(...)
get_timezones_offset_zero(...)
getargs_B(...)
getargs_C(...)
getargs_D(...)
getargs_H(...)
getargs_I(...)
getargs_K(...)
getargs_L(...)
getargs_S(...)
getargs_U(...)
getargs_Y(...)
getargs_Z(...)
getargs_Z_hash(...)
getargs_b(...)
getargs_c(...)
getargs_d(...)
getargs_es(...)
getargs_es_hash(...)
getargs_et(...)
getargs_et_hash(...)
getargs_f(...)
getargs_h(...)
getargs_i(...)
getargs_k(...)
getargs_keyword_only(...)
getargs_keywords(...)
getargs_l(...)
getargs_n(...)
getargs_p(...)
getargs_positional_only_and_keywords(...)
getargs_s(...)
getargs_s_hash(...)
getargs_s_hash_int(...)
getargs_s_hash_int2(...)
getargs_s_star(...)
getargs_tuple(...)
getargs_u(...)
getargs_u_hash(...)
getargs_w_star(...)
getargs_y(...)
getargs_y_hash(...)
getargs_y_star(...)
getargs_z(...)
getargs_z_hash(...)
getargs_z_star(...)
getbuffer_with_null_view(...)
getitem_with_error(...)
hamt(...)
make_exception_with_doc(...)
make_memoryview_from_NULL_pointer(...)
make_timezones_capi(...)
meth_fastcall(...)
meth_fastcall_keywords(...)
meth_noargs(...)
meth_o(...)
meth_varargs(...)
meth_varargs_keywords(...)
no_docstring(...)
parse_tuple_and_keywords(...)
pymarshal_read_last_object_from_file(...)
pymarshal_read_long_from_file(...)
pymarshal_read_object_from_file(...)
pymarshal_read_short_from_file(...)
pymarshal_write_long_to_file(...)
pymarshal_write_object_to_file(...)
pymem_api_misuse(...)
pymem_buffer_overflow(...)
pymem_getallocatorsname(...)
pymem_malloc_without_gil(...)
pynumber_tobase(...)
pyobject_bytes_from_null(...)
pyobject_fastcall(...)
pyobject_fastcalldict(...)
pyobject_malloc_without_gil(...)
pyobject_repr_from_null(...)
pyobject_str_from_null(...)
pyobject_vectorcall(...)
pytime_object_to_time_t(...)
pytime_object_to_timespec(...)
pytime_object_to_timeval(...)
pyvectorcall_call(...)
raise_SIGINT_then_send_None(...)
raise_exception(...)
raise_memoryerror(...)
remove_mem_hooks(...) Remove memory hooks.
return_null_without_error(...)
return_result_with_error(...)
run_in_subinterp(...)
sequence_getitem(...)
sequence_setitem(...)
set_errno(...)
set_exc_info(...)
set_nomemory(...) set_nomemory(start:int, stop:int = 0)
stack_pointer(...)
test_L_code(...)
test_Z_code(...)
test_buildvalue_N(...)
test_buildvalue_issue38913(...)
test_capsule(...)
test_config(...)
test_datetime_capi(...)
test_decref_doesnt_leak(...)
test_dict_iteration(...)
test_empty_argparse(...)
test_from_contiguous(...)
test_gc_control(...)
test_get_statictype_slots(...)
test_incref_decref_API(...)
test_incref_doesnt_leak(...)
test_k_code(...)
test_lazy_hash_inheritance(...)
test_list_api(...)
test_long_and_overflow(...)
test_long_api(...)
test_long_as_double(...)
test_long_as_size_t(...)
test_long_as_unsigned_long_long_mask(...)
test_long_long_and_overflow(...)
test_long_numbits(...)
test_longlong_api(...)
test_pep3118_obsolete_write_locks(...)
test_py_is_funcs(...)
test_py_is_macros(...)
test_pymem_alloc0(...)
test_pymem_setallocators(...)
test_pymem_setrawallocators(...)
test_pyobject_setallocators(...)
test_pythread_tss_key_state(...)
test_refcount_funcs(...)
test_refcount_macros(...)
test_s_code(...)
test_set_type_size(...)
test_sizeof_c_types(...)
test_string_from_format(...)
test_string_to_double(...)
test_structseq_newtype_doesnt_leak(...)
test_structseq_newtype_null_descr_doc(...)
test_u_code(...)
test_unicode_compare_with_ascii(...)
test_widechar(...)
test_with_docstring(...) This is a pretty normal docstring.
test_xdecref_doesnt_leak(...)
test_xincref_doesnt_leak(...)
traceback_print(...)
tracemalloc_get_traceback(...)
tracemalloc_track(...)
tracemalloc_untrack(...)
unicode_asucs4(...)
unicode_asutf8(...)
unicode_asutf8andsize(...)
unicode_aswidechar(...)
unicode_aswidecharstring(...)
unicode_copycharacters(...)
unicode_encodedecimal(...)
unicode_findchar(...)
unicode_legacy_string(...)
unicode_transformdecimaltoascii(...)
with_tp_del(...)
without_gc(...)
write_unraisable_exc(...)
CHAR_MAX = 127
CHAR_MIN = -128
DBL_MAX = 1.7976931348623157e+308
DBL_MIN = 2.2250738585072014e-308
FLT_MAX = 3.4028234663852886e+38
FLT_MIN = 1.1754943508222875e-38
INT_MAX = 2147483647
INT_MIN = -2147483648
LLONG_MAX = 9223372036854775807
LLONG_MIN = -9223372036854775808
LONG_MAX = 9223372036854775807
LONG_MIN = -9223372036854775808
PY_SSIZE_T_MAX = 9223372036854775807
PY_SSIZE_T_MIN = -9223372036854775808
SHRT_MAX = 32767
SHRT_MIN = -32768
SIZEOF_TIME_T = 8
UCHAR_MAX = 255
UINT_MAX = 4294967295
ULLONG_MAX = 18446744073709551615
ULONG_MAX = 18446744073709551615
USHRT_MAX = 65535
WITH_PYMALLOC = True
the_number_three = 3