[Python-ideas] Proposal for special name and qualname symbols

Eric V. Smith eric at trueblade.com
Mon Jun 13 06:40:40 EDT 2016


On 6/13/2016 5:25 AM, Barry Warsaw wrote:
> On Jun 11, 2016, at 05:00 PM, Barry Scott wrote:
>
>> What is the behavour in this case:
>>
>>   mydict[ index ] = Record( __LHS__ )
>
> That's a good question.  How insane/useless would it be to return in this case
> the string "mydict[ index ]"?

Very insane, and very useless!

Preserving the whitespace would be hard, and of dubious value.

I suggest that if we do this, we limit it to a single identifier on the 
lhs. In the unlikely event that we need it later, we can relax the 
restriction.

Eric.




More information about the Python-ideas mailing list