Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Purpose of python antigravity module

I was just digging up some cool modules in python, and this antigravity module seems cool, and full of potentials, but I am not sure if it is what it sounds like.

Is there any use for it other than displaying the comic page on a browser? If there is, please do tell what it can be used for. Is there an example? Note that below in the link, that when the guy asks "But how are you flying?", the python dude answers, "I just typed import antigravity."

I was wondering if there actually is a way to make things fly by just importing antigravity, maybe in Pygame or other cross-platforms modules.

Here is the link...

import antigravity def main():     antigravity.fly() if __name__=='__main__':     main() 
like image 774
eyoeldefare Avatar asked Dec 26 '15 15:12

eyoeldefare


People also ask

What is antigravity module in Python?

import antigravity opens up a web browser that points to the classic XKCD comic mentioning Python. You know what, the developer's didn't stop here either, there's another Easter egg inside the Easter egg. If you look at the code, there's a function defined that purports to implement the XKCD's geohashing algorithm.

What modules are in Python?

In Python, Modules are simply files with the “. py” extension containing Python code that can be imported inside another Python Program. In simple terms, we can consider a module to be the same as a code library or a file that contains a set of functions that you want to include in your application.


1 Answers

No, it's just an easter egg. This brief blog post has a bit more detail.

like image 50
nthall Avatar answered Sep 28 '22 10:09

nthall