Bug or Feature?

Fredrik Lundh fredrik at effbot.org
Fri Dec 29 15:36:23 EST 2000


Emile van Sebille wrote:
> This works:
>
> print eval.__doc__

eval's a function.

>>> eval
<built-in function eval>

>
> but this doesn't:
>
> print exec.__doc__

exec's a statement (and a reserved word), just like print,
def, return,etc.  there's simply no "exec" object in there...

also see:
http://python.sourceforge.net/peps/pep-0233.html

</F>







More information about the Python-list mailing list