Skip to content

Python/WinRT: iterator, sequence and mapping support#127

Merged
devhawk merged 11 commits into
masterfrom
devhawk/collections
Jan 22, 2019
Merged

Python/WinRT: iterator, sequence and mapping support#127
devhawk merged 11 commits into
masterfrom
devhawk/collections

Conversation

@devhawk

@devhawk devhawk commented Jan 16, 2019

Copy link
Copy Markdown
Contributor

This PR adds Python iterator, sequence and mapping protocol support to IIterable/IIterator, IVector/IVectorView and IMap<K,V>/IMapView<K,V> WinRT types respectively. This enables for loop over a collection, len support for vectors and maps, subscript get for all vectors and maps, subscript set for non-view vectors and maps

generated code available: https://github.com/devhawk/pywinrt-output/tree/collections

@devhawk devhawk requested review from a team and zooba January 16, 2019 00:03
Comment thread src/tool/python/helpers.h Outdated
Comment thread src/tool/python/helpers.h Outdated
Comment thread src/tool/python/code_writers.h
Comment thread src/tool/python/code_writers.h

@Scottj1s Scottj1s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@devhawk devhawk merged commit 174765d into master Jan 22, 2019
@devhawk devhawk deleted the devhawk/collections branch January 22, 2019 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants