Why is there no natural syntax for accessing attributes with names not being valid identifiers?
Piotr Dobrogost
p at google-groups-2013.dobrogost.net
Wed Dec 4 18:57:04 EST 2013
On Thursday, December 5, 2013 12:09:52 AM UTC+1, Ethan Furman wrote:
> Perhaps you should look
> at different ways of spelling your identifiers? Why can't you use an
> underscore instead of a hyphen?
So that underscore could be left for use inside fields' names?
However I think we could use some unique Unicode character for this instead hyphen as long as Python allows any alphanumeric Unicode character inside identifiers which I think it does...
Regards,
Piotr
More information about the Python-list
mailing list