Re: Python is fun (useless social thread) ;-)

2006-06-27 Thread John Salerno
Bruno Desthuilliers wrote: >> Ever seen this from Fuzzyman? It explicitly uses the dict comparison. >> >> http://www.voidspace.org.uk/python/articles/OOP.shtml#introduction > > Nope - and the site seems to be down actually. But thanks for the > pointer anyway. It works for me, at least now. --

Re: Python is fun (useless social thread) ;-)

2006-06-27 Thread Bruno Desthuilliers
BartlebyScrivener wrote: >>You know what are dicts, right ? That is, containers with keyword-access >>to values ? Then you probably have dicts with a known, defined >>structure, and functions working on it. What classes (and hence 00) >>gives you is a way to associate these functions with the dicts

Re: Python is fun (useless social thread) ;-)

2006-06-26 Thread BartlebyScrivener
> You know what are dicts, right ? That is, containers with keyword-access > to values ? Then you probably have dicts with a known, defined > structure, and functions working on it. What classes (and hence 00) > gives you is a way to associate these functions with the dicts > themselves. That is th

Re: Python is fun and useful (was: Python is fun (useless social thread) ; -))

2006-06-25 Thread Jane & Carl
> I believe the applicability of Python and related techniques to > process control, engineering programming, and so on, is vastly > under-appreciated. Conventional wisdom in these domains sees > Visual Basic, Visual C++, and Fortran as suitable vehicles. > You've seen how limiting this is. > > Fo

Python is fun and useful (was: Python is fun (useless social thread) ; -))

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl Trachte <[EMAIL PROTECTED]> wrote: . . . >Yes. I was a production geologist in a copper mine in the mid 90's. Our >mine planning software vendor Mintec (www.mintec.com) had chosen it as >t

Re: Python is fun (useless social thread) ;-)

2006-06-21 Thread AdSR
John Salerno wrote: > Did you have to learn it for a job? No, although it became useful once I learnt it. > Or did you just like what you saw and decided to learn it for fun? I saw Bruce Eckel mention it in "Thinking in Java, 2nd ed." as "something that was slowly becoming his favorite programmi

Re: Python is fun (useless social thread) ;-)

2006-06-21 Thread Bruno Desthuilliers
BartlebyScrivener wrote: You know what are dicts, right ? That is, containers with keyword-access to values ? Then you probably have dicts with a known, defined structure, and functions working on it. What classes (and hence 00) gives you is a way to associate these functions wi

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread Terry Hancock
John Salerno wrote: > Did you have to learn it for a job? No, for me, programming is primarily a hobby. I worked on scientific programming in Fortran in the 1980s and in C in the 1990s. Later I did some sys admin work, and managed to use a bit of Python in that. > Or did you just like what you

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread BartlebyScrivener
>>> You know what are dicts, right ? That is, containers with >>> keyword-access to values ? Then you probably have dicts >>> with a known, defined structure, and functions working on >>> it. What classes (and hence 00) gives you is a way to >>> associate these functions with the dicts themselves.

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread bruno at modulix
Max M wrote: > bruno at modulix wrote: > >> Max M wrote: >> >>> bruno at modulix wrote: >>> > Or did you just like what you saw and decided to learn it for fun? Well, I haven't be really impressed the first time - note that it was at the very end of the last century, w

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread Max M
bruno at modulix wrote: > Max M wrote: >> bruno at modulix wrote: >> Or did you just like what you saw and decided to learn it for fun? >>> >>> Well, I haven't be really impressed the first time - note that it was at >>> the very end of the last century, with v1.5.2. >> >> >> 1.5.2 was an exc

Re: Python is fun (useless social thread) ;-)

2006-06-20 Thread bruno at modulix
Max M wrote: > bruno at modulix wrote: > >>> Or did you just like what you saw and decided to learn it for fun? >> >> >> Well, I haven't be really impressed the first time - note that it was at >> the very end of the last century, with v1.5.2. > > > > 1.5.2 was an excellent version. Not really

Re: Python is fun (useless social thread) ;-)

2006-06-19 Thread H J van Rooyen
Bruno wrote: 8<(snip)-- | The answer is 42. That's all you need to know. Right on, Ford Prefect !!! What's for Lunch? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is fun (useless social thread) ;-)

2006-06-19 Thread Max M
bruno at modulix wrote: >> Or did you just like what you saw and decided to learn it for fun? > > Well, I haven't be really impressed the first time - note that it was at > the very end of the last century, with v1.5.2. 1.5.2 was an excellent version. Not really that different in use than cur

Re: Python is fun (useless social thread) ;-)

2006-06-17 Thread Mirco Wahab
Thus spoke Sybren Stuvel (on 2006-06-17 22:01): > Rune Strand enlightened us with: >> But back on university, I met a very, very pretty C++ girl who said >> many favourable things about Python. > > Rr a very, very pretty girl that likes C++ and Python. > Does it get better? It does: http://

Re: Python is fun (useless social thread) ;-)

