On 02/11/2010 11:29, Crallion wrote:
In an attempt to generate "true" random numbers, I found this python script-
http://code.google.com/p/truerandom/
Getting to the point, I get this error when I run my program.
File "/dev/python/absolute/truerandom.py", line 9, in<module>
from urllib import urlopen
ImportError: cannot import name urlopen
Is urllib and/or urlopen deprecated in 3.1.2 or is it something I forgot to do?
Python is running on OSX 10.6, which I upgraded from the default install to
3.1.2.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
|The urllib2 module has been split across several modules in Python 3.0
named urllib.request and urllib.error so you should be doing `from
urllib.request import urlopen`.|
--
Kind Regards,
Christian Witts
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor