On Tue, Jan 27, 2009 at 9:34 AM, Christian Heimes <li...@cheimes.de> wrote:
> 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.

Indeed. Although it would happen to work in Python 3.0, as exec()
became a function once again.

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to