Generators versus Coroutines

Timothy Fitz firemoth at gmail.com
Mon Aug 16 00:33:31 EDT 2004


Dominic <nomail at nospam.no> wrote in message news:<cfn0oa$112$1 at news.uni-kl.de>...
> > values. I am currently writing a real time strategy game where I have
> I have written a simple 2D-real-time vehicle simulator in Python
>    (+ graphics library Allegro), using chained generators
> which works well enough.
> 
> If your game is more ambitious, spend some time designing
>   a good architecture and specify your components' interfaces.
> Then you could generate your code-skeleton from that;
> simple generators should be sufficient to implement
> your methods which are then driven by your architectures
> "execution model".
> 
> ciao,
>   Dominic

It really was never an issue of "Python can't handle this." it was
more of an issue of "Python should more openly support this." I am
championing generators because they make programming SO much easier in
cases, and people really just don't use them outside if list
generation, which saddens me.



More information about the Python-list mailing list