A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-April/044205.html below:

[Python-Dev] pipe syntax for sequential data

[Python-Dev] pipe syntax for sequential data [Python-Dev] pipe syntax for sequential data" Maxim Krikun " tws5 at mail.ru
Tue Apr 13 10:06:39 EDT 2004
Helo python-dev.

Please take a look at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/276960

This recipe proposes an alternative syntax for sequential data processing functions, that reflects unix shell pipe syntax. Here is an example:

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

I don't know if this idea was already explored before; hope this can be useful. For details and sample code please see link above.


regards,

Maxim

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4