Thread: Python?

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    In A Corner *with* A Computer!
    Posts
    60
    Rep Power
    11

    Question Python?


    I've heard A LOT of good things about Python, but no one has ever told me what exactly Python is... I figured out it's a programming language, but is it for offline applications or online applications? Is the program coding like Perl?
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    Certainly; anything you imagine Perl could do, Python can too. Internet Servers and clients, networking apps, Desktop apps, database interfaces, humble shell scripts etc.. etc..

    I don't want to encourage a Perl versus Python debate but Python does not suffer from line noise in the way Perl does. It is easier to learn, read, write and maintain.


    Spend a little time with Python, it's worth it

    grim
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    From the Python.org "What is Python?" page at http://www.python.org/doc/Summary.html:

    Code:
    Python is an interpreted, interactive, object-oriented 
    programming language. It is often compared to Tcl, Perl, 
    Scheme or Java.
    
    Python combines remarkable power with very clear syntax. It 
    has modules, classes, exceptions, very high level dynamic 
    data types, and dynamic typing. There are interfaces to many
     system calls and libraries, as well as to various windowing 
    systems (X11, Motif, Tk, Mac, MFC). New built-in modules are
     easily written in C or C++. Python is also usable as an
     extension language for applications that need a 
    programmable interface.
    
    The Python implementation is portable: it runs on many 
    brands of UNIX, on Windows, OS/2, Mac, Amiga, and many 
    other platforms. If your favorite system isn't listed here, it 
    may still be supported, if there's a C compiler for it. Ask 
    around on news:comp.lang.python -- or just try compiling 
    Python yourself.
    Thats a pretty good summary. But from a developers point of view, using Python puts you in a win-win situation. It may lack some of the resources that perl does, for instance [CPAN], but the friendly attitude of the Python community more than makes up for that .

    Definatly give Python a go, if only for a little fun.

    Mark.
    programming language development: www.netytan.com Hula

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    In A Corner *with* A Computer!
    Posts
    60
    Rep Power
    11
    Do you recommend any books on Python?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    23
    Rep Power
    0
    Dive into python (www.diveintopython.org)
  10. #6
  11. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    Maybe Learning Python by O'Reilly publishers, too, although Dive Into Python is the one I used more.
  12. #7
  13. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    It really depends on what you want to do with Python. But I would definatly grab a copy of the "Learning Python" second edition; "Programming Python" also, makes a good read along side this one.

    But don't forget that there's a lot of documentation online, so if you don't feel like running straight out and buying one of these books you might want to read though the official Python tutorial:

    http://docs.python.org/tut/tut.html

    Mark.
    programming language development: www.netytan.com Hula

  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Location
    UIUC
    Posts
    4
    Rep Power
    0
    Python Programming for the Absolute Beginner

    This is a superb and straightforward introduction. There are code examples for every new subject and command structure. Every chapter ends with you making a neat little game, so it's not quite as dry as many other "Learn It Yourself in Less Time Than Reasonable" books, and certainly less dry than any U course text you may pick up. Each chapter also ends with a short set of Machine Problems [Challenges], which are basically fun homeworks to challenge your understanding of the concepts learned so far and cement the programming mentality.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    In A Corner *with* A Computer!
    Posts
    60
    Rep Power
    11
    Thanks for all of the suggestions!

IMN logo majestic logo threadwatch logo seochat tools logo