> That kind of depends on what you mean by syntactic sugar. For instance, I
> wouldn't call any of your examples syntactic sugar.
AFAIK that is exactly what syntactic sugar means. Apart from non-strictness,
all syntax can be expressed by function application. Even
foo.bar()
is nothing but
bar
>That kind of depends on what you mean by syntactic sugar.
Mightbe I was misusing the name of syntactic sugar, but I what I
intended to say was "all the possible 'transformations' that can be
made to reduce all the 'advanced' syntax to some sort of minimal core
of the language".
Bas
--
http://m
On Fri, 14 Apr 2006 02:54:11 -0700, Bas wrote:
> Hi group,
>
> just out of curiosity, is there a list of all the syntactic sugar that
> is used in python? If there isn't such a list, could it be put on a
> wiki somewhere? The bit of sugar that I do know have helped me a lot in
> understanding the
Bas:
>just out of curiosity, is there a list of all the syntactic sugar that
>is used in python?
http://docs.python.org/ref/specialnames.html
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
Hi group,
just out of curiosity, is there a list of all the syntactic sugar that
is used in python? If there isn't such a list, could it be put on a
wiki somewhere? The bit of sugar that I do know have helped me a lot in
understanding the inner workings of python.
To give a few examples (might no