<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Answer My Searches</title>
	<atom:link href="http://www.answermysearches.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.answermysearches.com</link>
	<description>Answers to everything I search for, every day</description>
	<lastBuildDate>Tue, 22 Nov 2011 08:57:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Python &#8211; How to use MySQLdb when MySQL Isn&#8217;t Installed Locally by Pete Hunt</title>
		<link>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/comment-page-1/#comment-64647</link>
		<dc:creator>Pete Hunt</dc:creator>
		<pubDate>Tue, 22 Nov 2011 08:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.answermysearches.com/?p=2284#comment-64647</guid>
		<description>Some more shameless self-promotion for PyMySQL here. Let me know if you need help getting it going!

Pete</description>
		<content:encoded><![CDATA[<p>Some more shameless self-promotion for PyMySQL here. Let me know if you need help getting it going!</p>
<p>Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python &#8211; How to use MySQLdb when MySQL Isn&#8217;t Installed Locally by Gary</title>
		<link>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/comment-page-1/#comment-64646</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Tue, 22 Nov 2011 07:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.answermysearches.com/?p=2284#comment-64646</guid>
		<description>PyMySQL is what you are looking for. I have used a few times   it does not require the mysql libs  it is a pure python module for accessing mysql</description>
		<content:encoded><![CDATA[<p>PyMySQL is what you are looking for. I have used a few times   it does not require the mysql libs  it is a pure python module for accessing mysql</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python &#8211; How to use MySQLdb when MySQL Isn&#8217;t Installed Locally by Joshua K</title>
		<link>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/comment-page-1/#comment-64645</link>
		<dc:creator>Joshua K</dc:creator>
		<pubDate>Tue, 22 Nov 2011 00:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.answermysearches.com/?p=2284#comment-64645</guid>
		<description>if mySQLdb is written properly/has its dependencies correctly, it should only require the mysql libraries.  On my Ubuntu box, the dependencies (other than the standard python and libc) are:

libmysqlclient16 (&gt;= 5.1.21-1)

So, no need for the server to be installed.</description>
		<content:encoded><![CDATA[<p>if mySQLdb is written properly/has its dependencies correctly, it should only require the mysql libraries.  On my Ubuntu box, the dependencies (other than the standard python and libc) are:</p>
<p>libmysqlclient16 (&gt;= 5.1.21-1)</p>
<p>So, no need for the server to be installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python zipfile &#8211; Fixing Error: Unable to unarchive &#8220;..&#8221; into &#8220;Downloads&#8221; by Arafangion</title>
		<link>http://www.answermysearches.com/python-zipfile-fixing-error-unable-to-unarchive-into-downloads/2278/comment-page-1/#comment-64625</link>
		<dc:creator>Arafangion</dc:creator>
		<pubDate>Thu, 20 Oct 2011 02:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.answermysearches.com/?p=2278#comment-64625</guid>
		<description>To prevent this, make use of the &quot;with&quot; statement as habit, so that the file is deterministically closed at the end of that block.

It would also ensure that the file is closed even if there is an exception, although that probably does not matter in this particular situation. :)</description>
		<content:encoded><![CDATA[<p>To prevent this, make use of the &#8220;with&#8221; statement as habit, so that the file is deterministically closed at the end of that block.</p>
<p>It would also ensure that the file is closed even if there is an exception, although that probably does not matter in this particular situation. <img src='http://www.answermysearches.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python zipfile &#8211; Fixing Error: Unable to unarchive &#8220;..&#8221; into &#8220;Downloads&#8221; by Roger</title>
		<link>http://www.answermysearches.com/python-zipfile-fixing-error-unable-to-unarchive-into-downloads/2278/comment-page-1/#comment-64624</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Thu, 20 Oct 2011 02:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.answermysearches.com/?p=2278#comment-64624</guid>
		<description>Even better you should use a context handler (with statement).  In general always use one when dealing with files.  The code above becomes:

with zipfile.ZipFile(&quot;test.zip&quot;, &quot;w&quot;) as file:
  for name in glob.glob(&quot;samples/*&quot;):
    file.write(name, os.path.basename(name), zipfile.ZIP_DEFLATED)</description>
		<content:encoded><![CDATA[<p>Even better you should use a context handler (with statement).  In general always use one when dealing with files.  The code above becomes:</p>
<p>with zipfile.ZipFile(&#8220;test.zip&#8221;, &#8220;w&#8221;) as file:<br />
  for name in glob.glob(&#8220;samples/*&#8221;):<br />
    file.write(name, os.path.basename(name), zipfile.ZIP_DEFLATED)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

