MCPcopy Create free account

hub / github.com/aio-libs/multidict / functions

Functions2,179 in github.com/aio-libs/multidict

↓ 247 callersFunctionany_multidict_class
Return a class object of a mutable multidict implementation.
tests/conftest.py:118
↓ 179 callersMethoditems
(self)
tests/test_multidict.py:3773
↓ 155 callersFunctioncls
Make a callable from multidict module, requested by name.
tests/test_multidict.py:64
↓ 110 callersMethodkeys
(self)
tests/test_multidict.py:3770
↓ 104 callersMethodadd
(self, key: str, value: object)
tests/hypothesis_helpers.py:103
↓ 86 callersFunctioncase_insensitive_multidict_class
Return a case-insensitive mutable multidict class.
tests/conftest.py:135
↓ 65 callersFunctioncase_sensitive_multidict_class
Return a case-sensitive mutable multidict class.
tests/conftest.py:127
↓ 59 callersMethodgetall
(self, key: str, default: object = None)
tests/test_to_dict.py:184
↓ 55 callersMethodupdate
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:152
↓ 53 callersFunctioncase_insensitive_str_class
Return a case-insensitive string class.
tests/conftest.py:143
↓ 51 callersMethodadd
(self, key: str, value: _V)
multidict/_multidict_py.py:1121
↓ 47 callersFunctionget_mod_state
multidict/_testcapi.c:19
↓ 43 callersMethodextend
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:181
↓ 43 callersFunctionkind_is_compact
Code reaches a neighbouring entry, an entry's identity and its hash only through these and the accessors in freethreading.h, passing the kind of
multidict/_multilib/htkeys.h:205
↓ 42 callersMethodwatch
(self, md: object, user_data: object)
tests/test_capi.py:718
↓ 40 callersMethodvalues
Return a new view of the dictionary's values.
multidict/_multidict_py.py:1046
↓ 37 callersMethoditems
Return a new view of the dictionary's items as ``(key, value)`` pairs.
multidict/_multidict_py.py:1042
↓ 35 callersMethodcopy
Return a copy of itself.
multidict/_multidict_py.py:1127
↓ 34 callersMethodget
(self, key: str, /)
multidict/_multidict_py.py:1022
↓ 33 callersFunctionany_multidict_proxy_class
Return an immutable multidict implementation class object.
tests/conftest.py:155
↓ 30 callersMethoddrain
Every event so far, emptying the log. Draining also drops the log's own references to the watched multidict, which each recorded even
tests/test_capi.py:724
↓ 28 callersMethodclear
(self)
tests/hypothesis_helpers.py:188
↓ 25 callersFunction_keys
(size: int)
benchmarks/operations.py:116
↓ 24 callersFunctionmultidict_getversion_callable
Return a ``getversion()`` function for current implementation.
tests/conftest.py:180
↓ 21 callersMethodto_dict
Return a dict with lists of all values for each key. Deliberately concrete, not abstract: ``MultiMapping`` is public, so requiring a
multidict/_abc.py:45
↓ 20 callersMethoditer_hash
(self, hash_: int)
multidict/_multidict_py.py:851
↓ 20 callersMethodsetdefault
(self, key: str, default: object)
tests/hypothesis_helpers.py:145
↓ 18 callersMethodkinds
(self)
tests/test_capi.py:735
↓ 18 callersMethodmerge
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:184
↓ 17 callersFunctionentry_is_hole
Whether entry is a hole (deleted or never filled). The key is NULL exactly when the identity is, in every kind, for a caller holding md's critic
multidict/_multilib/htkeys.h:239
↓ 17 callersMethodextend
Extend current MultiDict with more values. This method must be used instead of update.
multidict/_multidict_py.py:1135
↓ 17 callersMethodpopall
(self, key: str)
tests/hypothesis_helpers.py:131
↓ 17 callersMethodpopitem
(self)
tests/hypothesis_helpers.py:140
↓ 17 callersMethodpopone
(self, key: str)
tests/hypothesis_helpers.py:122
↓ 16 callersMethod_identity
(self, key: str)
multidict/_multidict_py.py:652
↓ 15 callersMethodgetone
(self, key: str, default: object = None)
tests/test_to_dict.py:190
↓ 13 callersMethod_incr_version
(self)
multidict/_multidict_py.py:1482
↓ 13 callersMethoditer_entries
(self, reverse: bool = False)
multidict/_multidict_py.py:879
↓ 13 callersFunctionmd_key_fits
Whether a compact table of md can hold `key`: a MultiDict's key must be its own identity, a CIMultiDict's an exact istr, whose identity is then
multidict/_multilib/hashtable.h:36
↓ 13 callersFunctionmd_len
multidict/_multilib/hashtable.h:932
↓ 13 callersMethodrun
(self, *args: str, write_bytecode: bool = False)
benchmarks/callgrind_driver.py:169
↓ 12 callersFunctionIStr_CheckExact
multidict/multidict_capi.h:46
↓ 12 callersMethodisdisjoint
(self, other: Iterable[object])
multidict/_multidict_py.py:637
↓ 12 callersFunctionwatched_class
(request: pytest.FixtureRequest)
tests/test_watched_benchmarks.py:42
↓ 11 callersFunction_pairs
(count: int)
tests/test_freelist.py:49
↓ 11 callersFunctionatomic_load_ptr
multidict/_multilib/atomic_helpers.h:121
↓ 11 callersFunctionbump_version
md->version is the cursor into md's own block, advanced under md's critical section, so a mutation touches neither thread-local storage nor a sh
multidict/_multilib/freethreading.h:154
↓ 11 callersFunctioncompact_key_hash_ci
multidict/_multilib/htkeys.h:260
↓ 11 callersFunctioncompact_key_hash_cs
The hash of a compact entry's identity, read from the key itself: a str's cached hash, or the canonical form's hash an istr keeps, set before th
multidict/_multilib/htkeys.h:249
↓ 11 callersFunctionunicode_hash
Returns the identity's hash, or -1 if hashing raised. */
multidict/_multilib/htkeys.h:702
↓ 10 callersFunctionPyIter_NextItem
multidict/_multilib/pythoncapi_compat.h:1763
↓ 9 callersMethod__sizeof__
(self)
multidict/_multidict_py.py:732
↓ 9 callersFunctionas_anystr
multidict/_multilib/htkeys.h:45
↓ 9 callersFunctioncompact_key_identity_ci
multidict/_multilib/htkeys.h:219
↓ 8 callersFunction_htkeys_mask
multidict/_multilib/htkeys.h:187
↓ 8 callersFunction_view_binop
Runs `op` for whichever operand is an items view (`items`) or a keys view, under its multidict's critical section if `lock`. */
multidict/_multilib/views.h:197
↓ 8 callersFunctionatomic_store_ptr
multidict/_multilib/atomic_helpers.h:144
↓ 8 callersMethodclear
Remove all items from MultiDict.
multidict/_multidict_py.py:1221
↓ 8 callersFunctioncompact_key_identity_cs
The identity of a compact entry's key: the key itself in a MultiDict's table (_cs), the istr's canonical in a CIMultiDict's (_ci). */
multidict/_multilib/htkeys.h:213
↓ 8 callersMethodgetall
(self, key: str)
multidict/_multidict_py.py:972
↓ 8 callersFunctionload_value
multidict/_multilib/freethreading.h:211
↓ 8 callersMethodupdate
Update the dictionary, overwriting existing keys.
multidict/_multidict_py.py:1386
↓ 7 callersFunctionPy_GetConstant
multidict/_multilib/pythoncapi_compat.h:1268
↓ 7 callersMethod__init__
(self, arg: object)
tests/test_types.py:206
↓ 7 callersFunction_multidict_parse_key_default
Binds the (key, default=<missing>) arguments of getall(), getone(), get(), setdefault(), popone(), pop() and popall(). */
multidict/_multidict.c:353
↓ 7 callersMethod_parse_args
( self, arg: MDArg[_V], kwargs: Mapping[str, _V], )
multidict/_multidict_py.py:1144
↓ 7 callersFunctionget_member_regex
(member)
tools/upgrade_pythoncapi.py:64
↓ 7 callersFunctionmd_ensure_key
A stored key was checked to be a str when it went in, so only a CIMultiDict's plain str needs work. */
multidict/_multilib/identity.h:384
↓ 7 callersFunctionmd_walk_all
Calls `visitor` once for every live entry, in insertion order. Returns how many entries were visited, or -1 with an exception set. The caller holds
multidict/_multilib/walk.h:76
↓ 7 callersFunctionreflist_init
multidict/_multilib/reflist.h:50
↓ 6 callersFunctionMultiDict_AddWatcher
multidict/multidict_capi.h:254
↓ 6 callersMethod__init__
(self)
tests/test_multidict.py:3706
↓ 6 callersMethod__length_hint__
(self)
tests/test_multidict.py:3900
↓ 6 callersMethod__new__
(cls, *args: object, **kwargs: object)
tests/test_multidict.py:130
↓ 6 callersMethod_add_with_hash
(self, entry: _Entry[_V], absent: bool = False)
multidict/_multidict_py.py:1519
↓ 6 callersFunction_ci_items
(md: Any)
tests/test_table_kinds.py:211
↓ 6 callersFunction_iter_lock
Return the lock a view iterator over `md` should take per step.
multidict/_multidict_py.py:88
↓ 6 callersMethod_parse_item
(self, arg: tuple[str, _V] | _T)
multidict/_multidict_py.py:281
↓ 6 callersFunction_type_error_to_notimplemented
The answer of a set operator to an operand it cannot iterate over. */
multidict/_multilib/views.h:176
↓ 6 callersFunctionadd_used
multidict/_multilib/freethreading.h:71
↓ 6 callersMethodgetone
(self, key: str)
multidict/_multidict_py.py:998
↓ 6 callersFunctionistr_canonical
multidict/_multilib/istr_object.h:20
↓ 6 callersMethodkeys
Return a new view of the dictionary's keys.
multidict/_multidict_py.py:1038
↓ 6 callersFunctionmd_calc_identity_hash
Reads only `key`, md->is_ci and md->state, all fixed for md's lifetime, so the caller need not hold md's critical section. */
multidict/_multilib/identity.h:335
↓ 6 callersFunctionmd_check_version
Returns -1 with RuntimeError set if md was mutated, or got a new table, since `version` was read from it; 0 otherwise. */
multidict/_multilib/dict.h:87
↓ 5 callersMethod__init__
(self, arg: MDArg[_V] = None, /, **kwargs: _V)
multidict/_multidict_py.py:941
↓ 5 callersMethod_indices
(self, key: str)
tests/hypothesis_helpers.py:93
↓ 5 callersMethodadd
(self, key: str, value: int)
tests/test_hypothesis_multidict.py:59
↓ 5 callersFunctioncase_sensitive_multidict_proxy_class
Return a case-sensitive immutable multidict class.
tests/conftest.py:164
↓ 5 callersFunctioncheck_for_leak
()
tests/isolated/multidict_pop.py:34
↓ 5 callersFunctionestimate_log2_keysize
estimate_keysize is reverse function of USABLE_FRACTION. * * This can be used to reserve enough size to insert n entries without * resizing. */
multidict/_multilib/htkeys.h:492
↓ 5 callersFunctionhtkeys_new_unfilled
An empty table whose entries are left as they came, for a caller that writes the front of the array itself and calls htkeys_zero_entries() for t
multidict/_multilib/htkeys.h:651
↓ 5 callersFunctionhtkeys_zero_entries
Zeroes the entries from `from` on. A caller that fills the front of the table itself needs this for the rest: ASSERT_CONSISTENT() reads every en
multidict/_multilib/htkeys.h:638
↓ 5 callersFunctionmd_add_with_hash
multidict/_multilib/hashtable.h:1190
↓ 5 callersFunctionmd_calc_identity
multidict/_multilib/identity.h:226
↓ 5 callersFunctionmd_identity_or_new
md_borrow_identity() for a call that computes the identity when it cannot borrow it, with each test of the key run once: the identity is borrowe
multidict/_multilib/identity.h:279
↓ 5 callersFunctionmd_identity_release
Drops the identity md_identity_or_new() handed out if it is a new reference: only the key itself and an exact istr's canonical are borrowed. */
multidict/_multilib/identity.h:297
↓ 5 callersFunctionmd_repr
multidict/_multilib/repr.h:173
↓ 5 callersFunctionreflist_clear
Decrefs every collected ref; `lst` is empty again afterwards
multidict/_multilib/reflist.h:198
↓ 5 callersMethodunwatch
(self, md: object)
tests/test_capi.py:721
next →1–100 of 2,179, ranked by callers