Re: Python 'strings'

2024-02-25 Thread Collin Funk
Hi Bruno, On 2/25/24 4:02 AM, Bruno Haible wrote: > * The Python interpreter prints strings with single-quotes: > > >>> "abc" > 'abc' > > So, that makes the single-quotes the natural choice. Interesting find. I don't have super strong feelings on the matter. I just think that it is best tha

Re: Python 'strings'

2024-02-25 Thread Bruno Haible
Summarizing the rationale to use 'abc' as string syntax: * PEP 8 https://peps.python.org/pep-0008/#string-quotes says "In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it." * When I search whe