Message92340
The following program works fine under Mac OS 10.5.x. But in 10.6, it
crashes Python, and displays Apple's crash reporter dialog. I've tried
it on Python 2.6 and 2.5, both the 64-bit and 32-bit versions.
The crash seems to happen any time urllib.urlopen is done in a thread.
The same thing happens if I do it in a BaseHTTPServer.HTTPServer, using
SocketServer.ThreadingMixIn.
#!/usr/bin/python
import threading, urllib
class MyThread (threading.Thread):
def run(self):
c = urllib.urlopen("http://www.google.com")
MyThread().start() |
|
Date |
User |
Action |
Args |
2009-09-07 00:01:00 | jweber | set | recipients:
+ jweber, ronaldoussoren |
2009-09-07 00:00:59 | jweber | set | messageid: <1252281659.27.0.994311757963.issue6851@psf.upfronthosting.co.za> |
2009-09-07 00:00:56 | jweber | link | issue6851 messages |
2009-09-07 00:00:54 | jweber | create | |
|