-
Notifications
You must be signed in to change notification settings - Fork 4
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
getting the 'nth' field from an adt.Product #57
Comments
@rdaly525 all dicts are ordered in 3.7 and have been in CPython since 3.6. The nth fieldname is the nth key. https://docs.python.org/3/library/stdtypes.html#typesmapping Also if you just want the nth field you can tuple index products. |
As the order should matter in comparison of field dicts I will switch to an OrderedDict |
It would be great if field_dict and value_dict in adt.Product were an OrderedDict. Alternatively, keeping a ordered list of field names would be sufficient.
@cdonovick, is there any ways to get the 'nth' field from a Product currently?
The text was updated successfully, but these errors were encountered: