[ python-Feature Requests-1728488 ] -q (quiet) option for python interpreter

SourceForge.net noreply at sourceforge.net
Mon Aug 13 05:35:27 CEST 2007


Feature Requests item #1728488, was opened at 2007-05-30 20:44
Message generated for change (Comment added) made by wojdyr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1728488&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Marcin Wojdyr (wojdyr)
Assigned to: Nobody/Anonymous (nobody)
Summary: -q (quiet) option for python interpreter

Initial Comment:

I'd like to suggest the new option for python:

 -q     Do not print the version and copyright messages.  These messages are also suppressed in non-interactive mode.

Why:
I often use python as a calculator, for a couple-lines calculations, and would prefer to avoid having printed these three lines.
There is a similar option in e.g. gdb.


AFAICS the implementation would require small changes in Modules/main.c, Misc/python.man and probably in other docs. If it would be accepted, I can do it.

Marcin

----------------------------------------------------------------------

>Comment By: Marcin Wojdyr (wojdyr)
Date: 2007-08-13 05:35

Message:
Logged In: YES 
user_id=586843
Originator: YES

-> patch 1772833

----------------------------------------------------------------------

Comment By: O.R.Senthil Kumaran (orsenthil)
Date: 2007-08-03 04:06

Message:
Logged In: YES 
user_id=942711
Originator: NO

+1 for this option.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2007-08-02 06:26

Message:
Logged In: YES 
user_id=80475
Originator: NO

+1 I think this would be nice.  

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1728488&group_id=5470


More information about the Python-bugs-list mailing list