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

SourceForge.net noreply@sourceforge.net
Fri, 28 Feb 2003 11:52:15 -0800


Bugs item #672614, was opened at 2003-01-22 18: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: Michael Stone (mbrierst)
Date: 2003-02-28 19:52

Message:
Logged In: YES 
user_id=670441

Douglas, I went ahead and made your patch into a diff -c at
patch number 695250, since it seemed like you
weren't going to get to as quickly as you thought.

I would have attached it here, but of course in sourceforge
I cannot.

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

Comment By: Douglas Napoleone (derivin)
Date: 2003-01-26 07: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-26 01: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