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 amaury.forgeotdarc, belopolsky, eric.smith, gvanrossum, loewis, schmir, vstinner
Date 2011-01-06.19:56:02
SpamBayes Score 2.920726e-07
Marked as misclassified No
Message-id <1294343777.82.0.179553735324.issue3173@psf.upfronthosting.co.za>
In-reply-to
Content
I think we're stuck with strftime for quite a while, no matter how ugly it is. datetime.__format__ uses it, for example. Although maybe it's possible to write an strftime-format to new-format translator.

If we're going to take this on (re-writing strftime), I think the way to do it is to have it take the locale info as a parameter, and if that parameter is NULL then look up the info in the current locale. It looks like it's still a problem to find all of the info in the locale on all platforms, though. Finding the locale info is no doubt the tricky part, as someone said.

I agree it would be easier to write this from scratch rather than track down the licensing on the existing patch. As it is, there's just not much code there.
History
Date User Action Args
2011-01-06 19:56:17eric.smithsetrecipients: + eric.smith, gvanrossum, loewis, amaury.forgeotdarc, belopolsky, vstinner, schmir
2011-01-06 19:56:17eric.smithsetmessageid: <1294343777.82.0.179553735324.issue3173@psf.upfronthosting.co.za>
2011-01-06 19:56:02eric.smithlinkissue3173 messages
2011-01-06 19:56:02eric.smithcreate