-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Make lief.DictStringVersion a MutableMapping #52
Comments
Could you be more precise about the API you would like ? |
I'd like to be able to do things like that: for key, value in pe.resources_manager.version.string_file_info.langcode_items[0].items():
print(key, value) But in general, having such APIs for everything that looks like a dictionary in the whole project would be great. |
Well actually the underlying C++ container is a But you can iterate over the for k, v in pe.resources_manager.version.string_file_info.langcode_items[0].items.items():
print(k, v) |
Hmmm, yeah, I get the problem. |
FYI, I create my dict this way: |
I'm not sure I'm doing it right, but accessing the file information of a PE is a bit difficult:
It would be very nice to be able to access all the data as a
collections.abc.MutableMapping
so we could read and write the attributes directly in a pythonic way.I may be doing it wrong ;)
The text was updated successfully, but these errors were encountered: