httk.core.views.unviewing¶
Functions¶
|
Shed the httk View wrapper from |
Module Contents¶
- httk.core.views.unviewing.unview(obj)[source]¶
Shed the httk View wrapper from
obj, returning a plain instance of the presented type.Unlike
unwrap(), which goes down to the backend’s raw source representation,unviewgoes sideways: it removes the httk wrapper while keeping the presentation the view exposes. The result is not promised to be a copy — it may alias the view’s (or the original input’s) storage; use the target representation’s normal copy operation when independent mutation is required. A non-View input is returned unchanged. Views that only adapt an interface and have no faithful standalone value raiseTypeError.- Parameters:
obj (Any) – Value or view to shed.
- Returns:
The presented value without its httk view wrapper.
- Raises:
TypeError – If a view has no faithful standalone value.
- Return type:
Any