PEP ? os.listdir enhancement

Riccardo Galli riccardo_cut1 at cut2_sideralis.net
Thu Jun 23 06:45:45 EDT 2005


On Thu, 23 Jun 2005 11:34:02 +0200, Andreas Kostyrka wrote:

> What's wrong with
> 
> (os.path.join(d, x) for x in os.listdir(d))
> 
> It's short, and easier to understand then some obscure option ;)
> 
> Andreas

how does it help in using list comprehension, as the ones in the first
post?


-- 
Riccardo Galli
Sideralis Programs
http://www.sideralis.net



More information about the Python-list mailing list