Message90532
The documentation in Python 2.6 claims os.popen is deprecated [1]. This
is probably a false claim. I think that at some point os.popen got
confused with os.popen2, os.popen3, os.popen4 and the popen2 module, all
of which are correctly deprecated.
I bring three forward three pieces of evidence that os.popen is *not*
deprecated:
i) In Python 3.1, unlike the others, os.popen is still present and is
not even deprecated. [2]
ii) Unlike the others, using os.popen does not raise a DeprecationWarning;
iii) Unlike the others, its implementation is lifted straight from the
posix module.
--
[1] http://docs.python.org/2.6/library/os.html#os.popen
[2] http://docs.python.org/3.1/library/os.html#os.plock |
|
Date |
User |
Action |
Args |
2009-07-15 08:35:40 | krawyoti | set | recipients:
+ krawyoti, georg.brandl |
2009-07-15 08:35:39 | krawyoti | set | messageid: <1247646939.28.0.091306950041.issue6490@psf.upfronthosting.co.za> |
2009-07-15 08:35:38 | krawyoti | link | issue6490 messages |
2009-07-15 08:35:36 | krawyoti | create | |
|