English keywords used where other languages use punctuation (and, or, not…) • Aims for simplicity and generality • The Python mantra: There should be one—and preferably only one— obvious way to do it • As opposed to the Perl and Ruby mantra: There's more than one way to do it Wikipedia
model • Managed by the non-profit Python Software Foundation (PSF) • CPython is the reference implementation of Python • Other implementations: – IronPython for .NET framework, written in C# – Jython for Java framework – PyPy interpreter and JIT compiler, written in Python – MicroPython for microcontrollers and embedded systems – … Wikipedia
Rossum in the Netherlands • Python 2.0 released Oct 2000 • Many major new features: – cycle-detecting garbage collector – support for Unicode – shift to transparent and community-backed development • Python 3.0 released Dec 2008 – major backwards-incompatible release – many of major features backported to Python 2.6 and 2.7 • Python 3.7 released June 2018 • Python 3.8 alpha released; final version October 2019
a central role in deciding the direction of Python development • Titled by the Python community: Benevolent Dictator for Life (BDFL) • Employed by Google 2005-2012 • Spent half his time developing Python • Since 2013 works for Dropbox • Spends half his time developing Python… Wikipedia Homepage
closed and proprietary – You cannot see the code – You cannot change the code – You can participate in the discussion as a client • Python source code is open – You can see, you can change, you can contribute code and documentation (python, numpy) – You can participate in the discussion as a peer (python, numpy)
a Dropbox Engineer presented at PyCon 2011: • 99.9 % of code in Python. • Server backend, desktop client, website controller logic, API backend, and analytics. • Run on a single code base using Python: Windows, Mac, Linux using tools like PyObjs, WxPython, types, py2exe, py2app, PyWin32. • Python helped iterate fast through error cases they experienced on the wide variety of platforms they support. • Use C for inner loops - optimizing CPU is easy. • Custom memory allocator - optimizing memory is harder. See more at highscalability
• In 1997 they started redesigning the system architecture • Python was suggested • Concern if a scripting language is suitable for the bulk of the code • Some favored significant portions of code in C++ • Everybody seemed to have a preference that wasn't Python • After much discussion, Python prevailed • The project was a huge success • Rebuilt 8 years of software development effort in less <2 years with a smaller team • Success attributed largely to Python - it is very easy to develop code quickly: 1. Python requires less supporting code – less boilerplate 2. Python speeds the development cycle – no compilation 3. Python facilitates debugging – even without using debugger • Later on, moving the system from OS/2 to Linux required almost no effort Michael Muller, https://www.python.org/about/success/philips/
of meaningful whitespace, you realize how much it makes sense. Famous entrepreneur and investor Paul Graham: You spend more time reading code than writing it. You push blobs of source code around the way a sculptor does blobs of clay. So a language that makes source code ugly is maddening to an exacting programmer, as clay full of lumps would be to a sculptor. The Python Paradox, by Paul Graham
functions, classes, and more • The implied usefulness is that these things each have their own members and methods that encapsulate its functionality and information • Strong polymorphism