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 eric.smith
Recipients LambertDW, eric.smith, ezio.melotti, gvanrossum, mark.dickinson, ncoghlan, orsenthil, pitrou, terry.reedy
Date 2009-03-14.01:19:24
SpamBayes Score 2.0036134e-06
Marked as misclassified No
Message-id <1236993567.31.0.377084316807.issue5237@psf.upfronthosting.co.za>
In-reply-to
Content
Should string.Format also support auto-numbering?

It seems like it should, but I'm not convinced it's possible without
modifying the signatures to the public methods, in particular
get_field(). The design of string.Format doesn't support state that is
created in format() or vformat() and is passed in to get_field(). I
could use object state in the string.Format instance, but that doesn't
work well, due to the fact that format() can be called multiple times
per instance lifetime. string.Format really needs to have no state of
its own, for example in the case where a single instance is being used
by multiple threads or if it calls the same instance of itself
recursively. I'm going to punt on this for now.
History
Date User Action Args
2009-03-14 01:19:27eric.smithsetrecipients: + eric.smith, gvanrossum, terry.reedy, mark.dickinson, ncoghlan, orsenthil, pitrou, LambertDW, ezio.melotti
2009-03-14 01:19:27eric.smithsetmessageid: <1236993567.31.0.377084316807.issue5237@psf.upfronthosting.co.za>
2009-03-14 01:19:26eric.smithlinkissue5237 messages
2009-03-14 01:19:25eric.smithcreate