[Python-Dev] Re: 'commands' module on Win32 (original) (raw)

Johannes Gijsbers jlgijsbers at planet.nl
Fri Aug 13 14:54:30 CEST 2004


Nick Coghlan <ncoghlan at iinet.net.au> wrote:

Are there any objections to changing this module so that only getstatus() is marked as Unix specific?

Not from me.

I ask, because I don't want to start work on a documentation patch if the idea is a non-starter (the code & test changes are already done, butI think the hardest part of the exercise will be moving the documentation out of the 'Unix-specific' part of the doc tree).

This is pretty easy actually. In fact, while I was checking whether it really was easy, I created a patch you could use. It's attached.

Johannes -------------- next part -------------- cvs diff: Diffing . Index: lib.tex

RCS file: /cvsroot/python/python/dist/src/Doc/lib/lib.tex,v retrieving revision 1.229 diff -B -c -r1.229 lib.tex *** lib.tex 7 Aug 2004 16:53:59 -0000 1.229 --- lib.tex 13 Aug 2004 12:27:42 -0000 *************** *** 189,194 **** --- 189,195 ---- \input{libtarfile} \input{libreadline} \input{librlcompleter} + \input{libcommands}
\input{libunix} % UNIX Specific Services \input{libposix} *************** *** 207,213 **** \input{libresource} \input{libnis} \input{libsyslog} - \input{libcommands}
\input{libpdb} % The Python Debugger
--- 208,213 ---- Index: libcommands.tex

RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcommands.tex,v retrieving revision 1.12 diff -B -c -r1.12 libcommands.tex *** libcommands.tex 22 Apr 1999 15:53:35 -0000 1.12 --- libcommands.tex 13 Aug 2004 12:27:42 -0000


*** 2,8 **** Utilities for running commands}

\declaremodule{standard}{commands} ! \platform{Unix} \modulesynopsis{Utility functions for running external commands.} \sectionauthor{Sue Williams}{sbw at provis.com}

--- 2,8 ---- Utilities for running commands}

\declaremodule{standard}{commands} ! \platform{Unix, Windows} \modulesynopsis{Utility functions for running external commands.} \sectionauthor{Sue Williams}{sbw at provis.com}


*** 33,39 **** \begin{funcdesc}{getstatus}{file} Return the output of \samp{ls -ld \var{file}} as a string. This function uses the \function{getoutput()} function, and properly ! escapes backslashes and dollar signs in the argument. \end{funcdesc}

Example: --- 33,39 ---- \begin{funcdesc}{getstatus}{file} Return the output of \samp{ls -ld \var{file}} as a string. This function uses the \function{getoutput()} function, and properly ! escapes backslashes and dollar signs in the argument. Availability: \UNIX. \end{funcdesc}

Example:



More information about the Python-Dev mailing list