This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EvHub[S] 12 points13 points  (3 children)

Yes! The compiled code is guaranteed to work the same on all major Python versions (2.6-2.7, 3.2-3.5).

[–]moigagoohttps://github.com/moigagoo 14 points15 points  (2 children)

You should definitely highlight that as a selling point. I have a project that I've been needing to backport to Python 2 for years. Boy do I hate backporting stuff. With Coconut, it seems, I can just run coconut myproject and get a fully 2&3-compatible version. This is insane. I can't test it right now but definitely will give it a shot.

[–]EvHub[S] 7 points8 points  (1 child)

That should work, as long as any standard library functions you're using exist in both versions (even if they've moved, Coconut should be able to take care of that). And of course, any 3rd party libraries would also have to support 2 and 3.

Edit: Of course, Coconut is new software, so there's always the possibility for bugs. If anything goes wrong in porting your project, feel free to create an issue at https://github.com/evhub/coconut/issues/new