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-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-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 the

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

2006-06-21 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-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 programming

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 that different

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 excellent version. Not

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, with v1.5.2. 1.5.2 was an

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. That is the

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 current

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-17 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 recuperating for a

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

2006-06-17 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. Same

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-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,

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:

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-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 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 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 programming

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 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 want an unknown

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 another module.

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

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

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:

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

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 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 book

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

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

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, how did

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

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:

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
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

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 learn

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

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: -- So out

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 *need* to

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 learning

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 first

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 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 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 it. I've got

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

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, and