On Oct 11, 7:58=A0pm, "ara.t.howard" <ara.t.how... / gmail.com> wrote:
>
> the only real argument for requiring parens is so that
>
> =A0 o.foo =A0# returns the method foo
>
> as in javascript. =A0other arguments are mostly religious.
>

Python is like Javascript in that regard.

  $ python
  >>> def f(n=3D100): return n * 2
  ...
  >>> f
  <function f at 0xb75ae6bc>
  >>> f()
  200
  >>> x =3D f
  >>> x(30)
  60
  >>> x =3D f()
  >>> x
  200

  $ irb
  irb(main):001:0> def f(n=3D100) n * 2 end
  =3D> nil
  irb(main):002:0> f
  =3D> 200
  irb(main):003:0> f()
  =3D> 200
  irb(main):004:0> x =3D method(:f)
  =3D> #<Method: Object#f>
  irb(main):005:0> x.call(30)
  =3D> 60

I work in both Python and Ruby, and I don't have a strong preference
for either style; it just requires a different mindset.