
Everybody knows this famous cartoon by xkcd. It reflects ease of coding in Python.
Now, "antigravity" module became part of Python standard library ( /usr/lib/python30/ )! From a comic to standard library, wow! First implementation of "antigravity" module have been accomplished by Google App Engine team. It was nice easter egg, but due to close connections between Python originators and Google App Engine Team "antigravity" module is part Python 3.
Here is snippet how to invoke this module in your application:
import antigravity
def main():
antigravity.fly()
if __name__ == '__main__':
main()
* sorry for bad formating
This code opens web browser and does randomly two things: with 10% probability redirects you to xkcd comic or renders text or comic in HTML.
I'm very happy that with adoption of "antigravity" module, Randall Munroe gets recognition from Python community.
Congrats , you've deserved it!
Bojan Babic
This comment has been removed by the author.
ReplyDelete