Support for wildcard pattern matching in object inspection.
Return dictionaries mapping lower case typename (e.g. ‘tuple’) to type objects from the types package, and vice versa.
is_type(obj, typestr_or_type) verifies if obj is of a certain type. It can take strings or actual python types for the second argument, i.e. ‘tuple’<->TupleType. ‘all’ matches all types.
TODO: Should be extended for choosing more than one type.
Return true for strings starting with single _ if show_all is true.
Produce a dictionary of an object’s attributes. Builds on dir2 by checking that a getattr() call actually succeeds.
Filter a namespace dictionary by name pattern and item type.
Return dictionary of all objects in a namespace dictionary that match type_pattern and filter.