Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100146
| Path | csiph.com!au2pb.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ganesh Pal <ganesh1pal@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: storing test logs under /var/log/ |
| Date | Tue, 8 Dec 2015 16:30:53 +0530 |
| Lines | 13 |
| Message-ID | <mailman.56.1449572461.12405.python-list@python.org> (permalink) |
| References | <CACT3xuUafZ8Ga4WyLvRLHu0JYkp3cPBBeOUZo0sWazmcEGC-gw@mail.gmail.com> <20151203081723.GA48121@cskk.homeip.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de L7uNdmcAZr3LHySm+rhYkgqy7PmF31Ycjl4Xreka8VdA== |
| Return-Path | <ganesh1pal@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'string.': 0.04; 'sys': 0.05; 'subject:test': 0.07; 'integer,': 0.09; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:log': 0.16; 'subject:under': 0.16; 'string': 0.17; 'to:name:python-list@python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'helpful': 0.27; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'accepts': 0.29; 'subject:/': 0.30; 'comments': 0.30; 'code': 0.30; 'displayed': 0.33; 'previous': 0.34; 'received:google.com': 0.35; 'quite': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:209': 0.38; 'mean': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'message")': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=N6hjDDVrbaxWrUf4zVZtfpLCbK/kBXx8agIN7Mi21I4=; b=u6uGbZCL+83ZodfqMqGLxrkNDbYLEuzZzuqpKz9pQsa7mPNTeqR9Re8LpxrOj+C7zv ZUSQ1lSQ/de0pfESJtqGINslkh1XHy2H8SKEhnWhEdDsVgCcwMJV5IGUAXYEqyaIpwD6 RAORyDN6ni+vONnFZE1TUaCKU1fOgPwINRwYfd4cWxfP4VM6rbs3RxBETLihQffM70y1 UI/rT2nS/DATyL9PEMK1Yrq7E0aPMdDa5oYWugoY36KPNW5p4Ekrynnm8In/I0nbE4gE ZW+mPdhQ0zRzi10RQ4iiGdvTRC8zXoGYYC49DOjnXQGCagyMt4zcb/j/DtD0B2u8WCfq scFA== |
| X-Received | by 10.25.147.84 with SMTP id v81mr1253056lfd.119.1449572453219; Tue, 08 Dec 2015 03:00:53 -0800 (PST) |
| In-Reply-To | <20151203081723.GA48121@cskk.homeip.net> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:100146 |
Show key headers only | 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
Re: storing test logs under /var/log/ Ganesh Pal <ganesh1pal@gmail.com> - 2015-12-08 16:30 +0530
csiph-web