Learning Python (Help for Programmers)

Learning Python (Help for Programmers) by David Ascher and Mark Lutz

Learning Python (Help for Programmers)

Binding:
Paperback
Number of Pages:
384
ISBN:
1565924649
Product Group:
book
Publisher:
O'Reilly Media
Publication Date:
April 7, 1999
BooksForGeeks.com ID:
2422

The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.

First off, Learning Python shows the relationships among Python scripts and their interpreter (in a mostly platform-neutral way). Then, the authors address the mechanics of the language itself, providing illustrations of how Python conceives of numbers, strings and other objects as well as the operators you use to work with them. Dictionaries, lists, tuples and other data structures specific to Python receive plenty of attention including complete examples.

Authors Mark Lutz and David Ascher build on that fundamental information in their discussions of functions and modules, which evolve into coverage of namespaces, classes and the object-oriented aspects of Python programming. There's also information on creating graphical user interfaces (GUIs) for Python applications with Tkinter.

In addition to its careful expository prose, Learning Python includes exercises that both test your Python skills and help reveal more elusive truths about the language.

Reviews for Learning Python (Help for Programmers)

  1. Painfully slow

    Rated 1 out of 5 stars, March 12rd, 2009

    After reading 2/3 of this book I was tearing my hair out. It fails to address either beginners or experience programmers properly. I fall into the latter group, being a perl developer of 10 years.

    For beginners it doesn't explain any programming concepts. So you will be learning python features without grasping what purpose they fill.

    It shows you very methodically the basic forms, constructs and features of the language but not why or how to use them. A good book will show you these features in context early on and walk you through the example code for real use cases highlighting the feature it is showing.

    It should not really be comparing why feature x is differnt in python to C or worrying the reader about future changes to the language. It should give the reader just enough information to start playing with the language by showing the reader basic programs, explaining the concepts and providing good exercises that encourage the reader to think like a programmer.

    Experienced programmers will feel like they are wasting their time I as did. I'm reading Core python now which is considerably better but even that could be arranged better. I'd prefer a summary of data types, conditionals and looping and then get right to the meat and potatoes of functional and oo programming, followed by a more detailed reference. Detailed tables of of datatypes, file open() options should not be at the beginning, they should be in a reference section.

    I got a bit sick of all the monty python references too although it did made me laugh when it asked me what my favourite colour was in one of the exercises - but that unfortunately was it's only redeeming feature.
  2. Learning Python

    Rated 5 out of 5 stars, March 12rd, 2009

    This book is an excellent programming aid for both absolute beginners and more experienced programmers. It provides all the basic knowledge to start programming or tweak other peoples Python basic programs, and explains the concepts of object oriented programming(OOP) in a very clear way, gradually increasing the level of complexity,with good examples throughout.
    Python itself is an extremely elegant basic, and in its present form v 3.0.1, very easy to start using. It has a text editor IDLE to write the code and a shell window to run or test it. It is an interpreted rather than a compiled language, so it runs immediately without the intermediate compiling step The book explains this usage well.
    Although the later sections made my brain hurt at first, as I had not come across the OOP concepts before, I would recommend it thoroughly.
  3. Good grounding in concepts, but needs more contextualising

    Rated 3 out of 5 stars, April 12th, 2008

    I've been learning Python from this book now for a few months. The book is well written, it's clear and the authors 'take care' of the reader. However I doubt whether many total beginners (as I was and still am) are going to read this book and finish feeling that they can now go away and start to work out how to write a decent, simple program. The problem as I see it is that whilst there are good, well explained examples of what a FOR loop might be, and what you would be typing if you want to use functions, WHY you might be wanting to do this is often not covered. It's a bit like learning French by learning the punctuation, the alphabet, the pronunciation, and the vocabulary without knowing what the meaning of the words are, how they are used or how to make sentences. Many more examples of how one might display graphical output for budding gamewriters, or how one might use Windows style interfaces for those who want to write applications are needed for the content of this book to make sense. What is missing here is 'the point' behind learning to program. It's a very 'bottom-up' approach.

    Having said that, this book is great for when you might need clarification on elements of Python, and as a general detailed resource on Python fundamentals.
  4. NOT for beginners.

    Rated 2 out of 5 stars, April 12th, 2008

    While this book may be helpful to experienced programmers who are new to Python, it's emphatically not for those who are hoping to learn programming.

    The authors claim that the only prerequisite for readers is that they know how to use a computer. Sorry, but this really isn't the case at all.

    I don't think I'm a total beginner - In the past, I've had some experience of writing both games and business applications - but after a few weeks of trying to use this book, I've had enough.

    Essentially, here's what to expect from the average chapter: 30 or 40 pages of dry as dust descriptions of various aspects of the language, mostly without any hint of why they are useful or important. The examples given along the way are mostly just 2 or three line of coding which still fail to give the slightest hint why the particular command is useful or worth remembering. Those who have previous programming experience will already know, but this is supposed to be a book for beginners, who will just be increasingly confused.

    Finally, after all the many, many pages of explanations, you get a page or two of practical exercises. Alas, by this time the beginner has forgotten the reams of information already provided, having had no incentive to remember it in the first place.

    My 2-star review is based on the fact that this book markets itself as being for total beginners. It isn't. If you are an experienced programmer looking to learn Python, this book MIGHT be for you. If you're a beginner looking to learn programming, this book has only one use: as a cure for insomnia.
  5. Can that spam, please!

    Rated 1 out of 5 stars, March 12nd, 2006

    I'd like to balance out the reviews here by offering this book the minimum score. The book advertises itself as being appropriate for a first-time programmer, but honestly it's nothing of the sort, and I'm not even a complete first-timer.

    The first two or three chapters are decent enough, and chapter 3 introduces you to the use of modules, and you're writing little programs that do something, and you're feeling good about things... But then the four chapters after that are little more than a geeks' list of features of the Python language (and what makes it different from or similar to C). There is not one single practical example of a program that actually does something useful. It's all just showing what each feature does at the command line. Utterly uninspiring...

    And all the references to the C language - "this is a bit like arrays in C". Are you a beginner? Do you know C? Suppose not... Not for a beginner, at all.

    And the Monty Python references... Well, if you didn't guess that this language was put together by Monty Python fans (in my naivety, I didn't), you'll know it after dredging through a chapter of this book. Every single example (that's the way it seems, at least) uses a string like "ni!", "always look on the bright side of life", "print 'dead' + 'parrot'", "I'm a lumberjack and..." OK, you get the idea. Please get a life, lads.

    Or are you just trying to preserve the Python membership club as an exclusively "Geeks Only" institution?

    I've given up on this book for now. Maybe there'll come a day when I'll wear a tee-shirt that says "SPAM", and I'll have nothing but praise, but If you're a beginner, and you want to save a bit of money, I'd suggest looking at Josh Cogliati's online tutorial. It's a PDF, so you can print it up nicely. He does little proggies that you can work through, and see what the POINT of the thing is. I don't suppose that he goes all the way with the thing (as he says at the end, he lost interest in writing more), but what he did do was pretty handy. No doubt there's quite a lot of other good stuff that you can find on the web. It's bound to be better than this totally unimaginative book. I guess that I'll just be learning as much as I can from Cogliati and other web sources, picking up the pocket reference book, and throwing this book in the same place that I put the spam.

    Unless somebody wants to buy it off me? Ni!

Our Network

BooksForGeeks.com is a participant in the Amazon Europe S.à r.l. Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.co.uk