Message262119
> Note: Ezio, do you prefer format(value, 'x') for '{:x}'.format(value)?
While formatting a single value the former is better/shorter, but the latter is perhaps more common since you usually have something else in the string too.
The latter can also be used to do something like:
>>> '{num:x} {num:X} {num:#x} {num:#X}'.format(num=255)
'ff FF 0xff 0XFF' |
|
Date |
User |
Action |
Args |
2016-03-21 11:11:35 | ezio.melotti | set | recipients:
+ ezio.melotti, vstinner, eric.smith, docs@python, serhiy.storchaka, wolma, Manvi B |
2016-03-21 11:11:35 | ezio.melotti | set | messageid: <1458558695.04.0.919398840856.issue26506@psf.upfronthosting.co.za> |
2016-03-21 11:11:35 | ezio.melotti | link | issue26506 messages |
2016-03-21 11:11:34 | ezio.melotti | create | |
|