Top "Python-2.x" questions

For questions about Python programming that are specific to version 2.x of the language.

What is Python's coerce() used for?

What are common uses for Python's built-in coerce function? I can see applying it if I do not know the …

python type-conversion python-2.x built-in
no module named cairo - python and pip

I am trying to build openuds and I get the error no module name cairo, I surfed a bit and …

python pip python-2.x pycairo
How to decode the gzip compressed data returned in a HTTP Response in python?

I have created a client/server architecture in python, I take HTTP request from the client which is served by …

python sockets http python-2.x zlib
What is `1..__truediv__` ? Does Python have a .. ("dot dot") notation syntax?

I recently came across a syntax I never seen before when I learned python nor in most tutorials, the .. notation, …

python python-3.x syntax operators python-2.x
Reading russian language data from csv

I have some data in CSV file that are in Russian: 2-комнатная квартира РДТ', мкр Тастак-3, Аносова — Толе би;Алматы 2-комнатная квартира БГР', мкр Таугуль, Дулати (Навои) — Токтабаева;Алматы 2-комнатная квартира ЦФМ', мкр Тастак-2, Тлендиева — Райымбека;Алматы Delimiter …

python csv unicode python-2.x python-unicode
Creating a function object from a string

Question: Is there a way to make a function object in python using strings? Info: I'm working on a project …

python code-generation python-2.x function-object
syntax error on nonlocal statement in Python

I would like to test the example of the use of the nonlocal statement specified in the answer on this …

python syntax-error python-2.x python-nonlocal
How to verify in pycrypto signature created by openssl?

I've created private/public key in openssl, and signed some data: openssl genrsa -out private.pem 1024 openssl rsa -in private.…

python openssl python-2.x pycrypto
Tell if Python is in interactive mode

In a Python script, is there any way to tell if the interpreter is in interactive mode? This would be …

python interactive python-2.5 python-2.x
ImportError: No module named urllib3 when installing pip

I have an issue with virtualenvwrapper that requires reinstalling pip as the first step, and I am getting a strange …

python pip virtualenv python-2.x virtualenvwrapper