3 ms·
In Python 2, bytes can be coerced to unicode: >>> b'egg' + u'spam' u'eggspam' Unlike the example with bool+int, this can't be justified by LSP.
by jwilk 9y ago
In Python 2, bytes can be coerced to unicode:
>>> b'egg' + u'spam'
u'eggspam'
Unlike the example with bool+int, this can't be justified by LSP.