Top "Python-2.5" questions

For issues relating to development in Python, version 2.5.

How do I test if there is a server open on a port with python?

Ok, so I did the following, figuring it would raise an exception if it could not connect: >>> …

python sockets windows-xp connect python-2.5
What encoding do I need to display a GBP sign (pound sign) using python on cygwin in Windows XP?

I have a python (2.5.4) script which I run in cygwin (in a DOS box on Windows XP). I want to …

python encoding python-2.5
Format int as int, but float as %.3f

I have a function that expects two cutoff values, called min_df and max_df. Either may be an int …

python string-formatting python-2.5
Subclassing int in Python

I'm interested in subclassing the built-in int type in Python (I'm using v. 2.5), but having some trouble getting the initialization …

python inheritance subclass python-2.5
Multiple (asynchronous) connections with urllib2 or other http library?

I have code like this. for p in range(1,1000): result = False while result is False: ret = urllib2.Request('http://server/?…

python asynchronous urllib2 python-2.5
Python 2.4 inline if statements

I am setting up an existing django project on a dreamhost web server, so far I have got everything to …

python django dreamhost python-2.5 python-2.4
Tell if Python is in interactive mode

In a Python script, is there any way to tell if the interpreter is in interactive mode? This would be …

python interactive python-2.5 python-2.x
Parsing datetime strings with microseconds in Python 2.5

I have a text file with a lot of datetime strings in isoformat. The strings are similar to this: '2009…

python datetime parsing python-2.5
How do I use the FPS argument in cv2.VideoWriter?

Ok, so I am making a video. I want to know exactly how to use the FPS argument. It is …

python video opencv windows-xp python-2.5
How to parse a RFC 2822 date/time into a Python datetime?

I have a date of the form specified by RFC 2822 -- say Fri, 15 May 2009 17:58:28 +0000, as a string. Is there a …

python parsing datetime time python-2.5