# Swift/Python interop library, Xcode 9.3b3 edition

**URL:** <https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242>\
**Category:** Discussion\
**Created:** [February 23, 2018, 6:56am UTC](https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242 "2018-02-23T06:56:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Lattner3](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/chris_lattner3/32/348_2.png) [@Chris\_Lattner3](https://forums.swift.org/u/Chris_Lattner3)\
**Post date:** [February 23, 2018, 6:56am UTC](https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242/1 "2018-02-23T06:56:20Z")

</div>

For those who are interested, here's an updated version of the Python interop layer that I'm slowly pushing forward. This adopts conditional conformances, which cleans up the array/dictionary interop layer (they can now conform to PythonConvertible). This does not yet adopt @dynamicMemberLookup, as it is not supported in Xcode 9.3:  
[http://nondot.org/sabre/PythonInterop.playground.zip](http://nondot.org/sabre/PythonInterop.playground.zip)

Questions, comments, suggestions for improvement welcome.

-Chris

---

<div class="post-metadata">

**Author:** ![pvieito](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pvieito/32/33613_2.png) [@pvieito](https://forums.swift.org/u/pvieito)\
**Post date:** [February 23, 2018, 6:53pm UTC](https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242/2 "2018-02-23T18:53:09Z")

</div>

Great! For anyone interested I have published a packaged version to use it with Swift PM on macOS/Linux: [GitHub - pvieito/PythonKit: Swift framework to interact with Python.](https://github.com/pvieito/PythonKit)

---

<div class="post-metadata">

**Author:** ![hunturkey](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hunturkey/32/5336_2.png) [@hunturkey](https://forums.swift.org/u/hunturkey)\
**Post date:** [November 25, 2018, 9:25pm UTC](https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242/3 "2018-11-25T21:25:02Z")

</div>

Now that @dynamicMemberLookup is implemented in the recently released Swift 4.2, will you be updating your PythonInterop.playground file to show how it can be used?

---

<div class="post-metadata">

**Author:** ![benrimmington](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/benrimmington/32/695_2.png) [@benrimmington](https://forums.swift.org/u/benrimmington)\
**Post date:** [November 26, 2018, 7:36am UTC](https://forums.swift.org/t/swift-python-interop-library-xcode-9-3b3-edition/10242/4 "2018-11-26T07:36:56Z")

</div>

[https://github.com/apple/swift/blob/tensorflow/stdlib/public/Python/Python.swift](https://github.com/apple/swift/blob/tensorflow/stdlib/public/Python/Python.swift)
