-
Notifications
You must be signed in to change notification settings - Fork 3
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
reverse lookup #42
Comments
I have an idea for this and am working on it, hope to have something soon. |
I was hoping for an enum in order to get autocomplete. Without that, we still have to look up names somewhere, which doesn't really save any time and we might as well hard-code our own constants. I'm not sure I see the use of returning multiple matches. For all of the use cases I have, I only want one value returned. For example, I want to be able to write: LEGO_CID = Companies.LEGO_SYSTEM_AS
# instead of
LEGO_CID = 0x0397 How would this look with the proposed PR? |
Good points. I like the idea of having autocomplete for this.
|
@koenvervloesem @dlech I like the auto-complete, enum idea. If I already know that I would like to keep the |
It would be useful to have enums or a second dictionary for each data type to be able to look up the number by a human-readable name.
The text was updated successfully, but these errors were encountered: