-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Property delete option #21
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
Comments
I'm not sure how useful it is for a binding library -- what does it mean to delete a property of a C++ class? :) |
I'm guessing your point is that one can't actually delete a member variable in C++. While this is true one could make it act like it was deleted on the C++ side. For example, there could be a Behavior for deletion that deviates from this could be imagined like a no-op or reinitialization of the variable. |
It feels like a somewhat niche use case -- I have not seen this kind of pattern before, especially not at the interface between C++ and Python. If you really need this feature, I would recommend that you fork the library (I'm trying to keep it to the essentials). |
Add a `pyproject.toml` by default which is the proper location for build system requirements these days in Python.
I was wondering about your thoughts on having
def_property
(and friends) take afdel
parameter to be called when the property is deleted.The text was updated successfully, but these errors were encountered: