<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Tahir Hashmi</title><link>https://tahirhashmi.com/tags/python/</link><description>Recent content in Python on Tahir Hashmi</description><generator>Hugo</generator><language>en-GB</language><managingEditor>mail@tahirhashmi.com (Tahir Hashmi)</managingEditor><webMaster>mail@tahirhashmi.com (Tahir Hashmi)</webMaster><lastBuildDate>Mon, 29 Dec 2025 11:13:16 +0700</lastBuildDate><atom:link href="https://tahirhashmi.com/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>PHP vs. Python for Web Apps</title><link>https://tahirhashmi.com/posts/2010/07/28/php-vs-python-for-web-apps/</link><pubDate>Wed, 28 Jul 2010 12:00:42 +0000</pubDate><author>mail@tahirhashmi.com (Tahir Hashmi)</author><guid>https://tahirhashmi.com/posts/2010/07/28/php-vs-python-for-web-apps/</guid><description>&lt;p&gt;These days, more and more people ask the Python vs. PHP question when they start out with a web application from scratch. I’ve developed PHP applications for 5 years but for the last couple of years I’ve been doing Python. This post is meant to note some of my observations. If you don’t want to read the whole of it, my opinion — &lt;em&gt;opinion&lt;/em&gt; — is to stick with PHP for dishing out your *ML. Use Python in the back-end, if you must.&lt;/p&gt;</description></item><item><title>MySQLdb Leaks Memory</title><link>https://tahirhashmi.com/posts/2010/06/30/mysqldb-leaks-memory/</link><pubDate>Wed, 30 Jun 2010 11:32:30 +0000</pubDate><author>mail@tahirhashmi.com (Tahir Hashmi)</author><guid>https://tahirhashmi.com/posts/2010/06/30/mysqldb-leaks-memory/</guid><description>&lt;p&gt;Whenever people search for a Python library for MySQL, they get directed to &lt;a href="http://sourceforge.net/projects/mysql-python/"

 target="_blank" rel="noopener"
&gt;MySQL for Python&lt;/a&gt;. However, there are some nasties hidden in it. Searching for “mysql python memory leaks” results in a few links which suggest that using Unicode causes memory leaks with the library.&lt;/p&gt;
&lt;p&gt;Today, however, I found another cause for MySQLdb memory leaks, while debugging a leaky Python daemon at work — database errors.&lt;/p&gt;
&lt;p&gt;Use this script:&lt;/p&gt;</description></item></channel></rss>