Refactor a buffered class...

lh84777 at yahoo.fr lh84777 at yahoo.fr
Wed Sep 6 14:13:10 EDT 2006


Michael Spencer a écrit :

> If you just need to 'walk across a list of items', then your buffer class and
> helper function seem unnecessary complex.  A generator would do the trick,
> something like:

actually for the example i have used only one sentry condition by they
are more numerous and complex, also i need to work on a huge amount on
data (each word are a line with many features readed from a file)

but generators are interesting stuff that i'm going to look closer.

thanks.




More information about the Python-list mailing list