wrobell <wrob...@pld-linux.org> added the comment:

A use case

    wget -O http://planet.openstreetmap.org/planet-110112.osm.bz2 | tee 
planet.bz2 | osm2sql | psql osm

planet-*osm.bz2 files are 14GB at the moment. it would be great to read them 
from stdin while downloading from a server and uploading to a database at the 
same time.

Of course, you can insert "bzip2 -d" into the pipe... but then why to bother 
with bz2 module in Python? ;)

----------
nosy: +wrobell

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to