[Python-ideas] print in the interactive interpreter? plus shell API idea

Leonardo Santagada santagada at gmail.com
Sat Jul 5 18:09:06 CEST 2008

On 05/07/2008, at 12:45, Roman Susi wrote:
> cf:
>>>> print(functools.wraps.__doc__)
> and
>>>> ? functools.wraps.__doc__

in ipython you have:

In [1]:  functools.wraps?

that will print the docstring and if you do ?? it will print the  
source code (or at least try to). Maybe one idea would be to list all  
different python interactive interpreters out there and try to come up  
with a pep describing improvements to the current python interpreter.  
Maybe list everything that could be done without readline (or any  
other similar library) and what depend on complex line editing  
facilities so there could become a option to the interpreter.

Leonardo Santagada

More information about the Python-ideas mailing list