Message4350

Author jsaiz
Recipients jsaiz
Date 2009-03-25.13:57:27
SpamBayes Score 1.0758401e-09
Marked as misclassified No
Message-id <1237989450.73.0.35490186958.issue1288@psf.upfronthosting.co.za>
In-reply-to
Content
Running this script:

### BEGIN SCRIPT
rmax = 300
for i in range(10):
	for j in range(1):
		r=0 
		while(r<rmax):
			for k in range(r):
				continue
			r+=1
		print i,j
### END SCRIPT

produces the following output:

### BEGIN OUTPUT
0 0
1 0
2 0
3 0
4 0
5 0
5Traceback (innermost last):
  File "<console>", line 8, in ?
NameError: j
### END OUTPUT

Sometimes it happens when i = 4, other times when i = 5, i = 6 ...

I reproduced it with OS X 10.5.6 on a MacBook Pro
I could not reproduce it with Red Hat Enterprise Linux 4
I know people that have reproduced it with SuSE Linux 10.3

In all cases, JRE version is 1.6.0_07

It seems that the problem does not happen with JRE 1.6.0_11

A solution would be welcome, since we have to live with that Java
version and that Jython version (2.1) for some weeks/months.

Thanks in advance.
History
Date User Action Args
2009-03-25 13:57:31jsaizsetrecipients: + jsaiz
2009-03-25 13:57:30jsaizsetmessageid: <1237989450.73.0.35490186958.issue1288@psf.upfronthosting.co.za>
2009-03-25 13:57:30jsaizlinkissue1288 messages
2009-03-25 13:57:30jsaizcreate