Skip to content
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

Rename ...Uop... to ...UOp... (uppercase O) for consistency #112327

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Nov 23, 2023

We have _PyUOpExecutor_Type, _PyUOpOptimizer_Type, _PyUOpExecutorObject, all spelled using UOp(*). But we also have _PyUopExecute, _PyUopName, and _PyUOp_Replacements, all using Uop.

I propose to rename the latter to use UOp, for consistency.

Alternatively, we could consistently use Uop. The diff size would be more or less the same. But I don't care as long as we're consistent. (Well, actually, I'd rather type Uop, but, meh.)

(Motivation for wanting consistency: I use case-sensitive search by default in most cases, so I get bitten by the difference regularly. And I don't want to switch to searching case insensitively, because usually I know the exact symbol I'm looking for and case insensitivity just gives me more false positives.)


(*) I.e., Micro Opcode, where 'u' is commonly used as an ASCII substitute for the greek letter mu, which in turn is often used to mean "micro".

@brandtbucher
Copy link
Member

+1 for "UOp"!

@gvanrossum gvanrossum merged commit e723700 into python:main Nov 29, 2023
31 checks passed
@gvanrossum gvanrossum deleted the uop-execute-rename branch November 29, 2023 01:10
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…12327)

* Rename _PyUopExecute to _PyUOpExecute (uppercase O) for consistency
* Also rename _PyUopName and _PyUOp_Replacements, and some output strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants