load module named "datetime" and change the directory of output file?

2006-02-01 Thread ye juan
Hi, all
  
I have some questions to ask:

1. How can I add a standard module named "datetime" in
Jython when the error happens :"Traceback (innermost
last):
  File "C:\python\test.py", line 3, in ?
ImportError: no module named datetime "
 The line 3 is writen: "from datetime import datetime,
tzinfor"

2. I hope test.py outputs a file like test.txt, but I
want to change the directory of the result file named
test.txt. for example, the result is in
c:\python\test.txt, but I want to put it in
c:\python\result\test.txt. How can I change the
directory in java?

Thanks for your answer!

Sincerely,

Erica







___ 
无限容量雅虎相册,原图等大下载,超快速度,赶快抢注! 
http://cn.photos.yahoo.com
-- 
http://mail.python.org/mailman/listinfo/python-list

how to run BeautifulSoup in Jython

2006-02-04 Thread ye juan
Hi, 

Anyone tries to use BeautifulSoup (
http://www.crummy.com/software/BeautifulSoup/  ) in
Jython? I can not run that ,the error that Jython
gives me is: unpack sequence too long. 

Sincerely,

Erica

__
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
-- 
http://mail.python.org/mailman/listinfo/python-list