On Mon, Oct 18, 2010 at 1:41 AM, Stefan Behnel <stefan...@behnel.de> wrote:
> Or, a bit shorter, using Cython 0.13:
>
>    def only_allowed_characters(list strings):
>        cdef unicode s
>        return any((c < 31 or c > 127)
>                   for s in strings for c in s)

Very cool, this caused me to look up the 0.13 release notes:

http://wiki.cython.org/ReleaseNotes-0.13

So they support generator expressions inside all() et al now... Makes
you wonder how long till they support them generally ;-)

D
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to