Who can do genetic programming with Python

Michal Wallace sabren at manifestation.com
Wed Nov 21 19:05:29 EST 2001


On 21 Nov 2001, J.Jacob wrote:

> Does anyone have code that produces correct but random
> Python code ?  This would be useful for a genetic
> programming (GP) test we want to do.

I agree with the other responses about syntax... 

BUT... Here's two things you might consider:


   - Neil Schemenauer has an S-expression parser for python
     http://www.enme.ucalgary.ca/~nascheme/

   - You might have some success generating python bytecode.
     I'm not sure, but the bytecodehacks might help here:

     http://sourceforge.net/projects/bytecodehacks/


Cheers,

- Michal   http://www.sabren.net/   sabren at manifestation.com 
------------------------------------------------------------
Give your ideas the perfect home: http://www.cornerhost.com/
 cvs - weblogs - php - linux shell - perl/python/cgi - java
------------------------------------------------------------





More information about the Python-list mailing list