Top "Python-2.7" questions

Python 2.7 is the last major version in the 2.x series, and is no longer maintained since January 1st 2020.

Download and save PDF file with Python requests module

I am trying to download a PDF file from a website and save it to disk. My attempts either fail …

python python-2.7 python-requests
Converting binary to decimal integer output

I need to convert a binary input into a decimal integer. I know how to go from a decimal to …

python python-2.7 binary integer base-conversion
What is a good practice to check if an environmental variable exists or not?

I want to check my environment for the existence of a variable, say "FOO", in Python. For this purpose, I …

python python-2.7 python-3.x if-statement environment-variables
How to convert an XML file to nice pandas dataframe?

Let's assume that I have an XML like this: <author type="XXX" language="EN" gender="xx" feature="xx" web="…

python xml python-2.7 parsing pandas
Spell Checker for Python

I'm fairly new to Python and NLTK. I am busy with an application that can perform spell checks (replaces an …

python python-2.7 nltk spell-checking pyenchant
How to install mechanize for Python 2.7?

I saved mechanize in my Python 2.7 directory. But when I type import mechanize into the Python shell, I get an …

python python-2.7 mechanize
Why does the 'int' object is not callable error occur when using the sum() function?

I'm trying to figure out why I'm getting an error when using the sum function on a range. Here is …

python sum python-2.7 callable
Write and read a list from file

This is a slightly weird request but I am looking for a way to write a list to file and …

python file list python-2.7 save
Python DNS module import error

I have been using python dns module.I was trying to use it on a new Linux installation but the …

python python-2.7 module resolver