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. -- http://mail.python.org/mailman/listinfo/python-list