> Wrong question; if you want to use sys.exit() in a way similar to C display
> the error message first and invoke sys.exit() afterwards with a numerical
> argument.
>
> --
oh ok , got it thanks :)
--
https://mail.python.org/mailman/listinfo/python-list
On 08Dec2015 13:24, Peter Otten <__pete...@web.de> wrote:
Ganesh Pal wrote:
[Cameron Simpson:]
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") ,
Ganesh Pal wrote:
[Cameron Simpson:]
>> 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
>
> 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 wi
On 03Dec2015 12:20, Ganesh Pal wrote:
I would need few tips from your past experiences on how to store
the test logs
My requirement is to capture log under /var/log/ directory every time
the test is run .
Normally /var/log itself is only writable by root. Unless you are running your
test
Hi Team ,
I would need few tips from your past experiences on how to store
the test logs
My requirement is to capture log under /var/log/ directory every time
the test is run . The test will create one small log files which are
around 1KB in size .
Here is how I plan to approach this ,