Using doctest and executing a process

Tim Peters tim.one at comcast.net
Mon Mar 11 18:16:12 EST 2002


[Tim]
> You may have better luck with, e.g.
>
> >>> os.open('/bin/ls').read()

Make that

>>> os.popen('/bin/ls').read()

or-insert-other-letters-at-random-until-it-actually-works-ly y'rs  - tim




More information about the Python-list mailing list