On Sat, Dec 12, 2009 at 14:13, Tarek Ziadé <ziade.ta...@gmail.com> wrote:
> On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon <br...@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. Just figured that with formatters the way of the future that "{base}/include" would work just as well and be "future-proof". -Brett
_______________________________________________ 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