Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenkasirer opened this issue Dec 2, 2024 · 0 comments
Open

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

chenkasirer opened this issue Dec 2, 2024 · 0 comments

Comments

@chenkasirer
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant