[Python-bugs-list] [ python-Bugs-672614 ] python -S still displays 'Type "help", "cop...'

SourceForge.net noreply@sourceforge.net
Sat, 25 Jan 2003 23:31:54 -0800


Bugs item #672614, was opened at 2003-01-22 13:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=672614&group_id=5470

Category: Extension Modules
Group: Python 2.2
Status: Open
Resolution: None
Priority: 1
Submitted By: Douglas Napoleone (derivin)
Assigned to: Nobody/Anonymous (nobody)
>Summary: python -S still displays 'Type "help", "cop...'

Initial Comment:
$ python -S
Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> help
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'help' is not defined


site.py sets up the builtins for help, credits, etc.
where this is printed in Py_Main() it is already known 
wether or not site.py was going to be imported or not.

I know its a real nit-pick, but it has bugged me for some 
time.

should be set to a LOW priority.

(and yes, the bug is still there in 2.3a1)






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

>Comment By: Douglas Napoleone (derivin)
Date: 2003-01-26 02:31

Message:
Logged In: YES 
user_id=541557

um sure....

its just:
if(!Py_NoSiteFlag)
{
    fprintf(stderr, "%s\n" COPYRIGHT);
}

I'll put up a dicc -c patch on monday after I test it...
seen to many patches that dont compile ^_^


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

Comment By: Martin v. Löwis (loewis)
Date: 2003-01-25 20:08

Message:
Logged In: YES 
user_id=21627

Would you like to work on a patch?

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

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