[Python-Dev] pipe syntax for sequential data (original) (raw)

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


bashusers = ( 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