Skip to content

Add public accessor(s) for proxied objects. #28

@chenkasirer

Description

@chenkasirer

submitting this as follow up of #25.

Feature Request

Suggestion, add unproxify() and unproxified() to ProxyObject to allow public access to wrapped object wherever necessary, and return the original object or copy thereof correspondingly.

Details

Currently done via accessing private attribute:

origin = element.origin if isinstance(element.origin, Frame) else element.origin._proxied_object

Is your feature request related to a problem? Please describe.

The international high court for object oriented law has drawn our attention to the following potential violation of Decree No. 42, Chapter 17, Sub-Chapter 8.3.1(c)(iv) — "The Inviolability of Encapsulation in Object-Oriented Programming".

Describe alternatives you've considered.

Stepping away from object oriented programming and re-writing the whole ecosystem in Haskell.
Decision: maybe another time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions