> On 22 Jan 2020, at 13:23, Rhodri James <rho...@kynesim.co.uk> wrote:
> 
> On 22/01/2020 12:03, Anders Hovmöller wrote:
>> He was pretty clear in saying he wanted the same thing as in C#. That no one 
>> in this thread seems to have looked that up is really not his fault in my 
>> opinion.
> 
> Oh, plenty of people have looked it up.  The problem is that it relies on 
> part of the nature of C# (variables are lvalues) that simply isn't true in 
> Python, which I don't think the OP realised.

Does it? How? 
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/nameof
 seems pretty clear to me that it's a rather simple extraction of an AST node, 
lvalue or not doesn't seem relevant at all. 

Can you point me to something where this isn't the case?

/ Anders 
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7SS7MB5DBURCGLSUN47HXOD7P3NH3OBK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to