[Python-Dev] deprecate commands.getstatus() (original) (raw)
Georg Brandl g.brandl at gmx.net
Tue Mar 13 21:32:47 CET 2007
- Previous message: [Python-Dev] assert(obj) in Py_DECREF and Py_INCREF?
- Next message: [Python-Dev] deprecate commands.getstatus()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'd like to deprecate commands.getstatus() in 2.6.
Reason: there is getoutput() and getstatusoutput(). In the latter, "status" means the exit code. getstatus(), however, returns the output of "ls -ld " which is completely nonobvious and confusing.
Perhaps the whole commands module can be deprecated in favor of subprocess.
Georg
- Previous message: [Python-Dev] assert(obj) in Py_DECREF and Py_INCREF?
- Next message: [Python-Dev] deprecate commands.getstatus()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]