Message261549
I opened the issue when I read this change:
https://review.openstack.org/#/c/288224/2/neutron/common/utils.py
rndstr = hex(...)[2:]
# Whether there is a trailing 'L' is a py2/3 incompatibility
rndstr = rndstr.rstrip('L')
return rndstr.zfill(length)
can be simply written
return "{0:0{1}x}".format(..., length)
It's less readable, but it's more efficient. |
|
Date |
User |
Action |
Args |
2016-03-11 08:37:32 | vstinner | set | recipients:
+ vstinner, eric.smith, docs@python, serhiy.storchaka, wolma |
2016-03-11 08:37:32 | vstinner | set | messageid: <1457685452.46.0.309954772623.issue26506@psf.upfronthosting.co.za> |
2016-03-11 08:37:32 | vstinner | link | issue26506 messages |
2016-03-11 08:37:32 | vstinner | create | |
|