开发者

Is it possible to use Python with Go [duplicate]

开发者 https://www.devze.com 2023-03-27 19:54 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Mixing python with a faster language for optimization in GAE
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Mixing python with a faster language for optimization in GAE

I wounder if you can use python with Go, I have just introduced myself to Go (by mistake lol, although that it exists long time ago) to Go, it feels like python, I like it, but I'm not planning to learn it because python satisfies me, I'm just wondering, is it possible to create an app on google app engine using python sdk and Go for some tasks?

I already know that they have a totally different for go

EDIT

I think i have just asked a stupid question because I have just found out that you have to com开发者_运维百科pile Go!

anyway I'll keep the question for today maybe I'll have a good answer that I'm not expecting.


You can use different languages in the same app -- however, each one in a different version. They will have access to the same datastore and memcache, however CRON and (I think) tasks will only work for the active version (because they target the main version url using a relative path). You would have to "talk" between versions using HTTP. You can also have the main app in Python and a Go or Java backend, etc.

Go is compiled, but the Go SDK do all the work for you, re-compiling the app each time you change your code. It is pretty neat and fun to try Go this way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号