Category "python-2.7"

running pip install from python 2.7.5

I have a CentOS server (5.6) which has Python 2.4.3 on it. I have another local installation of Python (2.7.5) installed in /opt and soft-links created as follo

how to Ignore characters other than [a-z][A-Z]

How can I ignore characters other than [a-z][A-Z] in input string in python, and after applying method what will the string look like? Do I need to use regular

Python remove entry from zipfile

I'm currently writing an open source library for a container format, which involves modifying zip archives. Therefore I utilized pythons build-in zipfile module

MemoryError zipfile in memory

I'm getting MemoryError (out of memory) when zipping files in memory with Python. I'm using cStringIO.StringIO as an in memory buffer stream. Follow the code be

Get body text of an email using python imap and email package

I want to retrieve body (only text) of emails using python imap and email package. As per this SO thread, I'm using the following code: mail = email.message_f

Get body text of an email using python imap and email package

I want to retrieve body (only text) of emails using python imap and email package. As per this SO thread, I'm using the following code: mail = email.message_f