[Python-ideas] In call grammar, replace primary with possible_call? (was Re: ...quote followed by a left parenthesis...?)

Terry Reedy tjreedy at udel.edu
Thu Jul 16 22:33:27 CEST 2015


On 7/16/2015 5:00 AM, Paul Moore wrote:
> On 16 July 2015 at 05:18, Steven D'Aprano <steve at pearwood.info> wrote:
>> On Wed, Jul 15, 2015 at 07:03:50PM -0400, Terry Reedy wrote:
>>
>>> So here is the proposal: in the call definition, change primary to
>>>    possible_call ::= identifier | parenth_form | yield_atom
>>>                      | attributeref | subscription | slicing | call
>>>
>>> As for error messages, there is another thread suggesting that the
>>> messages for SyntexError might be vastly improved.
>>
>>
>> This sounds like a good proposal. +1
>
> Note that the proposal should also include a change to "call":
>
> call ::= possible_call '(' args ')'
>
> replacing
>
> call  ::= primary '(' args ')'

This was the intended meaning of "in the call definition, change primary 
to \n possible_call...".  I should have added 'possible_call, where' to 
make 2 clauses like so "...to possible_call, where \n possible_call ::= 
<definition>".  Sorry for the confusing sentence.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list