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
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.
--
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
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
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
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
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
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
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
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
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
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
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
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
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,
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:
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
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,
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
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
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
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
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.
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
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
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:
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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. :)
--
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
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
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
47 matches
Mail list logo