On 4/14/21 1:42 PM, Baptiste Carvello wrote:
Are there specific annoyances associated with quoting always, apart from the 2 more characters?


Yes.  Since the quoted strings aren't parsed by Python, syntax errors in these strings go undetected until somebody does parse them (e.g. your static type analyzer).  Having the Python compiler de-compile them back into strings means they got successfully parsed.  Though this doesn't rule out other errors, e.g. NameError.

I thought this was discussed in PEP 563, but now I can't find it, so unfortunately I can't steer you towards any more info on the subject.


Cheers,


//arry/

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

Reply via email to