in development, geek stuff, general

Things I didn’t know about Python

  • Google makes extensive use of Python in its web search system, and employs Python’s creator.

  • The YouTube video sharing service is largely written in Python.

  • The popular BitTorrent peer-to-peer file sharing system is a Python program.

  • Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM use Python for hardware testing.

  • Industrial Light & Magic, Pixar, and others use Python in the production of movie animation.

  • JPMorgan Chase, UBS, Getco, and Citadel apply Python for financial market forecasting.

  • NASA, Los Alamos, Fermilab, JPL, and others use Python for scientific programming tasks.

  • iRobot uses Python to develop commercial robotic vacuum cleaners.

  • ESRI uses Python as an end-user customization tool for its popular GIS mapping products.

  • The NSA uses Python for cryptography and intelligence analysis.

  • The IronPort email server product uses more than 1 million lines of Python code to do its job.

  • The One Laptop Per Child (OLPC) project builds its user interface and activity model in Python.

That typingimport this on the Python shell would spill out the “The Zen of Python”:

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!

Source:

Learning Python, 3rd Edition

by Mark Lutz

Publisher: O’Reilly Media, Inc.

Pub Date: July 16, 2008

Print ISBN-13: 978-0-596-51398-6

Write a Comment

Comment