--- Steve Howell <[EMAIL PROTECTED]> wrote:
> 
> Can I suggest a minor optimization?
> 
> Instead of this...
> 
>     def get_predicate(arg):
>         return arg if callable(arg) else (
>                arg.__eq__ if hasattr(arg,'__eq__')
> else
>                lambda item: item == arg)
> 

Never mind, I understand what you're doing now.  The
"arg" variable through me off, so I'll make the even
more minor suggestion that a better variable name
might help here.  Perhaps "delim"?




       
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to