This is just a question I've been wondering about,
that I think could be a huge PR sell for parrot
in the python world if the answer is "yes".

Could you serialize a parrot function?

In other words, if you interactively define a 
function at the prompt, could you save it to
disk? (not the source code, the actual binary
representation of the function?)

Better yet, could you define a generator and
save its state to disk?

This came up last week or so on the pygame list.
It seems natural to use generators for games or
simulations with lightweight threads. But right
now, you can't actually save a generator once 
you've got it, so it's kind of a pain.

Stackless python was able to do pickle generators
for a while, but I think the feature got removed.

Does this work out of the box? If not, does anyone
have any idea how to even approach this problem?

Sincerely,
 
Michal J Wallace
Sabren Enterprises, Inc.
-------------------------------------
contact: [EMAIL PROTECTED]
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--------------------------------------

Reply via email to