Did you realize that this breaks test_modulefinder.py? It contains tests like

  from ... import something

and the parser now returns an ellipsis token for the there dots
instead of three '.' tokens. Since this is valid syntax (even though
Thomas doesn't like it :-) we should fix this somehow. I guess the
syntax should use ('.' | '...')+ where it currently uses '.'+ and
ditto for '.'*.

On 3/18/07, georg.brandl <[email protected]> wrote:
> Author: georg.brandl
> Date: Sun Mar 18 20:01:53 2007
> New Revision: 54434
>
> Modified:
>    python/branches/p3yk/Grammar/Grammar
>    python/branches/p3yk/Include/token.h
>    python/branches/p3yk/Lib/compiler/transformer.py
>    python/branches/p3yk/Lib/test/test_grammar.py
>    python/branches/p3yk/Lib/token.py
>    python/branches/p3yk/Lib/tokenize.py
>    python/branches/p3yk/Parser/tokenizer.c
>    python/branches/p3yk/Python/ast.c
>    python/branches/p3yk/Python/graminit.c
> Log:
> Make ELLIPSIS a separate token. This makes it a syntax error to write ". .    
> ." for Ellipsis.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to