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].

Can't install python module "pycrypto" on Debian lenny

I tried to install pycrypto module by downloading the source code and executing the following command python setup.py install, …

python debian python-2.6 pycrypto lenny
Split long conditional expressions to lines

I have some if statements like: def is_valid(self): if (self.expires is None or datetime.now() < self.…

python if-statement python-2.6
problems using __next__ method in python

I have just started learning python and am reading about classes . this is the code i had written for a …

python-2.6
Why does Idle keep crashing? (Mac)

I just installed python 2.6 on Mac OS X (Snow Leopard) and when I start IDLE it keeps quitting! I removed …

python macos python-2.6 python-idle
How to install gssapi python module?

I am trying to install the GSSAPI module through pip but I receive this error that I don't know how …

python ldap python-2.6
Python os.stat(file_name).st_size versus os.path.getsize(file_name)

I've got two pieces of code that are both meant to do the same thing -- sit in a loop …

python python-2.6
python list __iter__ method called on every loop?

I am trying to make a class which inherits from a python list. I want the elements of the list …

python iterator loops python-2.6
Suppress print output in unittests

Edit: Please notice I'm using Python 2.6 (as tagged) Say I have the following: class Foo: def bar(self): print 'bar' …

python python-2.6 python-unittest
writing back into the same file after reading from the file

My aim is to read line from the file , strip the blank spaces at the end of it and write …

python file io python-2.6
Regular expression to match comma separated list of key=value where value can contain commas

I have a naive "parser" that simply does something like: [x.split('=') for x in mystring.split(',…

python regex parsing python-2.6