Cristian  <[EMAIL PROTECTED]> wrote:
> To me, the biggest setback for new programmers is the different
> syntax Python has for creating functions. Instead of the common (and
> easy to grasp) syntax of foo = bar Python has the def foo(): syntax.

[...]

> in a program like Python there doesn't seem to be any other reason to
> have it.

One reason for the different syntax is that functions, unlike most
other objects, know their own names (which can be shown in tracebacks
and the like).

-M-
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to