KEMBAR78
Use some macros in native_internal by ilevkivskyi · Pull Request #19757 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

This should be a no-op from semantics/format point if view. Essentially three things here:

  • Add some macros to hide boilerplate for common steps
  • Make use of some magic constants more obvious (most notably 2)
  • Add some likely()/unlikely() directives (this actually seems to have some small positive effect).

cc @JukkaL

@ilevkivskyi
Copy link
Member Author

Since this is semantically a no-op (and I didn't see any objections) I am merging this as is as I want to make another change on top of this one (we can tweak the macros later if needed).

@ilevkivskyi ilevkivskyi merged commit dcaca0e into python:master Aug 30, 2025
13 checks passed
@ilevkivskyi ilevkivskyi deleted the use-macros branch August 30, 2025 15:24
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

Successfully merging this pull request may close these issues.

1 participant