News for hackers. Stuff that matters.
Re:How Ruby Borrowed a Decades Old Idea From Lisp by icebraining on Tuesday September 18, 2012 @11:12AM (#4538490)
Compared to (...)Python-lambas, Ruby's blocks don't introduce another scope. "self" and "return" still refer to the method's scope

'self' in Python still refers to the method's scope too (if the lambda is inside one).

  class A(object):
    def b(self):
      self.name = "John"
      c = lambda: "Hello, %s" % self.name
      print c()
  A().b() #prints "Hello, John"
Re:How Ruby Borrowed a Decades Old Idea From Lisp by TylerE on Tuesday September 18, 2012 @01:03PM (#4539226)
Strictly speaking that's merely a convention.

Python simply has explicit method receivers.

There's nothing pretty you from calling it `obj` or `foobaz` or whatever - it's just a normal variable.