[Python-Dev] syntactic sugar idea for {static,class}methods

Paul Prescod paul@prescod.net
Wed, 13 Feb 2002 09:33:56 -0800


Gareth McCaughan wrote:
> 
>...
> 4. Generalizes to a sequence of transformations.

For me, this is crucial. A future version of Spark would probably put
its parse annotations in the parens. Various type checking systems would
probably do the same:

    def t_whitespace(self, s)[
		grammar(r' \s+'), 
		type(Node)]:
        pass

This is going to happen so we need to be confident that we like this use
of the syntax. I've been waiting for something like this for a while.

 Paul Prescod