A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-October/092561.html below:

[Python-Dev] transitioning from % to {} formatting

[Python-Dev] transitioning from % to {} formatting [Python-Dev] transitioning from % to {} formattingINADA Naoki songofacandy at gmail.com
Mon Oct 5 04:07:07 CEST 2009
> -1 That requires keeping formatting information around in every string instance.
Adding new "format_string" class avoids it.
 unicode("foo") <=> u"foo"
 format_string("foo") <=> f"foo"

This way's pros:
* Many libraries can use one transition way.
* Transition stage syncs to Python version. "library A uses {} and
library B uses %" problem not happen in transition.
* We have experience same way on unicode.

-- 
Naoki INADA  <songofacandy at gmail.com>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4