<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6237161444180571452.post8906519945663884025..comments</id><updated>2010-12-07T11:06:12.499-08:00</updated><category term='plone'/><category term='reviews'/><category term='opensuse'/><category term='python'/><category term='mandriva'/><category term='sles'/><category term='zope'/><category term='archlinux'/><category term='guides'/><category term='fedora'/><category term='django'/><category term='general'/><category term='suse'/><title type='text'>Comments on Lowkster - Pythonly yours: string substitution in list</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.lowkster.com/feeds/8906519945663884025/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html'/><author><name>lowks</name><uri>http://www.blogger.com/profile/02110530883983060094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eVgoKogosHI/Syw7w1iCCNI/AAAAAAAAAF4/XMzRuAVJvRE/S220/lowkster.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-7755684257977144788</id><published>2010-12-07T11:06:12.499-08:00</published><updated>2010-12-07T11:06:12.499-08:00</updated><title type='text'>[&amp;#39;My name is %s&amp;#39; % name for name in [&amp;#39;...</title><content type='html'>[&amp;#39;My name is %s&amp;#39; % name for name in [&amp;#39;Earl&amp;#39;, &amp;#39;Matthew&amp;#39;, &amp;#39;David&amp;#39;]]&lt;br /&gt;&lt;br /&gt;More concise I think.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/7755684257977144788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/7755684257977144788'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html?showComment=1291748772499#c7755684257977144788' title=''/><author><name>Frank</name><uri>http://www.blogger.com/profile/07084560871262302396</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-8906519945663884025' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/8906519945663884025' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-608684781'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-3528861540646673495</id><published>2010-12-07T07:27:58.563-08:00</published><updated>2010-12-07T07:27:58.563-08:00</updated><title type='text'>Alex: Bravo!</title><content type='html'>Alex: Bravo!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/3528861540646673495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/3528861540646673495'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html?showComment=1291735678563#c3528861540646673495' title=''/><author><name>lowks</name><uri>http://www.blogger.com/profile/02110530883983060094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eVgoKogosHI/Syw7w1iCCNI/AAAAAAAAAF4/XMzRuAVJvRE/S220/lowkster.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-8906519945663884025' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/8906519945663884025' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-236577077'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-4903644059780051287</id><published>2010-12-07T05:19:26.169-08:00</published><updated>2010-12-07T05:19:26.169-08:00</updated><title type='text'>class TemplateList(list):
  def __mod__(self, othe...</title><content type='html'>class TemplateList(list):&lt;br /&gt;  def __mod__(self, other):&lt;br /&gt;    return [s % v for (s, v) in zip(self, other)]&lt;br /&gt;&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; substituted = TemplateList([&amp;#39;My name is %s&amp;#39;] * 3) % [&amp;#39;Earl&amp;#39;, &amp;#39;Matthew&amp;#39;, &amp;#39;David&amp;#39;]&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; print substituted&lt;br /&gt;[&amp;#39;My name is Earl&amp;#39;, &amp;#39;My name is Matthew&amp;#39;, &amp;#39;My name is David&amp;#39;]&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;(Sorry, the lack of pre tags makes that look godawful...)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/4903644059780051287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/4903644059780051287'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html?showComment=1291727966169#c4903644059780051287' title=''/><author><name>alex dante</name><uri>http://www.blogger.com/profile/14143498952297899974</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_NJP_jEkbnnM/S1VNvISQwNI/AAAAAAAAABE/h8oEPwEZciE/s1600-R/avatarstrangedisgust74x.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-8906519945663884025' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/8906519945663884025' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1312011331'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-6034863352076111288</id><published>2010-12-07T01:54:13.660-08:00</published><updated>2010-12-07T01:54:13.660-08:00</updated><title type='text'>Marius: I guess I can call it ... string substitut...</title><content type='html'>Marius: I guess I can call it ... string substitution via list comprehension.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/6034863352076111288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/6034863352076111288'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html?showComment=1291715653660#c6034863352076111288' title=''/><author><name>lowks</name><uri>http://www.blogger.com/profile/02110530883983060094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eVgoKogosHI/Syw7w1iCCNI/AAAAAAAAAF4/XMzRuAVJvRE/S220/lowkster.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-8906519945663884025' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/8906519945663884025' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-236577077'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-3871773560638804925</id><published>2010-12-07T01:48:41.872-08:00</published><updated>2010-12-07T01:48:41.872-08:00</updated><title type='text'>It&amp;#39;s &amp;quot;list comprehension&amp;quot;, which is ...</title><content type='html'>It&amp;#39;s &amp;quot;list comprehension&amp;quot;, which is even more fun to say.  I don&amp;#39;t think I&amp;#39;ve ever seen &amp;quot;list substitution&amp;quot; used anywhere.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/3871773560638804925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/8906519945663884025/comments/default/3871773560638804925'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html?showComment=1291715321872#c3871773560638804925' title=''/><author><name>Marius Gedminas</name><uri>http://gedmin.as/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2010/12/string-substitution-in-list.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-8906519945663884025' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/8906519945663884025' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-17552433'/></entry></feed>
