Looking for code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Koch

    Looking for code

    Hello. I am new to Python and for the most part new to programming. The
    best way to learn to write is to read, so I have been looking for a
    website that has the code of programs written in Python. If anyone knows
    of a good place to find something like this, I would be very grateful if
    you could respond.
    Thanks!

  • Peter Hansen

    #2
    Re: Looking for code

    Andy Koch wrote:[color=blue]
    >
    > Hello. I am new to Python and for the most part new to programming. The
    > best way to learn to write is to read, so I have been looking for a
    > website that has the code of programs written in Python. If anyone knows
    > of a good place to find something like this, I would be very grateful if
    > you could respond.[/color]

    Almost all Python code is distributed as .py files, which is the actual
    source, so you shouldn't have to look far to find it.

    Start with the standard distribution: look under your /python/lib folder
    (adjust path to your own situation) and check it out: more code than you're
    likely to want to read right now. :-)

    Also download just about *any* Python program, starting from links on
    www.python.org, or searching at SourceForge.net , and you'll find lots
    of source to peruse.

    Also make sure you've followed through the tutorial and other beginner
    materials, again linked from www.python.org.

    -Peter

    Comment

    • newview

      #3
      Re: Looking for code

      Andy Koch wrote:[color=blue]
      > Hello. I am new to Python and for the most part new to programming. The
      > best way to learn to write is to read, so I have been looking for a
      > website that has the code of programs written in Python. If anyone knows
      > of a good place to find something like this, I would be very grateful if
      > you could respond.
      > Thanks!
      >[/color]

      Three to start with....

      The official home of the Python Programming Language

      // naturally!

      Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

      O'Reillys' open source community portal thing, with a good python
      section. Leads to many more good sites, not just Python. (Apparently
      LAMP is an acronym LinuxApacheMySQ LPerl, but they had to let Python join
      the party!)

      http://www.uselesspython.com/ // you said you wanted to see code


      Comment

      • Irmen de Jong

        #4
        Re: Looking for code

        Andy Koch wrote:[color=blue]
        > Hello. I am new to Python and for the most part new to programming. The
        > best way to learn to write is to read, so I have been looking for a
        > website that has the code of programs written in Python. If anyone knows
        > of a good place to find something like this, I would be very grateful if
        > you could respond.[/color]

        Hello Andy and welcome!

        Have you looked at http://www.python.org/topics/learn/ ?
        It contains a lot of links to interesting sites.

        You might also just want to browse the Python projects
        on sourceforge: http://sourceforge.net/softwaremap/t...p?form_cat=178


        --Irmen

        Comment

        • BW Glitch

          #5
          Re: Looking for code

          Andy Koch wrote:
          [color=blue]
          > Hello. I am new to Python and for the most part new to programming. The
          > best way to learn to write is to read, so I have been looking for a
          > website that has the code of programs written in Python. If anyone knows
          > of a good place to find something like this, I would be very grateful if
          > you could respond.
          > Thanks!
          >[/color]

          Useless Python ( http://www.uselesspython.com ) and the Vaults of
          Parnassus ( http://py.vaults.ca/ ) are good places to check out.

          Ahem, <shamless plug>my site ( http://andres980.tripod.com/sw/ ) has a
          couple of programs I've done in Python.</shameless plug>

          --
          Andres Rosado

          The battle isn't over until the last Decepticon has fallen.
          -- Big Hauler (G1)

          Comment

          • Andrei

            #6
            Re: Looking for code

            Andy Koch wrote on Tue, 18 Nov 2003 21:15:33 GMT:
            [color=blue]
            > Hello. I am new to Python and for the most part new to programming. The
            > best way to learn to write is to read, so I have been looking for a
            > website that has the code of programs written in Python. If anyone knows
            > of a good place to find something like this, I would be very grateful if
            > you could respond.
            > Thanks![/color]

            The obvious place to look for relatively simple snippets is
            http://uselesspython.com. But Vaults of Parnassus is nice too.

            --
            Yours,

            Andrei

            =====
            Mail address in header catches spam. Real contact info (decode with rot13):
            cebwrpg5@jnanqb b.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
            gur yvfg, fb gurer'f ab arrq gb PP.


            Comment

            • Terry Reedy

              #7
              Re: Looking for code


              "Andy Koch" <andy@fourkochs .com> wrote in message
              news:VZvub.1392 2$Kb3.975852@tw ister.southeast .rr.com...[color=blue]
              > Hello. I am new to Python and for the most part new to programming.[/color]
              The[color=blue]
              > best way to learn to write is to read, so I have been looking for a
              > website that has the code of programs written in Python. If anyone[/color]
              knows[color=blue]
              > of a good place to find something like this, I would be very[/color]
              grateful if[color=blue]
              > you could respond.[/color]

              Python Cookbook has lots of short, potentially useful, programs.


              There is also a print edition.

              tjr


              Comment

              • Chris Gray

                #8
                Re: Looking for code

                On Tue, 18 Nov 2003, Terry Reedy wrote:[color=blue]
                > "Andy Koch" <andy@fourkochs .com> wrote in message
                > news:VZvub.1392 2$Kb3.975852@tw ister.southeast .rr.com...[color=green]
                > > Hello. I am new to Python and for the most part new to programming.[/color]
                > The[color=green]
                > > best way to learn to write is to read, so I have been looking for a
                > > website that has the code of programs written in Python. If anyone[/color]
                > knows[color=green]
                > > of a good place to find something like this, I would be very[/color]
                > grateful if[color=green]
                > > you could respond.[/color]
                >
                > Python Cookbook has lots of short, potentially useful, programs.
                > http://aspn.activestate.com/ASPN/Cookbook/Python
                >
                > There is also a print edition.[/color]

                Also worth checking out is Martin C. Brown's Python Annotated Archives:
                <http://www.amazon.com/exec/obidos/tg/detail/-/0072121041/qid=1069252646/sr=1-12/ref=sr_1_12/002-1717347-1412057?v=glanc e&s=books>

                Not everyone likes it, but it is guided tour through the complete source
                code for a number of Python applications, many of them right out of the
                standard library. If you like learning that way you may find it quite
                helpful. I have.

                Chris Gray
                "Okey dokey.. free my mind. Right, no problem, free my mind, free my mind,
                no problem, right... " -The Matrix


                Comment

                Working...