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
API: Make fields
property immutable
#16314
Comments
Thank you for opening this. Let me try to add a bit of context: astropy/astropy/io/votable/tree.py Lines 2541 to 2543 in 4ab38bc
astropy/astropy/io/votable/tree.py Lines 2610 to 2615 in 4ab38bc
This issue would be fixed by:
|
I have a working proof of concept but |
Following discussion with @eerovaher in #16316, let me reformulate the current plan for the the deprecation cycle started in that PR:
This plan allows the, arguably awkward, |
Let's see what our stakeholders (e.g., PyVO) think about this plan. Thanks! |
Who should we ping ? |
I asked over at |
This plan seems reasonable to me. I wish we could be more confident nobody was relying on the mutability of |
This is a follow-up of:
#15959 (comment)
As suggested by @tomdonaldson , "... a direct API change like making the
fields
property immutable (e.g., making it a sequence). Since there is no documentation mentioning the impacts of modifyingfields
or providing a recommendation on how modify it, starting to assume the only modifications would be throughadd_field()
would be an indirect API change. More importantly, it would be a little presumptuous and unrealistic..."@neutrinoceros , feel free to add details as you see fit.
Thanks, all!
The text was updated successfully, but these errors were encountered: