En Tue, 08 May 2007 13:54:31 -0300, HMS Surprise <[EMAIL PROTECTED]> escribió:
>> print urllib.__file__ >> print dir(urllib) >> > > C:\maxq\bin\testScripts\.\urllib.py > ['__doc__', '__file__', '__name__', 'string'] Perhaps you get an import error and it got unnoticed? I think earlier Python versions could leave a partially initialized module in sys.modules, and Jython could suffer that. Because the first thing urllib does is to import string, and the second, to import socket. Maybe it can't find socket.py or its dependencies (that's not surprising, if Jython could not find urllib.py in the first place). So copying individual modules from the library isn't a good solution - you'd have to copy a lot of things in order to fulfill the growing import requirements. Best is to make Jython find its library - if Jython was installed on C:\Jython, it should be at C:\Jython\Lib. Follow the advice from John Machin on the other thread. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list