[Python-Dev] transitioning from % to {} formatting (original) (raw)
MRAB python at mrabarnett.plus.com
Sun Oct 4 01:38:50 CEST 2009
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Vinay Sajip wrote:
Brett Cannon <brett python.org> writes:
Why don't we start something in the sandbox and see how far we can get. If no one beats me to it I will add the directory some time today and we can start hashing out the solution there.
I've done a first cut of a converter from %-format to {}-format strings. I'm not sure where you want to put it in the sandbox, I've created a gist on GitHub: http://gist.github.com/200936 Not thoroughly tested, but runs in interactive mode so you can try things out. All feedback appreciated! Interesting that you're using the %-format to translate %-formats to {}-formats! :-)
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]