2006-06-17 Thread Rune Strand
In 2002, I was in need of a multi-platform language. My choice became Python, in spite of friends fiercly defending Perl and some interesting Slashdot-articles on Ruby. But back on university, I met a very, very pretty C++ girl who said many favourable things about Python. She never became mine, bu

Re: Python is fun (useless social thread) ;-)

2006-06-17 Thread bruno at modulix
John Salerno wrote: (snip) > So out of curiosity, I'm just wondering how everyone else came to learn > it. If you feel like responding, I'll ask my questions for easy quoting: > > Did you have to learn it for a job? It has never been an official requirement for any of the jobs I got since I'm a

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread Alex Martelli
BartlebyScrivener <[EMAIL PROTECTED]> wrote: ... > Especially the Python Cookbook, as I don't normally 'get it' when > someone just describes theory or an abstraction, I also must see an > example. The examples in the Cookbook are useful and also come with > explanations about how they work. Sam

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread Alex Martelli
Dave Opstad <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > John Salerno <[EMAIL PROTECTED]> wrote: > > I had retired from Apple in 2001 after 33 years in the business, feeling > completely burned out. Didn't want to even look at another line of code. > After resting and recuperat

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread bruno at modulix
BartlebyScrivener wrote: (snip) > I am not touching OO, classes, You may not be aware of this, but as soon as you're programming in Python, you *are* using OO. Strings are objects, dicts are objects, tuples are objects, lists are objects, numbers are objects, and even functions and modules are ob

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread bruno at modulix
Scott David Daniels wrote: > BartlebyScrivener wrote: > >> I am not touching OO, classes, or GUIs until I understand >> EVERYTHING else. Could take a few years. ;) > > > You know how modules separate globals, right? That is, what you > write in one module doesn't affect the names in anothe

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread bruno at modulix
BartlebyScrivener wrote: >>>I'd like something a bit like a module, >>>but I'd like to make several of them, >>>and not have them interfere with each other." > > > Thank you. I sense what you are saying, but at this point I'd be > thinking, "Why not just make several modules?" :) Because you wa

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread bruno at modulix
BartlebyScrivener wrote: (snip) > Also, it seems to be a minimalist > language. *seems* minimalist, but is really not - have a look at the object model (metaclasses, descriptors etc), at closures and HOFs and decorators, at list-comp and generators and (coming in 2.5) coroutines... Definitively

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread Mirco Wahab
Thus spoke John Salerno (on 2006-06-15 15:50): > Did you have to learn it for a job? No, I was just interested in things that are found interesting ;-) > Or did you just like what you saw and decided to learn it for fun? I read some remarks, from "both sides", on the feasibility of a programmin

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread André
John Salerno wrote: > So out of curiosity, I'm just wondering how everyone else came to learn > it. If you feel like responding, I'll ask my questions for easy quoting: > > Did you have to learn it for a job? No. My job is purely administrative; I have absolutely no need to do any programming. I

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread Ant
> No, I learned it because Perl was too dirty and Java to complicated. > Now it is part of my daily job. Ditto. I was fed up of writing, compiling and running a java application just in order to do a quick script. I'd used perl, but quite frankly perl's a ridiculous language. Ruby looked promising

Re: Python is fun (useless social thread) ;-)

