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.

Is it ok having both Anacondas 2.7 and 3.5 installed in the same time?

I am using currently Anaconda with Python 2.7, but I will need to use Python 3.5. Is it ok to have them …

python python-3.x python-2.7 anaconda virtualenv
Returning boolean if set is empty

I am struggling to find a more clean way of returning a boolean value if my set is empty at …

python python-2.7
Making an API call in Python with an API that requires a bearer token

Looking for some help with integrating a JSON API call into a Python program. I am looking to integrate the …

python python-2.7 curl ibm-cloud pycurl
Invalid http_host header

I am trying to develop a website using Django framework and launched using DigitalOcean.com and deployed the necessary files …

python django python-2.7 http-host
ImportError: No module named xlsxwriter

I recently downloaded the xlsxwriter version 0.6.4 and installed it on my computer. It correctly added it to my C:\Python27\…

python-2.7 xlsxwriter
Extracting text from a PDF file using PDFMiner in python?

I am looking for documentation or examples on how to extract text from a PDF file using PDFMiner with Python. …

python python-3.x python-2.7 text-extraction pdfminer
What is the difference between json.load() and json.loads() functions

In Python, what is the difference between json.load() and json.loads()? I guess that the load() function must be …

python json python-2.7
python ignore certificate validation urllib2

I want to ignore the certification validation during my request to the server with an internal corporate link. With python …

python python-2.7 urllib2 python-requests
class method generates "TypeError: ... got multiple values for keyword argument ..."

If I define a class method with a keyword argument thus: class foo(object): def foodo(thing=None, thong='not …

python class python-2.7 methods
Python UTC datetime object's ISO format doesn't include Z (Zulu or Zero offset)

Why python 2.7 doesn't include Z character (Zulu or zero offset) at the end of UTC datetime object's isoformat string unlike …

python python-2.7 datetime timestamp iso8601