Message41186
Logged In: YES
user_id=44345
Yes, this works for me as well:
$ python
Python 2.2.1 (#2, Sep 9 2002, 17:22:35) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('(less) 2>/dev/null')
256
I checked in that change as pydoc.py 1.70 and am closing this item.
One last question, however... Is there some reason the 'more' test just
below:
if hasattr(os, 'system') and os.system('more %s' % filename) == 0:
has a slightly different structure? Why not 'more 2>/dev/null' or now
'(more) 2>/dev/null'?
|
|
Date |
User |
Action |
Args |
2007-08-23 15:15:24 | admin | link | issue612111 messages |
2007-08-23 15:15:24 | admin | create | |
|