Message107801
That's a good question. :-)
Possibly just an optional sign followed by one or more digits.
Another possibility that occurs to me is for it to default to positional if it looks like an integer, but allow quoting to force it to be a key:
>>> "{0}".format("foo", **{"0": "bar"})
'foo'
>>> "{'0'}".format("foo", **{"0": "bar"})
'bar'
Or is that taking it too far? |
|
Date |
User |
Action |
Args |
2010-06-14 17:02:59 | mrabarnett | set | recipients:
+ mrabarnett, mark.dickinson, eric.smith, eric.araujo, gosella |
2010-06-14 17:02:59 | mrabarnett | set | messageid: <1276534979.72.0.810994138843.issue7951@psf.upfronthosting.co.za> |
2010-06-14 17:02:58 | mrabarnett | link | issue7951 messages |
2010-06-14 17:02:57 | mrabarnett | create | |
|