python 在windows2003下存在问题

import os
import time

ping = os.popen("ping 187.186.0.1 -t")
result = ping.next()
#f = open("c:\\ping.txt","w")
while len(result)>0:
    print result
   # localtime = str(time.localtime)
    #lctime = str(localtime[0])+'-'+str(localtime[1])+'-'+str(localtime[2])+'  '+str(localtime[3])+':'+str(localtime[4])+':'+str(localtime[5])+':'+str(localtime[6])
    #f.write(lctime+'---->'+result+'\n')
    result = ping.next()

#f.close()

以上程序在Windows 2003下总是无结果,测试版本Python2.4.4,2.51,
但用同样在Windows 2003下用jython_2.2rc3就有结果,郁闷呀。