Matthew Woodcraft a écrit :
> 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).

Nope. They know *one* of their names - the one they've been given when 
first instanciated. Which may or not be the name used to get at them...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to