Top "Python-2.6" questions

For issues that are specific to Python 2.6. If your question applies to Python in general, use the tag [python].

Visibility of global variables in imported modules

I've run into a bit of a wall importing modules in a Python script. I'll do my best to describe …

python namespaces mysql-python python-2.6 python-import
How to fix symbol lookup error: undefined symbol errors in a cluster environment

I'm working on some python code that extracts some image data from an ECW file using GDAL (http://www.gdal.…

linux linker cluster-computing python-2.6 gdal
How do you get the current text contents of a QComboBox?

Using pyqt4 and python 2.6, I am using a qcombobox to provide a list of options. I am having problems with …

python pyqt pyqt4 python-2.6 qcombobox
Python readlines() usage and efficient practice for reading

I have a problem to parse 1000's of text files(around 3000 lines in each file of ~400KB size ) in a …

python performance memory python-2.6 readlines
pyodbc insert into sql

I use a MS SQL express db. I can connect and fetch data. But inserting data does not work: cursor.…

python sql sql-server-express python-2.6 pyodbc
Python try...except comma vs 'as' in except

What is the difference between ',' and 'as' in except statements, eg: try: pass except Exception, exception: pass and: …

python python-2.6
Extract time from datetime and determine if time (not date) falls within range?

The problem is that I want it to ignore the date and only factor in the time. Here is what …

python datetime python-2.6
How do you switch between python 2 and 3, and vice versa?

I am reading How To Learn Python The Hard Way, which uses 2. Recently discovered Invent With Python, which uses 3. Can …

python python-3.x python-2.6
How do I get Python's ElementTree to pretty print to an XML file?

Background I am using SQLite to access a database and retrieve the desired information. I'm using ElementTree in Python version 2.6 …

python xml python-2.6 elementtree pretty-print
How to share data between threads in this threaded TCPServer?

I'm working on a project which involves sending data over TCP. Using the ThreadedTCPServer I'm able to do that already. …

multithreading python-2.6 tcpserver