-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change std::map pybindings to follow Python 3 dict semantics (#3576)
* Accept iterable keys in fromkeys * make keys/values/items iterators * WIP: minimal views for maps * add mapping prop * remove obsolute key/value/item lists * scope tuple type under dict keep them namespaces clean * update dict interface test * bump stubgen image * add spdx tags * dump stubgen image to work around 7da09e7aac87e865f050da8d5893812f85016915 * regenerate stubs * remove obsolete i3_map_extras * ensure ignore comments are on the same line as signature * Chase down old std map use in libs Most of these were: - implicit use of old pair iterator - explicit use of iteritems() and friends A whole bunch of copy-paste in iceprod modules was factored out into WriteI3SummaryWithUsage. * Chase map API churn through scripts * Remove bindings for std::map::value_type This are no longer exposed to Python anywhere * return values by reference in values()/items() * remove methods not in MutableMapping * remove obsolete __item_type__ * correct stubgen image sha * add __len__ to views * add set equality for views * Chase map API churn through tests * stubs: generate for 66c73d6adca438fcb06e0ffc7e5213d48e055fcc Co-authored-by: Jakob van Santen <jvansanten@gmail.com> * chase api churn through an entire copy-pasted file * more test churn * more test churn * implicit NoProxy for map<K, shared_ptr<V>> * more test churn * more test churn * more test churn * more test churn * Make map views dynamic Store accessors that return iterators rather than iterators themselves, so that views can be used after maps are modified * clarify approach to set equality * more test churn * more test churn * more test churn * Actually remove commented-out code Co-authored-by: Kevin Meagher <11620178+kjmeagher@users.noreply.github.com> * stubs: generate for 637626e606f091acb2b526349b35ac3bfda24850 Co-authored-by: Jakob van Santen <jvansanten@gmail.com> * Chase down more copypasta * shiny for mypy post-merge * fix up dict interface failures caught in tests * chase down all remaining instances of has_key() --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kevin Meagher <11620178+kjmeagher@users.noreply.github.com>
- Loading branch information
1 parent
5c08bd2
commit 7a873cd
Showing
14 changed files
with
495 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.