I'm trying to create a connection between a server to many clients using select.
I have tried this only with one client, but after he connects (works fine), even without any sends from the client, it ...

I am new to the pyparsing module and am trying to parse the example strings shown below from files which are over 60000 lines. I need to extract data from each line. However the current implementation ...

I am trying to parse a huge file (approx 23 MB) using the code below, wherein I populate a multiprocessing.manager.list with all the lines read from the file . In the target routine (parse_line) for ...

I'm in the process of implementing a K-nearest neighbour algorithm in Python (for those of you that don't know about learning, it's an algorithm used to classify objects based on data that is already ...

I am stuck using Python 2.6 and I need to send a post request using TLS 1.2. Does Python 2.6's requests library support TLS 1.2? How do I ensure/verify that the request is made via TLS1.2 and not some ...

I have two iterators. Each represents a possibly infinite stream of data coming from a blocking resource, like a socket.
I want to merge the data in the two iterators, in the order it arrives- i.e. ...

I am working on bash and internally calling python Script for SFTP using PYSFTP. Previously when I used FTP there was a ftp_setdebug(1) option so that I can check the Transfer and goodbye messages. ...

I'm trying to create via boost python a package which will include several modules.
The reasoning is that we want to expose a very large API, and it makes sense to group it in different modules for ...

I'm working on an application which kicks off testing tasks on a machine. However I'm having trouble finding a balance with usability here.
I want to provide the ability to:
run a single task
run a ...

I've got a log file on external computer in my LAN network. Log is an XML file. File is not accessible from http, and is updating every second.
Currently i'm copying log file into my computer and run ...

Background
I am using ElementTree in Python version 2.6 to create an XML file (using data retrieved from a database).
Code
The following line of code is the problem area, as I keep getting a syntax ...

Some background information
I am using SQLite to access a database and retrieve the desired information. I'm using ElementTree in Python version 2.6 to create an XML file with that information.
Code
...

I'm trying to read a binary file and match number(s) in each of its records.
If the number matches then the record is to be copied to another file.
the number should be present in between 24th to 36th ...

I've a strange issue using elementTree while trying to remove an element,
It's seem that it's just navigating and deleting only the odd elements.
Here is the code
import xml.etree.ElementTree as ET
...

I run a Windows 8 computer and was initially coding in Python 3.4.1. But for a school assignment, I needed to code in Python 2.6.6. After installing 2.6.6 I realized that it completely removes Python ...

I'm using scapy to show all layers of a packet and when the packet has a UDP layer and Raw it sometimes gives me an 'UnicodeDecodeError: 'charmap' codec can't decode byte...' and I dont know what to ...

When I run the following program, all I get is a little window, and a small text box (text box), according to the program, it should be a big window, bigger text box and two buttons.
import wx
class ...

I need to install from source the package rpy2 on a machine running python 2.6 (old CentOS release). The current version of rpy2 is 2.5, and it's only compatible on python >= 2.7.
From the official ...