On Sun, Jul 17, 2005 at 06:43:00PM -0700, chuck wrote:
I have found that sys.stdin.fileno() and sys.stdout.fileno() always
return -1 when executed from within a win32 service written using the
win32 extensions for Python.
Anyone have experience with this or know why?
because there *is* no
Interesting. The stdin and stdout objects in my service seems respond
to returing a string for the statements str(sys.stdin) and
str(sys.stdout). I guess they are just not attached to files?
Can you provide a reference (MSDN or otherwise) that indicates that
Windows Services don't have standard
It seems to simply be common wisdom. e.g.,
http://mail.python.org/pipermail/python-win32/2004-September/002332.html
http://mail.mems-exchange.org/pipermail/quixote-users/2004-March/002743.html
http://twistedmatrix.com/pipermail/twisted-python/2001-December/000644.html
etc
If you can find chapter
common wisdom interesting.
The value of the closed attribute is False when tested from within
the service.
Still digging
--
http://mail.python.org/mailman/listinfo/python-list
I have found that sys.stdin.fileno() and sys.stdout.fileno() always
return -1 when executed from within a win32 service written using the
win32 extensions for Python.
Anyone have experience with this or know why?
--
http://mail.python.org/mailman/listinfo/python-list