Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Can you add support for Python 3.6? #1

Open
huydhoang opened this issue Feb 25, 2018 · 3 comments
Open

Can you add support for Python 3.6? #1

huydhoang opened this issue Feb 25, 2018 · 3 comments

Comments

@huydhoang
Copy link

Hi, I love this idea. I was looking for ways to implement Python code in Swift project (obviously I'm not a Swift pro but a Python enthusiast). Just wondering why it's not Python 3.6 because in the Python world, it seems Py3 is the future while Py2.7 will not get much support in the future.
Can you elaborate more about your plan?

Thanks!

@perfaram
Copy link
Owner

perfaram commented Mar 9, 2018

Mostly because macOS' embedded Python is 2.7, not 3.6.
I'm open to it, though. I'll have a look, but not a serious one before this summer, because 'till then I'll be very busy (and that's why I didn't answer this issue any sooner).
Fortunately, the Python C API has not changed much between 2.7 and 3.6, so it should be pretty easy. I hope so at least.
Feel free to fork this project and work on it, I'll happily merge your changes. Let me know how it goes, and good luck !

EDIT : Also, if you happen to update PySwift for Python3.6, please don't make the same mistake I've done – DOCUMENT THE CODE. PySwift is almost undocumented and that sucks really hard :(

@perfaram
Copy link
Owner

perfaram commented Mar 9, 2018

Plus, it's a good way to learn some Swift, and to understand a bit better how Python works under the hood ;)

@huydhoang
Copy link
Author

Read but forgot to leave a comment though. Thanks for your response @perfaram, I'll take a look when I got some time to spare. I'm a beginner in Swift (main workstation on windows) so it sure will be a good learning LOL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants