PySwift icon indicating copy to clipboard operation
PySwift copied to clipboard

Can you add support for Python 3.6?

Open huydhoang opened this issue 7 years ago • 3 comments

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!

huydhoang avatar Feb 25 '18 04:02 huydhoang

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 avatar Mar 09 '18 21:03 perfaram

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

perfaram avatar Mar 09 '18 22:03 perfaram

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

huydhoang avatar Mar 23 '18 19:03 huydhoang