when a python function uses "yield foo", the perl code gets a string "<generator object at 0x820c530>"
But, if the function returns a python list, it becomes a perl array. Is this a matter of typemaps? Are there any plans to support generator functions in Inline::Python? I'd like to be able to call this with: while(my $thing = $ref->gfoo()) { if ($thing->ask($question)) { push(@deals, $thing->stuff()); } } If generators cannot be used, then a foreach loop would mean that the perl code would have to wait for the python code to go through the whole list, when the perl code might want just the first few items. Any suggestions? Thanks, Eric