@@ -726,6 +726,14 @@ Wrapper classes
726726 negative). When `T ` does not already represent a wrapped Python object,
727727 the function performs a cast.
728728
729+ .. cpp :function :: void clear ()
730+
731+ Clear the list entries.
732+
733+ .. cpp :function :: void extend (handle h)
734+
735+ Analogous to the ``.extend(h) `` method of ``list `` in Python.
736+
729737 .. cpp :function :: template <typename T, enable_if_t <std::is_arithmetic_v<T>> = 1 > detail::accessor<num_item_list> operator [](T key) const
730738
731739 Analogous to ``self[key] `` in Python, where ``key `` is an arithmetic
@@ -794,6 +802,10 @@ Wrapper classes
794802
795803 Clear the contents of the dictionary.
796804
805+ .. cpp :function :: void update (handle h)
806+
807+ Analogous to the ``.update(h) `` method of ``dict `` in Python.
808+
797809.. cpp :class :: set: public object
798810
799811 Wrapper class representing Python ``set `` instances.
@@ -818,7 +830,14 @@ Wrapper classes
818830
819831 .. cpp :function :: void clear ()
820832
821- Clear the contents of the set
833+ Clear the contents of the set.
834+
835+ .. cpp :function :: template <typename T> bool discard (T&& key)
836+
837+ Analogous to the ``.discard(h) `` method of the ``set `` type in Python.
838+ Returns ``true `` if the item was deleted successfully, and ``false `` if
839+ the value was not present. When `T ` does not already represent a wrapped
840+ Python object, the function performs a cast.
822841
823842.. cpp :class :: module_: public object
824843
0 commit comments