Why Python

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    Why Python - Presentation Transcript

    1. Python
    2.  
    3. History
      • Created by Guido von Rossum in 1990 (BDFL)
      • and named after Monty Python's Flying Circus
      • Influences: ABC, Lisp, Perl, Haskell and Java
      • Developed and supported by a large team of volunteers - Python Software Foundation
      • Major implementations: CPython, Jython, Iron Python, PyPy
    4. E.g. Projects with Python
      • Websites: Google, YouTube, Yahoo Groups & Maps, CIA.gov
      • Systems: NASA, LALN, CERN, Rackspace
      • Games: Civilization 4, Quark (Quake Army Knife)
      • Mobile phones: Nokia S60 (Symbian), PythonCE
      • P2P: BitTorrent
    5. What is Python
      • Very high level scripting-cum-programming language (almost like pseudo-code)
      • Multi-paradigm: OOP, Structured, Functional, Aspect-oriented
      • Multi-platform
      • Dynamic Typing
      • Automatic garbage collector for memory management
    6. Philosophy
      • β€œ there is one -and preferably only one- obvious way to do it”
      • β€œ The long-term usefulness of a language comes not in its ability to support clever hacks, but from how well and how unobtrusively it supports the day-to-day work of programming. The day-to-day work of programming consists not of writing new programs, but mostly reading and modifying existing ones.”
      • - Eric Raymond, 'Why Python?' 2003
    7. Readability
      • Forced indentation
      • No curly brackets / do..end / if...endif
      • No semicolons
    8. Syntax
      • Types:
      • str, unicode
      • list, tuple, set
      • dict
      • int, float, complex, bool
      • Conditions:
      • if, elif, else
      • Loops:
      • for...in
      • while
    9. Why Python?
      • Readability, maintainability
      • Fast development and all just works the first time...
      • Dynamic typing and automatic memory management
      • Paradigm of your choice
      • Extensive library
    10.  
    11. Some problems
      • Scripting-like language and compiled and runtime - hence slower than C/C++ and slightly slower than Java
      • Memory economy hard to achieve (high level data-structures)
      • Multiprocessing and Global interpreter lock
    12. EXAMPLES
    13. Example: Old Directory Cleanup Script
    14. Example: Simple XML Processing
    15. Example: Simple Spell Checker in 21 Lines

    + arnavarnav, 2 years ago

    custom

    552 views, 3 favs, 1 embeds more stats

    A quick talk I gave at work on Python, its philosop more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 552
      • 527 on SlideShare
      • 25 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 31
    Most viewed embeds
    • 25 views on http://arnavk.blogspot.com

    more

    All embeds
    • 25 views on http://arnavk.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories