Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100146

Re: storing test logs under /var/log/

From Ganesh Pal <ganesh1pal@gmail.com>
Newsgroups comp.lang.python
Subject Re: storing test logs under /var/log/
Date 2015-12-08 16:30 +0530
Message-ID <mailman.56.1449572461.12405.python-list@python.org> (permalink)
References <CACT3xuUafZ8Ga4WyLvRLHu0JYkp3cPBBeOUZo0sWazmcEGC-gw@mail.gmail.com> <20151203081723.GA48121@cskk.homeip.net>

Show all headers | View raw


> Finally. sys.exit accepts an integer, not a string.
>

Most of code  uses sys.exit("some error message")   ,  I did notice
that the error message is not displayed by sys .exit("some error
message") ,  do  u mean that using string is not advisable with
sys.exit ?
How to I display error messages with sys.exit then ?

PS:Thanks for all your previous comments ,  all were quite helpful .

Regards,
Ganesh

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: storing test logs under /var/log/ Ganesh Pal <ganesh1pal@gmail.com> - 2015-12-08 16:30 +0530

csiph-web