sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

No cascade inline attribution inside class #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

class NoCascade:
 def __init__(self):
  a = b = 2
  print (a)

nc = NoCascade()

What is the expected output? What do you see instead?
expected:
2

instead reports a syntax error in a out of scope line (36):

ExecutionError: syntax error
module '__main__' line 36
undefined

What version of the product are you using? On what operating system?
Brython version 1.0.20130202-121412
Ubuntu 11.10

Please provide any additional information below.

Outside class works fine

a = b = 2
print (a)
2

Original issue reported on code.google.com by cet...@gmail.com on 2 Feb 2013 at 1:29

GoogleCodeExporter commented 9 years ago
Thanks, I am fixing it in the rewritten version of core modules, out soon

Original comment by pierre.q...@gmail.com on 2 Feb 2013 at 6:38

GoogleCodeExporter commented 9 years ago
Fixed in version 1.1

Original comment by pierre.q...@gmail.com on 16 Feb 2013 at 5:27