Hallöchen!

Paul McGuire writes:

> On Dec 31, 2:54 am, abhishek <[EMAIL PROTECTED]> wrote:
>>
>> Use this function --
>>
>> def omitNonAscii(nstr):
>>     sstr=''
>>     for r in nstr:
>>         if ord(r)<127:
>>             sstr+=r
>>     return sstr
>
> <Yoda>
> Learn the ways of the generator expression you must.
> </Yoda>

Stupid me!  How could I miss such a lovely feature in the language?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: [EMAIL PROTECTED]
               (See http://ime.webhop.org for further contact info.)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to