What would be the best way to increment a value that contains leading zeroes? For example, I\'d like to increment \"00000001\". However, it should be noted that the number of
"%%0%ii" % len(x) % (int(x)+1)
-- MarkusQ
P.S. For x = "0000034" it unfolds like so:
"%%0%ii" % len("0000034") % (int("0000034")+1) "%%0%ii" % 7 % (34+1) "%07i" % 35 "0000035"