Question regarding a recent article on informit.com

Nick Vargish nav at adams.patriot.net
Thu Mar 20 15:14:04 EST 2003


Peter Hansen <peter at engcorp.com> writes:

> Doesn't reduce return a non-list (or at least, isn't it the case that 
> it doesn't necessarily return a list the way map and filter do)?

Yep (see .sig :^).

Nick

-- 
# sigmask.py  ||  version 0.2  ||  2003-01-07  ||  Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')




More information about the Python-list mailing list