-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-90949: Recommend hasattr
with Expat security methods
#139800
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
Conversation
This mimics existing method SetReparseDeferralEnabled.
.. to make it consistent with the other four Expat security methods.
hasattr
with Expat security methods
…otes .. to make it consistent with Doc/library/pyexpat.rst.
@picnixz I'm reading that as merging at least one of the unmerged backports of #139234 first — sure.
It's got a bit less loud in the meantime when adding the ![]()
So there is a threshold where above a note gets its own box and below a box takes too much attention, makes sense.
It would be multiple smaller blocks, not one huge block though. It's a bit less scary than that. Btw I have no plans of adding more, new API like that will only appear if there is no way around it.
Personally I think that see also requires an additional click and additional energy and that alone will many users stop from ever noticing. (I also believe readability is not in danger currently.) Let me demo what we get when taking the |
@picnixz pushed. |
@picnixz how do you like the new version? |
I'm sorry but I don't have a lot of time to look at the Expat related issues/PRs. At first glance it looks fine (less visual distraction). @hugovk As someone who has better insight on accessibility & co, what would you suggest here? |
@hugovk thanks for the review! How about now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
And backport this to 3.13? |
Actually, we didn't backported the methods to prior versions yet. I am currently starting my new work so I didn'tt have much time to focus on those PRs (currently, only main contains these new APIs) |
OK, so should this not have been merged yet? It's only in the 3.15 docs for now, so not such a big deal if they're coming soon-ish. |
Yes, I should have added the DO-NOT-MERGE, my fault (we discussed it in the comments but it should have been mentioned more explicitly). It's not really important as I plan to backport the PRs next week (but my work may take me some time) (half of them are ready, the other half isn't backported yet) |
OK, let's leave this in |
@hugovk good plan, there is no real damage done, no worries.
From me as well! 🥂 |
Same idea (and approach) as #116278.
CC @picnixz
📚 Documentation preview 📚: https://cpython-previews--139800.org.readthedocs.build/