Message285283
Right, the lack of transitivity comes from the fact that:
>>> u"3" == str(3)
True
Is really shorthand for:
>>> u"3" == str(3).decode("ascii")
True
However, the implicit decoding only triggers for *exactly* bytes instances, so in the bytearray case it needs to be explicit:
>>> u"3" == bytearray(b"3").decode("ascii")
True |
|
Date |
User |
Action |
Args |
2017-01-12 03:06:54 | ncoghlan | set | recipients:
+ ncoghlan, lemburg, georg.brandl, ezio.melotti, eric.araujo, Arfrever, r.david.murray, docs@python, martin.panter, emily.zhao, gbengeult |
2017-01-12 03:06:53 | ncoghlan | set | messageid: <1484190413.78.0.255991674941.issue11681@psf.upfronthosting.co.za> |
2017-01-12 03:06:53 | ncoghlan | link | issue11681 messages |
2017-01-12 03:06:53 | ncoghlan | create | |
|