Exec woes

Christian Heimes lists at cheimes.de
Tue Jan 27 18:34:41 CET 2009

Hendrik van Rooyen schrieb:
> It starts with the conspiracy of silence at the interactive prompt:
> Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
> IDLE 1.1.3      ==== No Subprocess ====
>>>> help(exec)
> SyntaxError: invalid syntax
> Its the same under Linux SuSe, Python 2.5.1.
> I think this is a BUG.

No, it's the way exec is defined. exec is not a function, it's a
statement. "help(exec)" raises a syntax error like "help(if)" or
"help(while)" would raise a syntax error, too.


More information about the Python-list mailing list