<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Detecting Palindromes With Python, Revisited</title>
	<atom:link href="http://philcrissman.com/2008/04/22/detecting-palindromes-with-python-revisited/feed" rel="self" type="application/rss+xml" />
	<link>http://philcrissman.com/2008/04/22/detecting-palindromes-with-python-revisited</link>
	<description>Web Development, startups, entrepreneurship, books, art, and other stuff</description>
	<pubDate>Sat, 11 Oct 2008 15:56:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: iffy</title>
		<link>http://philcrissman.com/2008/04/22/detecting-palindromes-with-python-revisited#comment-1967</link>
		<dc:creator>iffy</dc:creator>
		<pubDate>Tue, 29 Apr 2008 14:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://philcrissman.com/?p=1570#comment-1967</guid>
		<description>This is a neat little example.  I used this as a basis for &lt;a href="http://blog.iffy.us/?p=44" rel="nofollow"&gt;another version using only list comprehensions&lt;/a&gt; -- one of my favorite features of Python.</description>
		<content:encoded><![CDATA[<p>This is a neat little example.  I used this as a basis for <a href="http://blog.iffy.us/?p=44" rel="nofollow">another version using only list comprehensions</a> &#8212; one of my favorite features of Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Crissman</title>
		<link>http://philcrissman.com/2008/04/22/detecting-palindromes-with-python-revisited#comment-1957</link>
		<dc:creator>Phil Crissman</dc:creator>
		<pubDate>Wed, 23 Apr 2008 08:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://philcrissman.com/?p=1570#comment-1957</guid>
		<description>Nice; I was assuming there was a better way to do that. Thanks for the tip! Apparently, I need a regex refresher.</description>
		<content:encoded><![CDATA[<p>Nice; I was assuming there was a better way to do that. Thanks for the tip! Apparently, I need a regex refresher.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrben</title>
		<link>http://philcrissman.com/2008/04/22/detecting-palindromes-with-python-revisited#comment-1956</link>
		<dc:creator>mrben</dc:creator>
		<pubDate>Wed, 23 Apr 2008 08:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://philcrissman.com/?p=1570#comment-1956</guid>
		<description>I think there are probably a couple of different ways of doing this - there is probably a lambda-type function that will use string.replace for all the characters in string.punctuation (which is a constant list of all the punctuation), which would remove the need for the regex.

However, with the regex, you can use the \W shortcut for non-alphanumeric characters. Thus the line becomes:

q = re.sub("\W", "", q).lower()</description>
		<content:encoded><![CDATA[<p>I think there are probably a couple of different ways of doing this - there is probably a lambda-type function that will use string.replace for all the characters in string.punctuation (which is a constant list of all the punctuation), which would remove the need for the regex.</p>
<p>However, with the regex, you can use the \W shortcut for non-alphanumeric characters. Thus the line becomes:</p>
<p>q = re.sub(&#8221;\W&#8221;, &#8220;&#8221;, q).lower()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.377 seconds -->
