This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrabarnett
Recipients eric.araujo, eric.smith, gosella, mark.dickinson, mrabarnett
Date 2010-06-14.17:02:57
SpamBayes Score 0.0005851881
Marked as misclassified No
Message-id <1276534979.72.0.810994138843.issue7951@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-06-14 17:02:59mrabarnettsetrecipients: + mrabarnett, mark.dickinson, eric.smith, eric.araujo, gosella
2010-06-14 17:02:59mrabarnettsetmessageid: <1276534979.72.0.810994138843.issue7951@psf.upfronthosting.co.za>
2010-06-14 17:02:58mrabarnettlinkissue7951 messages
2010-06-14 17:02:57mrabarnettcreate