[Tutor] Is it possible for a Python Program to send commands to the Python Interpreter?

Kent Johnson kent37 at tds.net
Sat Feb 20 03:23:46 CET 2010


On Fri, Feb 19, 2010 at 7:07 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Sat, 20 Feb 2010 06:33:04 am Kent Johnson wrote:
>
>> It sounds like you are looking for eval()
>>
>> (Standard warning - use eval() only on trusted data)
>
>
> This is the tutor list, aimed at beginners to Python, many of whom are
> also beginners to programming as well. Even experienced programmers
> often get security very, very, very badly wrong. Do you think that a
> glib eight-word one-line "standard warning" really is sufficient?

No, but it is all I had time for, I figured James would ask for
clarification or someone else would chime in :-)

Kent


More information about the Tutor mailing list