What do you use single and double quotes for?
return '<a href="{}">{}</a>'.format(url, text)
than return "<a href=\"{}\">{}</a>".format(url, text)
Especially for a lazy developer like me... :)If you want the behaviour of Ruby strings, you might use a `bytes` or `bytearray` type, or you might use a list of chars.
But at any rate I wasn't thinking of performance characteristics but rather the stereotypical uses of symbols vs strings in languages that have both, so you are right that one can use Python strings in place of symbols, as SpaceManiac already pointed out above.
In Python, string literals are reused, if that is what you meant.
>>> a = 'abc'
>>> b = 'abc'
>>> a is b
Truesome_dict = {'key': "value"}