Python 2.2 Released 19
742Evergreen writes: "Another Christmas present for the developers: Python 2.2 has been released!
A 'What's new' can be found here. Python 2.2 can be found here.
Documentation is here."
Ummm, well, OK. The network's the network, the computer's the computer. Sorry for the confusion. -- Sun Microsystems
Too late (Score:2)
nice 1, thanks guys (Score:1)
i already love python in functional programming mode
well do Guido & the guys
Meryy Chrismarse
Re:nice 1, thanks guys (Score:1)
It'd sure be nice if Python had useful lambdas, though.
Peace,
(jfb)
Re:nice 1, thanks guys (Score:1)
However, Python + the "functional" module were one of the reasons for
me to try O'Caml, which makes a very nice complement where speed
matters more (also, type checking and generally more "strictness" are
a Good Thing sometimes).
Python lambda weakness (Score:1)
From the Python documentation:
"[lambda forms] are syntactically restricted to a single expression."
At least the language is lexically scoped now, which makes things slightly less difficult.
Peace,
(jfb)
Re:nice 1, thanks guys (Score:1)
Python 2.2 has actually useful lambdas, they are created with the Python construct "def".
MMMMM..... (Score:1)
Ruby plug (Score:1)
Pragmatic Ruby [pragmaticprogrammer.com]
Re:Ruby plug (Score:1)
there comes a point when you have to say "This one is for me, now to spend a long time mastering it" because you never explore all of the corners.
I learn new techniques with every project in every lamguage I write in.
I've nailed myself to python and php for my current phase (and I've got no choice but to keep up with javascript).
Anyway I have a ruby question seeing as I don't want to spend the time to find out.
can you do something like this :
%class Foo :
5 bar = "";
% def __init__ (self, bar) :
% self.bar = bar
% def setbar (self, hoge) :
% self.bar = hoge
% return self
% def getbar(self) :
% return self.bar
%
%f = Foo("fred")
%print f.setbar("shiela").getbar()
shiela
my point being that the . separated parts are evaluated left to right
javascript has a similar approach
sadly php doesn't and it's a source of frustration
is ruby like that?
Re:Ruby plug (Score:1)
pretend it looks right plz.
:)
.
Re:Ruby plug (Score:1)
A language with even more class features (Score:1)
Although its not C++ or Perl (or perhaps because it's not) Python has always struck me as a very wonderful language, being very compact syntax-wise yet having a core containing some of the most powerful features of other languages e.g. OO and lambda functions. It's also got a very solid set of standard modules.
The indenting stuff still throws me, sometimes, though ;)
Re:A language with even more class features (Score:1)
Re:A language with even more class features (Score:2)
Let it go, man. Go ahead and make the mistake. Run your program. It will show you a stack frame dump and you'll have the problem fixed in 15 seconds. Life's too short obsess over parameter types.
Python, Perl, Ruby, etc. have huge library collections that are easier to use and understand than most of those from strongly typed languages. Lack of strong typing is not holding them back. (You won't find many unchecked buffers, either.)
Re:A language with even more class features (Score:1)
But I disagree that Python is not suitable for large projects. In fact, I found it has good package/module structure (like Module-2/Pascal), and IMHO is easier to manage than header files in C/C++. In my current job, I'll say 75% of our financial planning software product is coded in Python.