Unix programmers and Idle

Dale Amon amon at vnl.com
Sat Apr 4 02:48:48 CEST 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.pgp>

More information about the Python-list mailing list