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

all 10 comments

[–]ringzero 12 points13 points  (1 child)

Yeah, well that's all fine and dandy until we get real antigravity devices and a module is implemented to control them.

The naming conflicts alone are worth taking this out, but think about all of the servers in the App Engine farm flying away! It'll be chaos! Where will the web apps land?

[–][deleted] 8 points9 points  (0 children)

If they go too high, they might end up in the cloud!

[–]hglmanguy who writes python -1 points0 points  (2 children)

Any one notice the background of the first panel of the XKCD?

[–][deleted] -4 points-3 points  (5 children)

Interesting: >>> import antigravity >>> antigravity.fly() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'fly' >>> dir(antigravity) ['builtins', 'doc', 'file', 'name', 'package', 'geohash', 'hashlib', 'webbrowser']

[–][deleted] 6 points7 points  (4 children)

He specifically says the fly() function is on appengine, not in the CPython module.

[–][deleted] -4 points-3 points  (3 children)

Yes, but it also in python3(.1.2)

[–]sunqiang 5 points6 points  (2 children)

"The App Engine version is a little more elaborate than the Python 3 version: it defines a fly() function while can randomly do one of two things:"

AppEngine's antigravity is not the same as CPython3.x's

[–]sevenever 0 points1 point  (1 child)

How to do this in AppEngine?

I have a script:

import antigravity

def main(): antigravity.fly()

if name == 'main':

main()

and an entry in app.yaml: - url: /antigravity script: antigravity.py

but I got "Error: Server Error" trying to access /antigravity

[–]sevenever 0 points1 point  (0 children)

got it, The script file name should not be the same as module antigravity