Message315505
| Author | pekka.klarck |
|---|---|
| Recipients | pekka.klarck |
| Date | 2018-04-20.07:32:27 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1524209547.88.0.682650639539.issue33317@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Forgot to mention that this doesn't affect Python 2:
>>> a = u'hyv\xe4'
>>> b = u'hyva\u0308'
>>> print(repr(a))
u'hyv\xe4'
>>> print(repr(b))
u'hyva\u0308'
In addition to hoping `repr()` would be enhanced in future Python 3 versions, I'm also looking for a way how to show differences between strings that look the same but are different. Currently the best I've found is this:
>>> print('hyva\u0308'.encode('unicode_escape').decode('ASCII'))
hyva\u0308 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-04-20 07:32:27 | pekka.klarck | set | recipients: + pekka.klarck |
| 2018-04-20 07:32:27 | pekka.klarck | set | messageid: <1524209547.88.0.682650639539.issue33317@psf.upfronthosting.co.za> |
| 2018-04-20 07:32:27 | pekka.klarck | link | issue33317 messages |
| 2018-04-20 07:32:27 | pekka.klarck | create | |