
EECS 448 Dr. Douglas Niehaus © 20091
Introduction to Python
EECS 448
Dr. Douglas Niehaus
EECS 448 Dr. Douglas Niehaus © 20092
Overview
Python is an interpreted scripting language which is
easy to use and represents a class of languages
suitable for a range of software projects
Small simple tools
One-off scripts helping with day-to-day SWE
GUI based front ends for configuration files,
command line tools, and system services
Large scale implementations have also been done
Python is comparable to
Perl, Ruby, Bash in many ways
Java in some other ways
Pyton is byte compiled and runs on a VM much as
Perl and Java
EECS 448 Dr. Douglas Niehaus © 20093
Overview
Python was explicitly designed for
Object Orientation
Extension using C/C++
C/C++ implementations of specific capabilities
are made available as Python commands
Support for Modules, which are essentially
libraries providing support for specific activities
Huge number of Python modules for a wide
range of tasks
Data base interface, multi-threading, sockets
and distributed computing, numerical
methods (NumPy), data display (Matplotlib),
graph theory, compression, image
manipulation, bioinformatics, WWW/CGI,
XML
EECS 448 Dr. Douglas Niehaus © 20094
Overview
As a scripting language, Python is dynamically typed
and can be used much more freely than a statically
typed language such as C++
Amazingly powerful code can be written in an
amazingly few lines
It can be scary and even a bit hard to figure out
why is is all working correctly
Python is has been used by Google for many years
for many of its internal implementations
Python creator Guido van Rossum employed in
part to keep developing Python
Red Hat uses Python for Kickstart Linux Setup
Django WWW framework developed at Lawrence
Journal World