News for hackers. Stuff that matters.
Re:What's better about Ruby than Python? - comp.lang.python by epochwolf on Thursday August 26, 2010 @11:25PM (#1637921)
You can call a proc with []

    p = Proc.new {|str| puts "Hello #{str}" }
    p["World"] # prints "Hello World"
:)
Re:What's better about Ruby than Python? - comp.lang.python by mcantor on Friday August 27, 2010 @09:02AM (#1638670)
I'm aware of this, but it's still not (). You still must be aware that you are dealing with an unbound proc object, and it must be handled differently than usual!