Replace six.iteritems() with .items()
Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will be more readable.
2.In py2, the performance about list should be negligible, see the link [2].
[1] https:/
[2] http://
I register this BP in launchpad because the code affected in nova is huge. So it will be reasonable to split the code changes into several patches. See https:/
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Spencer Yu
- Direction:
- Needs approval
- Assignee:
- Spencer Yu
- Definition:
- Review
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Spencer Yu
- Completed by
- Spencer Yu
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
[1/3]Replace six.iteritems() with .items()
Addressed by: https:/
[2/3]Replace six.iteritems() with .items()
Addressed by: https:/
[3/3]Replace six.iteritems() with .items()
Addressed by: https:/
[3/3]Replace six.iteritems() with .items()