Why is there no natural syntax for accessing attributes with names not being valid identifiers?

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Dec 4 15:55:35 EST 2013


On 04/12/2013 20:22, Ethan Furman wrote:
> On 12/04/2013 12:07 PM, Piotr Dobrogost wrote:
>>
>> If there ought to be only one way to access attributes then it should
>>  be dot notation.
>
> Not "only one way", it's "one obvious way".
>
> --
> ~Ethan~

Not "one obvious way" it's "There should be one-- and preferably only 
one --obvious way to do it.".  Get it right lad :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list