[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-3000
Subject:    Re: [Python-3000] Minor addition to Python interactive shell...
From:       Ron Adam <rrr () ronadam ! com>
Date:       2008-08-26 19:48:17
Message-ID: 48B45E01.3060508 () ronadam ! com
[Download RAW message or body]



Abdallah El Guindy wrote:
> Hey all
> 
> I know that the feature I am about to suggest may be minor and may have 
> a very low priority considering other issues to be discussed, however 
> I'll suggest it anyways..
> 
> Being a very frequent user of the interactive shell, I find it annoying 
> when I try to use a function or a class that resides in another module 
> that I haven't imported... So why not let the interactive shell say a 
> message about the appropriate module to be imported for this 
> class/function.. The idea is similar to bash on Ubuntu, if you don't 
> have the necessary package it lets you know by suggesting the package 
> name to be installed.
> 
> Let me know what you think.

I think the best way to add this is to add it to the help function, which 
is the console interface to pydoc.  Something like help(find="name") could 
find all instances of name in all available modules.

Ron


_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: http://mail.python.org/mailman/options/python-3000/python-3000%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic