Re: List of all syntactic sugar?

2006-04-14 Thread Diez B. Roggisch
> 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

Re: List of all syntactic sugar?

2006-04-14 Thread Bas
>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

Re: List of all syntactic sugar?

2006-04-14 Thread Steven D'Aprano
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

Re: List of all syntactic sugar?

2006-04-14 Thread Rene Pijlman
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

List of all syntactic sugar?

2006-04-14 Thread Bas
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