On Mon, Oct 31, 2005, Martin Blais wrote: > > There is a way to hack something like that with reduce, but it's not > pretty--it involves creating a temporary list and a lambda function: > > ... = reduce(lambda x, y: dirname(x), [p] + [None] * 3) > > Just wondering, does anybody know how to do this nicely? Is there an > easy form that allows me to do this?
This should go on comp.lang.python. Thanks. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com