… be careful, you’re gonna bring down the python coding police …
Although not a physical requirement of the runtime, you named your first
variable in the class method slf … the python community would eat you
alive for that …
They prefer ( and ALL their docs make sure to tell you over and over )
that the first parameter of the class method be named self.
… Dive into python and every other tutorial on the topic actually
stops to
make sure you understand this …
I find it humorous … and a bit retentive … but, to each their own.
On Fri, Dec 23, 2005 at 03:42:50AM +0900, gabriele renzi wrote:
while in python it would be:
class Foo:
def init(slf,foo):
slf.foo=foo
Argh. It looks unfinished. It’s asymmetrical, and not in a beautiful
way.
It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.
It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.
I find it humorous … and a bit retentive … but, to each their own.
j.
you’re absolutely right, but in my defense I can say that I did write
that becuase I feel the need to explicitly name self dumb. I find it ok
to write self.foo but naming the argument is just useless imho.
On Fri, Dec 23, 2005 at 12:17:50PM +0900, gabriele renzi wrote:
way.
It’s shorter than the Ruby example, but it makes my eyes bleed. An
episode of The Apprentice is shorter than The Maltese Falcon, too, but
it’s a hell of a lot uglier.