A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-December/094530.html below:

[Python-Dev] First draft of "sysconfig"

[Python-Dev] First draft of "sysconfig"Eric Smith eric at trueblade.com
Sun Dec 13 01:03:56 CET 2009
Tarek Ziadé wrote:
> On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon <brett at python.org> wrote:
> [...]
>>>  'nt': {
>>>        'stdlib': '$base/Lib',
>>>        'platstdlib': '$base/Lib',
>>>        'purelib': '$base/Lib/site-packages',
>>>        'platlib': '$base/Lib/site-packages',
>>>        'include': '$base/include',
>>>        'platinclude': '$base/include',
>>>        'scripts': '$base/Scripts',
>>>        'data'   : '$base',
>>>        },
>>>  ...
>>> }
>>>
>> Are you using string.Template because this code needs to run on installs
>> older than 2.6?
>> -Brett
> 
> Not really. That's mostly because I reused the existing implementation
> and I found them quite readable in that case. But a string.Formatter
> could work well here too I guess.

I don't really understand the complete context, but I think you want 
str.format(), not string.Formatter here.

Eric.
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