2006-06-16 Thread Laurent Pointal
John Salerno a écrit : ... > I do, however, think the docs are pretty good, although I sometimes find > myself just wishing that a function definition was simply laid out in an > easy to read format that included all of its parameters, so I would know > exactly what to pass to it (I guess help() is

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Dan Bishop
John Salerno wrote: > So out of curiosity, I'm just wondering how everyone else came to learn > [Python] I first heard about Python in the footnotes for Bruce Eckels' book "Thinking in Java", which I had bought for a Java course I took in 2000. Eventually, I decided to take a look at python.org,

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Remi Villatel
John Salerno wrote: [---CUT---] > So out of curiosity, I'm just wondering how everyone else came to learn > it. [---CUT---] I just needed it. I needed it to recode text files from my old Atari computer for my Linux box. I had already seen Python sources during some googling ses

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Luis M. González
BartlebyScrivener wrote: > >> I'd like something a bit like a module, > >> but I'd like to make several of them, > >> and not have them interfere with each other." > > Thank you. I sense what you are saying, but at this point I'd be > thinking, "Why not just make several modules?" :) I'll get to i

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
Scott David Daniels wrote: > Scott David Daniels wrote: >> John Salerno wrote: > ... > And I didn't quote him at all, so my post looks like it was > attributed to him, rather than in response to his message. Heh heh, I thought that for a few seconds until I realized I didn't pursue a PhD. :) --

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Scott David Daniels
Scott David Daniels wrote: > John Salerno wrote: ... And I didn't quote him at all, so my post looks like it was attributed to him, rather than in response to his message. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Diez B. Roggisch
Sybren Stuvel schrieb: > John Salerno enlightened us with: >> Did you have to learn it for a job? > > Nope, but I do most of my job in Python nowadays. I heard rumours > about it being a nice language. After my first look at it, I was > hooked! > >> Also, how did you go about learning it? > > I

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread BartlebyScrivener
>> I'd like something a bit like a module, >> but I'd like to make several of them, >> and not have them interfere with each other." Thank you. I sense what you are saying, but at this point I'd be thinking, "Why not just make several modules?" :) I'll get to it. I've got my hands full just learni

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Jarek Zgoda
John Salerno napisał(a): >> And I still don't get this "web application" hype, and all these "web >> frameworks" scare me, as I internally don't trust any magic. > > Yeah, I dabbled with CGI, but I haven't seriously looked into anything > like TurboGears yet. Of course, my problem is that I don't

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Carl Trachte
Original Message Subject: Re: Python is fun (useless social thread) ;-) From:"Carl Trachte" <[EMAIL PROTECTED]> Date:Thu, June 15, 2006 8:21 am To: --

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Scott David Daniels
John Salerno wrote: When I was pursuing a PhD, I was working on query optimization in object-oriented databases. My thesis was that you could actually do query optimization without breaking encapsulation, and I had several tricks that I knew how to use to do that. I needed a language in the DB th

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
Jarek Zgoda wrote: > And I still don't get this "web application" hype, and all these "web > frameworks" scare me, as I internally don't trust any magic. > Yeah, I dabbled with CGI, but I haven't seriously looked into anything like TurboGears yet. Of course, my problem is that I don't *need* to

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
BartlebyScrivener wrote: > I am not touching OO, classes, or GUIs until I understand EVERYTHING > else. Could take a few years. ;) LOL. That's exactly why I love Python, because you don't have to mess with any of that (explicitly) if you don't want to! Of course, here I am probably going way ov

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Scott David Daniels
BartlebyScrivener wrote: > I am not touching OO, classes, or GUIs until I understand > EVERYTHING else. Could take a few years. ;) You know how modules separate globals, right? That is, what you write in one module doesn't affect the names in another module. What classes (and hence OO) give

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
Michele Simionato wrote: > John Salerno wrote: >> So out of curiosity, I'm just wondering how everyone else came to learn >> it. > > I have already reported my first experiences with Python here: > http://groups.google.com/group/comp.lang.python/browse_frm/thread/2afa89689e897039/3d77eba36a97751d?

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Fredrik Lundh
Sybren Stuvel wrote: >> Are there still some things you feel you need to learn or improve? > > I'd love to be able to calll functions from Windows DLLs on x86 Linux. call functions *in* DLLs, you mean? http://docs.python.org/dev/lib/module-ctypes.html http://starship.python.net/crew/t

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Jarek Zgoda
John Salerno napisał(a): > So out of curiosity, I'm just wondering how everyone else came to learn > it. If you feel like responding, I'll ask my questions for easy quoting: > > Did you have to learn it for a job? > > Or did you just like what you saw and decided to learn it for fun? > > Also,

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread BartlebyScrivener
>> Did you have to learn it for a job? No. >> Or did you just like what you saw and decided to learn it for fun? Tried Perl first, but since I don't use it every day (sometimes don't do anything but RUN scripts for weeks on end if I'm in a big project), I would forget all of the Perl between lea

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Michele Simionato
Thomas Guettler wrote: > There are some things in Python I don't know very well: Decorators and > generators. Then you should come at EuroPython and attend at my talk! ;) But if you can't come to Switzerland, you can always look at http://www.phyast.pitt.edu/~micheles/python/decorator.zip http://

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: I had retired from Apple in 2001 after 33 years in the business, feeling completely burned out. Didn't want to even look at another line of code. After resting and recuperating for a couple years, though, I picked up a boo

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Luis M. González
Thomas Guettler wrote: > There are some things in Python I don't know very well: Decorators and > generators. But somehow I don't think that I really need them. I think that I learn best when I have a problem and I'm trying to solve it. There are features that you don't know what they're for, and

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Thomas Guettler
> Did you have to learn it for a job? No, I learned it because Perl was too dirty and Java to complicated. Now it is part of my daily job. > Also, how did you go about learning it? Programming, reading this newsgroup, reading the python cookbook, reading python source files of the standard libr

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Michele Simionato
John Salerno wrote: > So out of curiosity, I'm just wondering how everyone else came to learn > it. I have already reported my first experiences with Python here: http://groups.google.com/group/comp.lang.python/browse_frm/thread/2afa89689e897039/3d77eba36a97751d?q=simionato+my+first+python&rnum=3#

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Grant Edwards
On 2006-06-15, John Salerno <[EMAIL PROTECTED]> wrote: > So out of curiosity, I'm just wondering how everyone else came > to learn it. If you feel like responding, I'll ask my > questions for easy quoting: I didn't want to use Outlook to read my e-mail, so I needed a way to get them onto a non-MS

Python is fun (useless social thread) ;-)

2006-06-15 Thread John Salerno
I have to say, I'm having a very enjoyable time learning and using Python. I spent a year playing around with C# and I feel like I learned/know less about it than I do about Python from just the past couple of months. Of course it's easier, but there's just something about it that makes me keep