Unix programmers and Idle

Dale Amon amon at vnl.com
Fri Apr 3 20:48:48 EDT 2009


Just in case anyone else finds it useful, to be precise I use:

    if opts.man:
        p1 = Popen(["echo", __doc__], stdout=PIPE)        
        p2 = Popen(["pod2man"], stdin=p1.stdout, stdout=PIPE)
        p3 = Popen(["nroff","-man"], stdin=p2.stdout, stdout=PIPE)        
        output = p3.communicate()[0]
        print output

inside the def main().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090404/fc2aa267/attachment-0001.sig>


More information about the Python-list mailing list