httk.core.views.unwrapping

Functions

unwrap(obj)

Given a Backend or a View, return the most raw representation possible, i.e., if the backend has an internal representaion -

Module Contents

httk.core.views.unwrapping.unwrap(obj)[source]

Given a Backend or a View, return the most raw representation possible, i.e., if the backend has an internal representaion - or if it can (possibly lossly) convert itself into a more raw representation that still would be recognized as a <Something>Like type, that representation will be returned. If this is not possible, the instance itself is returned.

Parameters:

obj (Any) – Value, backend, or view to unwrap.

Returns:

The most raw available representation.

Return type:

Any