History of Python
History of Python
guage in widespread use. Python code is clear to read and write, and it is con-
cise without being cryptic. Python is a very expressive language,which means
that we can usually writefar fewer linesof Python code than would be required
for an equivalent application written in, say, C ++ or Java.
Python is a cross-platform language:In general,the same Python program can
be run on Windows and Unix-like systems such as Linux, BSD, and Mac OS X,
simply by copying the file or files that make up the program to the target
machine, with no “building” or compiling necessary. It is possible to create
Python programs that use platform-specific functionality, but this is rarely
necessary since almost all of Python’s standard library and most third-party
libraries are fully and transparently cross-platform.
One of Python’s great strengths is that it comes with a very complete standard
library—this allows us to do such things as download a file from the Internet,
unpack a compressed archive file, or create a web server, all with just one or a
few lines of code. And in addition to the standard library, thousands of third-
party libraries are available, some providing more powerful and sophisticat-
ed facilities than the standard library—for example, the Twisted networking
library and the NumPy numeric library—while others provide functionality
that is too specialized to be included in the standard library—for example, the
SimPy simulationpackage. Mostof thethird-party librariesareavailablefrom
the Python Package Index,
pypi.python.org/pypi
.
Python can be used to program in procedural, object-oriented, and to a lesser
extent, in functional style, although at heart Python is an object-oriented
language. This book shows how to write both procedural and object-oriented
programs, and also teaches Python’s functional programming features.
History of Python
Python was developed by Guido van Rossum in the late eighties and early
nineties at the National Research Institute for Mathematics and Computer
Science in the Netherlands.
Python is copyrighted. Like Perl, Python source code is now available under
the GNU General Public License (GPL).
Python Features
Python's features include −
⦁ Easy-to-read − Python code is more clearly defined and visible to the eyes.
⦁ A broad standard library − Python's bulk of the library is very portable and
cross-platform compatible on UNIX, Windows, and Macintosh.
⦁ Interactive Mode − Python has support for an interactive mode which allows
interactive testing and debugging of snippets of code.
⦁ Portable − Python can run on a wide variety of hardware platforms and has the
same interface on all platforms.
⦁ Extendable − You can add low-level modules to the Python interpreter. These
modules enable programmers to add to or customize their tools to be more
efficient.
⦁ GUI Programming − Python supports GUI applications that can be created and
ported to many system calls, libraries and windows systems, such as Windows
MFC, Macintosh, and the X Window system of Unix.
⦁ Scalable − Python provides a better structure and support for large programs
than shell scripting.
Apart from the above-mentioned features, Python has a big list of good
features, few are listed below −
⦁ It provides very high-level dynamic data types and supports dynamic type
checking.
⦁ It supports automatic garbage collection.
⦁ It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
⦁ Windows − PythonWin is the first Windows interface for Python and is an IDE
with a GUI.
⦁ Macintosh − The Macintosh version of Python along with the IDLE IDE is
available from the main website, downloadable as either MacBinary or BinHex'd
files.