[Python-Dev] pipe syntax for sequential data

Gustavo Niemeyer niemeyer at conectiva.com
Wed Apr 14 15:51:15 EDT 2004


> bash_users = ( file('/etc/passwd') | grep('/bin/bash') | aslist )

I don't think I'll be using this myself, but it's
undoubtfully clever! :-)

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the Python-Dev mailing list