Top "Python-2.5" questions

For issues relating to development in Python, version 2.5.

How to generate all permutations of a list?

How do you generate all the permutations of a list in Python, independently of the type of elements in that …

python algorithm permutation combinatorics python-2.5
Python: avoid new line with print command

I've started programming today and have this issue with Python. It's pretty dumb but I can't figure out how to …

python printing newline python-2.5
how to add json library

i am new to python, on my Mac, when i issue command User:ihasfriendz user$ python main.py Traceback (most …

python json macos python-2.5
How to obtain image size using standard Python class (without using external library)?

I am using Python 2.5. And using the standard classes from Python, I want to determine the image size of a …

python image python-2.5
How to decorate a class?

In Python 2.5, is there a way to create a decorator that decorates a class? Specifically, I want to use a …

python decorator python-2.5
How to properly use python's isinstance() to check if a variable is a number?

I found some old Python code that was doing something like: if type(var) is type(1): ... As expected, pep8 complains …

python python-2.5 pep8
What does from __future__ import absolute_import actually do?

I have answered a question regarding absolute imports in Python, which I thought I understood based on reading the Python 2.5 …

python python-2.7 python-import python-2.5
SQLite IntegrityError: UNIQUE constraint failed:

I am just getting an weird error: IntegrityError: UNIQUE constraint failed: jumptimes.player_id, jumptimes.map_id, jumptimes.runID My …

sql sqlite python-2.5
Read data from CSV file and transform from string to correct data-type, including a list-of-integer column

When I read data back in from a CSV file, every cell is interpreted as a string. How can I …

python csv python-2.5
Test a string if it's Unicode, which UTF standard is and get its length in bytes?

I need to test if a string is Unicode, and then if it whether it's UTF-8. After that, get the …

python string unicode utf-8 python-2.5