Re: That's really high-level: bits of beautiful python

2006-02-22 Thread gene tani
Jeffrey Schwab wrote: > Max wrote: > > I was just thinking perhaps we should create some kind of collection of > > bits of "impressive" code like this. > > Do you mean something like the ASPN Cookbooks? > > http://aspn.activestate.com/ASPN/Cookbook/ > repositories, indexes and search engine

Re: That's really high-level: bits of beautiful python

2006-02-22 Thread Jeffrey Schwab
Max wrote: > I have a friend who has been programming in C for many years, and he is > a great fan of the language. However, he (and I) are about to start a > python course, and he has been asking me a lot of questions. He often > responds to my answers with "Urgh! Object-orientation!" and suchl

Re: That's really high-level: bits of beautiful python

2006-02-21 Thread Rocco Moretti
Max wrote: > But today we were discussing the problem of running externally-provided > code (e.g. add-on modules). Neither of us knew how to do it in C, though > I suggested using DLLs. However, I quickly installed python on his > laptop and coded this: > > exec "import %s as ext_mod" % raw_in

That's really high-level: bits of beautiful python

2006-02-21 Thread Max
I have a friend who has been programming in C for many years, and he is a great fan of the language. However, he (and I) are about to start a python course, and he has been asking me a lot of questions. He often responds to my answers with "Urgh! Object-orientation!" and suchlike. But today we