lectur10 - ProgramminginPython Part#1 1 Whoisusingit...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Programming in Python Part #1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Who is using it? Google (various projects) NASA (several projects) NYSE (one of only three languages "on the floor") RealNetworks (function and load testing) RedHat (Linux installation tools) LLNL, Fermilab (steering scientific applications) Zope Corporation (content management) ObjectDomain (embedded Jython in UML tool) Alice project at CMU (accessible 3D graphics) More success stories at  www.pythonology.com
Background image of page 2
3 Language properties Everything is an object Packages, modules, classes, functions Exception handling Dynamic typing, polymorphism Static scoping Operator overloading Indentation for block structure Otherwise conventional syntax
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 High-level data types Numbers: int, long, float, complex Strings Lists and dictionaries: containers Other types for e.g. binary data, regular  expressions Extension modules can define new “built-in” data types
Background image of page 4
5 Interfaces to. .. XML DOM, expat XMLRPC, SOAP, Web Services Relational databases MySQL, PostgreSQL, Oracle , ODBC, Sybase, Informix Java (via Jython) Objective C COM, DCOM (.NET too) Many GUI libraries cross-platform Tk, wxWindows, GTK, Qt platform-specific MFC, Mac (classic, Cocoa), X11
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Compared to Perl Easier to learn very important for infrequent users More readable code More maintainable code Fewer “magical” side effects More “safety” guarantees Better Java integration
Background image of page 6
7 Compared to Java Code up to 5 times shorter and more readable Dynamic typing Multiple inheritance, operator overloading Quicker development no compilation phase less typing Yes, it may run a bit slower but development is much faster and Python uses less memory (studies show) Similar (but more so) for C/C++
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8 Jython Seamless integration with Java Separate implementation Implements the same language Different set of standard modules differences in “gray areas” e.g. some different calls different command line options, etc.
Background image of page 8
9 Jython's Java integration Interactive Compiles directly to Java bytecode Import Java classes directly Subclass Java classes pass instances back to Java Java beans integration Can compile into Java class files
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Basic Python Tutorial shell (introduces numbers, strings, variables) lists (arrays), dictionaries (hashes), tuples variable semantics control structures, functions standard library: files: open(), readline(), read(), readlines(), write(), close(), 
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 51

lectur10 - ProgramminginPython Part#1 1 Whoisusingit...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online