joe-greenawalt / skulpt

Automatically exported from code.google.com/p/skulpt
Other
0 stars 0 forks source link

Cannot call functions from within generator #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code you're trying to run:
def funky():
  print "cheese"

def gen():
  i=0
  funky()
  yield 1
  i += 1

Then in Javascript:
g = gen();
g.next()

What does "real" Python output?
Cheese

What browser are you using? On what operating system?
FF3.5 Fedora 11.

Please provide any additional information.
error:  TypeError: obj is undefined 

Original issue reported on code.google.com by justynbu...@gmail.com on 14 Sep 2009 at 10:21

GoogleCodeExporter commented 9 years ago
not obvious that it's the same as #42, but it is... merging.

Original comment by sgraham on 15 Sep 2009 at 5:10