Robert Bradshaw, 24.08.2010 17:14:
> On Tue, Aug 24, 2010 at 7:52 AM, Stefan Behnel wrote:
>> Haoyu Bai, 24.08.2010 16:11:
>>> Looking into Python's test suite, one potential issue is Python
>>> recognize ". .." as syntax error while my implementation will still
>>> accept it as Ellipsis. Could we tolerate this kind of divergent?
>>
>> IMHO, no. If Python rejects it and it's not Cython specific syntax, we
>> should reject it as well. (also, when compiling .py files, any non-Python
>> syntax should be rejected)
>
> Python 3 accepts a bare ellipsis, so I think we can leave it in.

 From what Haoyu wrote, I think he meant that the literal ". .." (mind the 
space character) would be accepted as "...". That should be rejected. Only 
"..." is a valid spelling for Ellipsis.

I considered changing the scanner to merge consecutive sequences of "." 
into one literal. That might also help with relative imports. I didn't look 
into the details yet, though.


> I'm also very excited about http://codereview.appspot.com/1943048/ .
> Our pure mode documentation is in huge need of an update as well.
> Given that it's user facing, I wonder if some of that could be stored
> in docstrings on the Shadow.py functions.

Yes, that's a good idea. Shadow.py is what users will see when they write 
their code, but it has no impact on the compiler itself. So that's a 
perfect place to put documentation.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to