[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread Benoit Pilatte


Benoit Pilatte  added the comment:

Yes, I forgot about that, but is there a way to edit it ? 
I just want to add a line after the first one to give system information.
Disabling it and re-printing it seams a bit overkill and I don't want to alias 
`python` to `python -q`.

--

___
Python tracker 
<https://bugs.python.org/issue36255>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread Benoit Pilatte


Change by Benoit Pilatte :


--
title: Provide a simple way to delete python's welcome message -> Provide a 
simple way to delete and edit python's welcome message

___
Python tracker 
<https://bugs.python.org/issue36255>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36255] Provide a simple way to delete python's welcome message

2019-03-10 Thread Benoit Pilatte


New submission from Benoit Pilatte :

To my knowledge and extensive research on the problem, there is no simple way 
to disable python's welcome message:

"""
Python 3.7.2 (default, Jan 13 2019, 12:50:01)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
"""

It is appended to stdout before the execution of `PYTHONSTARTUP` and is very 
difficult to remove. This could be easily fixed by:

 1. Allowing modification of the welcome message in `PYTHONSTARTUP`
 2. Provide an option to disable it (IPython provides a `--no-banner` option to 
disable it)
 3. At least provide a documented way of disabling it without hijacking the 
shell.

--
components: Interpreter Core
messages: 337614
nosy: benp
priority: normal
severity: normal
status: open
title: Provide a simple way to delete python's welcome message
type: enhancement
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue36255>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com