[Python-Dev] Python Language Summit EuroPython 2010 (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Jul 29 04:33:05 CEST 2010
- Previous message: [Python-Dev] Python Language Summit EuroPython 2010
- Next message: [Python-Dev] Python Language Summit EuroPython 2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Jul 25, 2010 at 10:52 PM, Guido van Rossum <guido at 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
- Previous message: [Python-Dev] Python Language Summit EuroPython 2010
- Next message: [Python-Dev] Python Language Summit EuroPython 2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]