Issue469805

classification
Title: Sample code wrong / Bug in Jython20
Type: Severity: normal
Components: Documentation Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: nobody, pedronis
Priority: normal Keywords:

Created on 2001-10-10.09:00:52 by anonymous, last changed 2001-10-15.22:19:11 by pedronis.

Messages
msg423 (view) Author: Nobody/Anonymous (nobody) Date: 2001-10-10.09:00:52
In http://www.jython.org/docs/usejava.html is the 
following code:

>>> for i in range(5):
...     print r.nextDouble()

However with jython20 I get a syntax error trying to 
run this (the problem seems to be with the for 
statement).

I don't know whether this is a documentation error or 
a bug in jython20 (I'm a newbie to jython/python - 
hence the reason I was reading the docs.)

msg424 (view) Author: Nobody/Anonymous (nobody) Date: 2001-10-10.09:54:21
Logged In: NO 

Please ignore. Newbie error :-)
msg425 (view) Author: Samuele Pedroni (pedronis) Date: 2001-10-15.22:19:11
Logged In: YES 
user_id=61408

;)
History
Date User Action Args
2001-10-10 09:00:52anonymouscreate