Making the Zen of Python more useful

Camilo Olarte colarte at telesat.com.co
Fri Apr 2 09:18:47 EST 2004


What about this:

<code>

import os
zen_command = os.popen("python -c 'import this'")
zen_string = ""
for line in zen_command.readlines():
    zen_string += line
zen_command.close()
print zen_string

</code>

Camilo Olarte

Telesat, más fácil...más Internet.
http://www.telesat.com.co/




More information about the Python-list mailing list