aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/hashtable.c')
-rw-r--r--Python/hashtable.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/hashtable.c b/Python/hashtable.c
index 0f07cd20b1a..4e22a1a5509 100644
--- a/Python/hashtable.c
+++ b/Python/hashtable.c
@@ -129,6 +129,13 @@ _Py_hashtable_size(const _Py_hashtable_t *ht)
}
+size_t
+_Py_hashtable_len(const _Py_hashtable_t *ht)
+{
+ return ht->nentries;
+}
+
+
_Py_hashtable_entry_t *
_Py_hashtable_get_entry_generic(_Py_hashtable_t *ht, const void *key)
{