Handling Infinite Loops on Server Applications

2007-05-02 Thread Paul Kozik
I'm working with a small server program I'm writing for a small video game. The main class constructor starts a thread that handles socket connections, which itself starts new threads for each user connection. The actual server program itself however needs to wait in the background, but continue l

Asyncore Help?

2007-05-13 Thread Paul Kozik
I am working on the networking code for a small Multiplayer RPG I'm working on. I currently have some basic code using threads, but it seems like asyncore would be far better suited for my needs. However, I have trouble finding a solid example for what I need. Python.org and other sites provide sim

XML minidom Parsing and ToPrettyXML

2007-03-25 Thread Paul Kozik
I am trying to write a script that reads an XML file (using the minidom module), makes an edit to a few attributes, then saves it back. If I use minidom.Document() to create the xml file, then write it with toprettyprint, it looks fine. However, if I use xml.minidom.parse to parse the xml document