From: "Mauricio Fernández" Date: 2003-03-21T07:27:37+09:00 Subject: [OT] Re: Strong advantages over Python On Fri, Mar 21, 2003 at 07:08:06AM +0900, Paul Prescod wrote: > Please verify these publically before you teach this stuff to these > students. I'm not going to get into an argument about whether Ruby is > better than Python, but I do know for a fact that Python can do some > things that you say it cannot. There may be nuances that are unique to > Ruby but the overall features are there. > > For instance: > > ~/p4/usr/pprescod> cat foo.py > > class Foo: > def __getattr__(self, attrname): > return lambda : attrname > > f = Foo() > print f.a() > print f.b() > print f.c() > > Foo.special = lambda(self) : "In dynamically assigned method" > f.special() [Side question] Is there no access control? -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com what's the difference between chattr and chmod? SomeLamer: man chattr > 1; man chmod > 2; diff -u 1 2 | less -- Seen on #linux on irc