[Python-3000-checkins] r54434 - in python/branches/p3yk: Grammar/Grammar Include/token.h Lib/compiler/transformer.py Lib/test/test_grammar.py Lib/token.py Lib/tokenize.py Parser/tokenizer.c Python/ast.c Python/graminit.c
Guido van Rossum
guido at python.org
Mon Mar 19 19:23:54 CET 2007
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 <python-3000-checkins at python.org> 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/)
More information about the Python-3000-checkins
mailing list