a python book hint

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eduardo Patto Kanegae

    a python book hint

    Hello,

    I have been programming with Visual Basic and PHP in the last 5 years and some folks had recommended Python a free language....

    I had looked for a Python book to start up but found many titles...

    so, my question finally is: what book could be for a Python beginner - but NOT a programming beginner - which intends to develop *windowed* Python programms and intends to develop for Windows and for Linux?

    for example, look at Thuban software ( http://thuban.intevation.org/ ) which runs on Linux and Win plataforms.

    thanks in advance.

    Eduardo Patto Kanegae
    http://www.consultoria.eti.br - BRASIL
    Fórum ptMapServer - http://www.consultoria.eti.br/mapserverptforum/
    ClickBrasil - http://www.consultoria.eti.br/clickbrasil/
    *************** *************** *********
    ***Fim da Mensagem / End of Message ***
    *************** *************** *********


  • Alex Martelli

    #2
    Re: a python book hint

    Eduardo Patto Kanegae wrote:
    [color=blue]
    > Hello,
    >
    > I have been programming with Visual Basic and PHP in the last 5 years and
    > some folks had recommended Python a free language....
    >
    > I had looked for a Python book to start up but found many titles...
    >
    > so, my question finally is: what book could be for a Python beginner -
    > but NOT a programming beginner - which intends to develop *windowed*
    > Python programms and intends to develop for Windows and for Linux?
    >
    > for example, look at Thuban software ( http://thuban.intevation.org/ )
    > which runs on Linux and Win plataforms.[/color]

    Hetland's "Practical Python" is a good book, particularly if you like
    _meaty_ examples (my own "Python in a Nutshell" has less purely tutorial
    material, and the examples are small, illustrating single simple points;
    thus, it's more of a "concise desktop reference" than an introduction).

    Most other books are unfortunately a bit dated, but these two do cover
    Python 2.2 (and the current 2.3 has basically no language-level changes
    wrt to 2.2 -- it's mostly faster and more robust, with small additions
    to the built-ins and more substantial ones to the standard library).


    Alex

    Comment

    • Cameron Laird

      #3
      Re: a python book hint

      In article <tjusb.11735$9_ .439752@news1.t in.it>,
      Alex Martelli <aleax@aleax.it > wrote:[color=blue]
      >Eduardo Patto Kanegae wrote:[/color]

      Comment

      • Nick Vargish

        #4
        Re: a python book hint

        Alex Martelli is too modest about his own book, so let me tout it
        here...

        Python in a Nutshell is an excellent reference, with quite a bit of
        expository material. It has examples, and details of how much of the
        standard library works. If you're experienced with other languages, it
        and the official tutorial should be more than enough to get you into
        the swing of things. The tutorial can be found at:

        The official home of the Python Programming Language


        The Python Cookbook (which Alex edited and contributed to) is still my
        favorite Python book. It's chock-full of useful real-world
        recipes. Many of them are quite mind-expanding, and demonstrate in
        concrete ways how to get the most out of Python.

        Nick

        --
        # sigmask || 0.2 || 20030107 || public domain || feed this to a python
        print reduce(lambda x,y:x+chr(ord(y )-1),' Ojdl!Wbshjti!=o bwAcboefstobudi/psh?')

        Comment

        • Cameron Laird

          #5
          Re: a python book hint

          In article <m3llqljsqz.fsf @tanelorn.bande rsnatch.org>,
          Nick Vargish <nav+posts@band ersnatch.org> wrote:[color=blue]
          >Alex Martelli is too modest about his own book, so let me tout it
          >here...
          >
          >Python in a Nutshell is an excellent reference, with quite a bit of
          >expository material. It has examples, and details of how much of the[/color]

          Comment

          • Aubrey Hutchison

            #6
            Re: a python book hint


            "Eduardo Patto Kanegae" <eduardo@consul toria.eti.br> wrote in message news:mailman.66 7.1068654362.70 2.python-list@python.org ...[color=blue]
            > Hello,
            >
            > I have been programming with Visual Basic and PHP in the last 5 years and some folks had recommended Python a free language....
            >
            > I had looked for a Python book to start up but found many titles...
            >
            > so, my question finally is: what book could be for a Python beginner - but NOT a programming beginner - which intends to develop *windowed* Python programms and intends to develop for Windows and for Linux?
            >
            > for example, look at Thuban software ( http://thuban.intevation.org/ ) which runs on Linux and Win plataforms.
            >
            > thanks in advance.
            >
            > Eduardo Patto Kanegae
            > http://www.consultoria.eti.br - BRASIL
            > Fórum ptMapServer - http://www.consultoria.eti.br/mapserverptforum/
            > ClickBrasil - http://www.consultoria.eti.br/clickbrasil/
            > *************** *************** *********
            > ***Fim da Mensagem / End of Message ***
            > *************** *************** *********[/color]

            I am sorry to say -- I have the same basic problem...

            It appears that if you want to read about
            1)--perl
            2)--"C"
            3)--jokes in a techinical book
            4)-- British TV
            5)-- Family history stuff
            6)-- and so on.....
            then purchase any of the sorted books on Python.

            But if you want a book like, for example the manuals of the old Microsoft Quickbasic which sticks to the core subject, that presents Python such as;
            "This is Python"
            the book is hidden in the market place or has not been written yet.
            I have search and amoung all I have collected, you still need to use more than one to fully understand or use Python.

            Aubrey Hutchison

            Comment

            • Cameron Laird

              #7
              Re: a python book hint

              In article <_fydneqCioX5 Ki-iRVn-iw@comcast.com> ,
              Aubrey Hutchison <abhjrpe@comcas t.net> wrote:

              Comment

              • Alex Martelli

                #8
                Re: a python book hint

                Cameron Laird wrote:
                [color=blue]
                > In article <_fydneqCioX5 Ki-iRVn-iw@comcast.com> ,
                > Aubrey Hutchison <abhjrpe@comcas t.net> wrote:[/color]
                ...[color=blue][color=green]
                >>It appears that if you want to read about
                >> 1)--perl
                >> 2)--"C"
                >> 3)--jokes in a techinical book
                >> 4)-- British TV
                >> 5)-- Family history stuff
                >> 6)-- and so on.....[/color][/color]
                ...[color=blue]
                > ? I don't think I understand. I believe you're saying that
                > such books as *Python in a Nutshell*, *Core Python Program-
                > ming*, *Text Processing in Python*, *Learn to Program Using
                > Python*, ... fail to "stick to the core subject". Do I have
                > that right? What do you see as examples of this fault?[/color]

                "Python in a Nutshell" _DOES_ show how to extend Python
                with C (chapter 24, 35 pages out of 636), thus presumably
                hitting Aubrey's trigger [2]; does mention and thanks some
                relatives in one line in the Acknowledgments , thus presumably
                hitting trigger [5]; does take half a page to (e.g.) explain
                about HTTP cookies rather than requiring the reader to be
                totally familiar with them, thus presumably hitting trigger
                [6]. I _think_ my editor managed to find and zap all of my
                few attempts at dry humor, and the book surely has nothing
                about perl nor British TV, but still, it's not _100%_
                Python: I would guess _about_ 93.2% or so (if one considers
                "extending Python with C" to be "not Python" -- alas, the
                subject is FAR too useful to many readers for me to ever
                consider removing it, as, I believe, are the brief capsules
                or URLs about not-familiar-to-ALL technologies which I have
                before expanding on how Python interfaces to them...).


                Alex

                Comment

                • Alex Martelli

                  #9
                  Re: a python book hint

                  Nick Vargish wrote:
                  [color=blue]
                  > Alex Martelli is too modest about his own book, so let me tout it
                  > here...[/color]

                  Heh, first time I've ever been accused of _THAT_ defect -- modesty!

                  I appreciate the kudos, and I _have_ heard from several people who
                  actually taught themselves Python with the "Nutshell", but my opinion
                  is that those people are _pretty smart_ ones (as well, probably, as
                  experienced). Beginners were _not_ the target audience for "Python
                  in a Nutshell". Of course, sufficiently smart people can and do
                  teach themselves subjects from reference books (particularly books that
                  are reasonably clear and well-structured), even subjects more arcane
                  than Python, which, after all, IS a language designed to be simple
                  to learn. However, I suspect they're a minority.

                  Fortunately is IS quite easy to check: e.g. you can visit
                  safari.oreily.c om, subscribe, and read Python in a Nutshell (and/or
                  many, MANY other books) online for 2 weeks; be sure to cancel the
                  subscription within 14 days, though, unless you appreciate the
                  Safari site enough to pay for it -- only the first 2 weeks are
                  free! Still, 2 weeks should be plenty for you to determine if
                  the Nutshell (or any other book you're considering) is in fact
                  going to be helpful to you personally -- browsing in a store has
                  the advantage of letting you check the physical layout &c, but
                  most stores would complain if you kept browsing for 2 weeks!-)

                  [color=blue]
                  > The Python Cookbook (which Alex edited and contributed to) is still my
                  > favorite Python book. It's chock-full of useful real-world
                  > recipes. Many of them are quite mind-expanding, and demonstrate in
                  > concrete ways how to get the most out of Python.[/color]

                  Again, thanks. The Cookbook is on Safari, too, by the way -- so
                  you don't need to purchase it "blindly" based on favourable reviews,
                  either; you can check it out for yourself.


                  Alex

                  Comment

                  • Alex Martelli

                    #10
                    Re: a python book hint

                    Cameron Laird wrote:
                    ...[color=blue][color=green]
                    >>Hetland's "Practical Python" is a good book, particularly if you like[/color][/color]
                    ...[color=blue][color=green]
                    >>Most other books are unfortunately a bit dated, but these two do cover[/color][/color]
                    ...[color=blue]
                    > David's book is as current as any, but lacks the
                    > GUI-for-Windows emphasis the original poster ap-
                    > parently wishes.
                    >
                    > David Mertz, that is, not David Ascher. If this
                    > were a voice posting it'd be obvious.[/color]

                    True -- silly me; David Mertz's "Text Processing in Python" is indeed
                    current (and also readable online). I don't think of it as suitable
                    for beginners, but it IS actually possible to teach yourself Python
                    from David's Appendix A, at least in theory (it _is_ a bit "short and
                    impressionistic " for that, as its title suggests, but still...).


                    Alex

                    Comment

                    • Cameron Laird

                      #11
                      Re: a python book hint

                      In article <OkPsb.16752$9_ .600184@news1.t in.it>,
                      Alex Martelli <aleax@aleax.it > wrote:

                      Comment

                      • Cameron Laird

                        #12
                        Re: a python book hint

                        In article <IoPsb.16777$9_ .600861@news1.t in.it>,
                        Alex Martelli <aleax@aleax.it > wrote:

                        Comment

                        • Michele Simionato

                          #13
                          Re: a python book hint

                          claird@lairds.c om (Cameron Laird) wrote in message news:<vr7ksd801 ks80d@corp.supe rnews.com>...[color=blue]
                          > I've been writing and rewriting a review of *TPIP* since (before?) its
                          > publication (to David's frustration--it'd be better for him if I just
                          > published *something* about it, rather than reworking so much). *I*
                          > don't think it's for beginners, and in fact I think it's going to lose
                          > a lot of the current crop of professionals. I like the book, but I
                          > think it's too demanding for many of the people who might consider it.
                          >
                          > I've been surprised, though, how much enthusiasm it's inspired already
                          > in readers I've encountered.
                          >
                          > My conclusion: I solicit others' views and experience.[/color]

                          too demanding ???

                          A book can be too demanding when it requires the reader to follow a
                          too
                          hard path, meaning that there is an easier, maybe longer, but
                          equivalent
                          path; but a text that take a not-so-trivial matter as text processing
                          and
                          make it as simple as it can be, is not at all too demanding. It is
                          just the
                          opposite!

                          One cannot pretend to learn text processing without a minimal effort,
                          unless
                          he limits himself to a very superficial study; I found David's text
                          really
                          good in the sense of being not more difficult than needed, not too
                          much
                          "academic" but also not too much "practical" (here "practical" means
                          giving
                          a set of practical recipes without any better understanding behind).

                          Alex was right not to cite this book to the OP, since it is NOT a text
                          for
                          Python beginners; actually, in my view, it is not a Python book at
                          all. It
                          is a book on *text processing*: the fact that the chosen language is
                          Python
                          is somewhat secondary, the same concepts could have been expressed in
                          any
                          other language (even if not as well as in Python, of course ;).

                          TPiP is a good book for someone who wants to understand (some of) the
                          theory
                          behind text processing, as well as the practice (I value very much the
                          practice, only I think it should not be disconnected from the theory).
                          It is not a reference book, nor a book of recipes: it is kinda of a
                          textbook.

                          IMO, it is especially suitable to "non-canonical" programmers, people
                          without
                          a computer science background, which still need or want to learn
                          something about
                          parsers, state machines and all the rest, without going trough a real
                          CS
                          course. David is well qualified to understand what are the likely gaps
                          of
                          non-canonical programmers, since himself has a background in
                          philosophy,
                          not in CS and it is clear he learned what it is in his book through
                          self-study
                          (David correct me if I am wrong). OTOH, people with a CS background
                          often give a
                          lot of things for obvious (who said 'reduce' was obvious ?;) which are
                          not
                          obvious to us "amateur" programmers, so they are less effective as
                          teachers
                          (outside academia, I mean).

                          BTW, I read TPiP when it was in fieri, before starting my
                          collaboration with
                          David, so my opinion on the book is not affected by my following work
                          with
                          him (actually the opposite is true).


                          Michele Simionato

                          P.S. I could say equally positive things both for the cookbook and
                          "Python
                          in a nutshell", they are *really* good books, but they are *different*
                          books:
                          they cannot be put in the same category as TPiP, just because they
                          share the word "Python" in the title. The same for "Dive into Python"
                          and "Thinking
                          as a computer scientists": they are all excellent books, but they have
                          different scope and aims.

                          Comment

                          • John J. Lee

                            #14
                            Amazon full-text book index [was: Re: a python book hint]

                            claird@lairds.c om (Cameron Laird) writes:
                            [color=blue]
                            > In article <OkPsb.16752$9_ .600184@news1.t in.it>,[/color]
                            [...][color=blue]
                            > I can't now do Amazon's text-search capabilities justice; they are
                            > making for a sea change of the scale of Google or VoIP or other
                            > "epochal" innovations. Briefly, if there's a book that interests
                            > you, and Amazon has it, it's likely you can bring up any of its
                            > pages on-line. You can sample it freely.[/color]
                            [...]

                            I'm told (bookpeople mailing list) they scanned and OCRed them all,
                            even though books are now always (well, almost always) in machine-
                            readable textual form at some stage in their preparation. A bit sad
                            in terms of duplication of effort, though another recent bookpeople
                            post told the story of somebody's personal first "perfect" OCR of a
                            book: fewer errors in the scan than in the original!

                            The ability to search books is certainly interesting and new (I've
                            tried to find even a tables-of-contents database for books before, and
                            the university librarian told me that no such beast existed). Maybe
                            it's even as important as Google, dunno. It will be missing two
                            central parts of Google, though: instant, zero-marginal cost access to
                            the content, and linking information.


                            John

                            Comment

                            • David Mertz

                              #15
                              Re: a python book hint

                              mis6@pitt.edu (Michele Simionato) wrote previously:
                              |IMO, it is especially suitable to "non-canonical" programmers, people
                              |without a computer science background, which still need or want to learn
                              |something about parsers, state machines and all the rest, without going
                              |trough a real CS course. David is well qualified to understand what are
                              |the likely gaps of non-canonical programmers, since himself has a
                              |background in philosophy, not in CS and it is clear he learned what it
                              |is in his book through self-study (David correct me if I am wrong).

                              Thank you Michele for the insightful characterizatio n of my book. I
                              certainly do not disagree. I suppose it could be called "Text
                              Processing for Philosophers" equally well (and have almost the same
                              initials).

                              In fact, there is a line I put in my book, playing off Larry Wall's
                              "virtues of programmers" (p.xi in the printed version, or within
                              intro.txt for the online one). I think most readers either gloss over
                              it or think I am making a little joke. But I'm actually quite esrnest
                              in writing:

                              The goal of this book is to make its readers a little lazier, a
                              smidgeon more impatient, and a whole bunch more hubristic. Python
                              just happens to be the language best suited to the study of virtue.

                              I tried to write a textbook in ethics.

                              Yours, David...

                              --
                              ---[ to our friends at TLAs (spread the word) ]--------------------------
                              Echelon North Korea Nazi cracking spy smuggle Columbia fissionable Stego
                              White Water strategic Clinton Delta Force militia TEMPEST Libya Mossad
                              ---[ Postmodern Enterprises <mertz@gnosis.c x> ]--------------------------


                              Comment

                              Working...