Issue222880

classification
Title: Incorrect parsing in if statement
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn
Priority: low Keywords:

Created on 2000-11-18.19:50:12 by bckfnn, last changed 2000-11-19.22:06:00 by bckfnn.

Messages
msg209 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.19:50:12
A JPython script will either not pass the line 
with the if statement because of the single =
sign, it either endless uses cpu cycles on it, or
gives a java 'inconsistent thread' error and seg_v.

Regular python tells you what is wrong.


var_a = 'blah'
var_b = 'halb'

if (var_a == 'blah' and var_b = 'halb') :
  print 'IT IS TRUE'
else :
  print 'IT IS FALSE'
msg210 (view) Author: Finn Bock (bckfnn) Date: 2000-11-19.22:06:00
Tested on Solaris 2.8/SunOS 5.8 with JVM's Sun 1.1.8 and Sun 1.2.1. The example works as expected.
History
Date User Action Args
2000-11-18 19:50:12bckfnncreate