Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread Greg Ewing
Guido van Rossum wrote: Unless, it's as simple as replacing "os.system(x)" with "subprocess.system(x)", I'm against this removal of a handy shorthand. Also, seeing as it's a well-known C library facility, and Python likes to provide thin wrappers around the C library wherever reasonable, its la

Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread Chris Rebert
> On Sun, Jul 25, 2010 at 11:42 PM, Chris Rebert wrote: >> Hello, >> >> I'd like to propose formally marking os.system() as deprecated in the >> docs for next release of Python (v3.2 ?). >> >> The docs for os.system() /already/ include the following paragraph, >> which is basically tantamount to c

Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread anatoly techtonik
Is it possible to use subprocess functionality in os.system()? Just exactly describe what it does instead of "This is implemented by calling the Standard C function system(), and has the same limitations." type sentences. -- anatoly t. On Mon, Jul 26, 2010 at 6:52 PM, A.M. Kuchling wrote: > Th

Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread A.M. Kuchling
The current text is: The subprocess module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using this function. See the Replacing Older Functions with the subprocess Module section in the subprocess d

Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 04:42:06 pm Chris Rebert wrote: > Hello, > > I'd like to propose formally marking os.system() as deprecated in the > docs for next release of Python (v3.2 ?). -0.5 on that. I often use os.system() for quick and dirty scripts that just call an external process without caring wh

Re: [Python-Dev] marking os.system() as deprecated in the docs

2010-07-26 Thread Guido van Rossum
Unless, it's as simple as replacing "os.system(x)" with "subprocess.system(x)", I'm against this removal of a handy shorthand. Ditto for popen. On Sun, Jul 25, 2010 at 11:42 PM, Chris Rebert wrote: > Hello, > > I'd like to propose formally marking os.system() as deprecated in the > docs for next

[Python-Dev] marking os.system() as deprecated in the docs

2010-07-25 Thread Chris Rebert
Hello, I'd like to propose formally marking os.system() as deprecated in the docs for next release of Python (v3.2 ?). The docs for os.system() /already/ include the following paragraph, which is basically tantamount to calling system() deprecated and very much resembles the deprecation notes for