This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mjholtkamp
Recipients mjholtkamp
Date 2012-12-24.12:53:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356353617.65.0.761345333654.issue16765@psf.upfronthosting.co.za>
In-reply-to
Content
The standard module cgi.py from Python 2.x imports urllib, but urllib is not used. This causes a little bit of extra memory usage and a small increase in load time. It's not much, but it was enough for me to notice when I was profiling my program.

I think the urllib import can be safely removed in 2.6 and 2.7. I've tested without the import and it works as expected in my case.

In Python 3.2 (other 3.x versions not checked), urllib.parse is imported but here it is actually used, so no problem there.

PS. first time submitting a bug here, so if I'm doing something wrong, please be gentle :)
History
Date User Action Args
2012-12-24 12:53:37mjholtkampsetrecipients: + mjholtkamp
2012-12-24 12:53:37mjholtkampsetmessageid: <1356353617.65.0.761345333654.issue16765@psf.upfronthosting.co.za>
2012-12-24 12:53:37mjholtkamplinkissue16765 messages
2012-12-24 12:53:37mjholtkampcreate