On Sun, Jul 25, 2010 at 10:52 PM, Guido van Rossum <gu...@python.org> wrote: .. >>> How hard would it be to recode the sprintf language but with the >>> locale fixed to "C"? That would always be ASCII. >> >> This is exactly what I proposed at >> http://bugs.python.org/issue7584#msg110240 not so long ago. Given >> that stftime language uses every English letter as one of its codes >> (both caps and lower case), it would be an effort, but coding it in >> python should not be too hard. A C implementation would be harder, >> but there must be implementations around available under a suitable >> license that can be reused. >> >> In short, definitely +1. > > For b"...".format() we could also support a subset (still better than > hardcoding something str()-based).
It appears that the treasure trove that we call the bugs' tracker already has a patch for that: http://bugs.python.org/issue3173 http://bugs.python.org/file10704/strftime.diff _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com