#58 yield gives problem

0.8.x
closed-duplicate
Editor (491)
5
2004-12-28
2004-12-28
hevi
No

eg.:

def testfunc():
n = 10
yield n

gives problem on n after yield; "Was excepting one of: .."

def testfunc():
n = 10
yield (n)

works

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=646916

    This is because we are using Jython's parser. The workaround
    is to use yield(x) instead.

     
    • status: closed --> closed-duplicate