How to debug embeding Python?

weir009 at sina.com weir009 at sina.com
Tue Dec 30 04:23:52 EST 2008


Using udp to send out message is a convenient way, you may define a
log function like following, and start a udp server to lisen.

#############
from socket import *

udpSock = socket(AF_INET,SOCK_DGRAM)

def log(s):
	udpSock.sendto(s, ('127.0.0.1', 514))

log('hello')



More information about the Python-list mailing list