Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
hartwork commented Oct 8, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
picnixz commented Oct 9, 2025
hartwork commented Oct 9, 2025
@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 |
hartwork commented Oct 9, 2025
@picnixz pushed. |
hartwork commented Oct 13, 2025
@picnixz how do you like the new version? |
picnixz commented Oct 13, 2025
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? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hartwork commented Oct 13, 2025
@hugovk thanks for the review! How about now? |
hugovk left a comment
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!
0c17473 into python:mainUh oh!
There was an error while loading. Please reload this page.
hugovk commented Oct 14, 2025
And backport this to 3.13? |
picnixz commented Oct 14, 2025
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) |
hugovk commented Oct 14, 2025
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. |
picnixz commented Oct 14, 2025
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) |
hugovk commented Oct 14, 2025
OK, let's leave this in |
hartwork commented Oct 14, 2025
@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/