Duncan Booth <[EMAIL PROTECTED]> wrote:
>
>Dave Hansen wrote:
>
>> Stealing from the old C chestnut:
>> 
>> s="s=%c%s%c;print s%%(34,s,34)";print s%(34,s,34)
>
>Or a bit shorter:
>
>s='s=%s;print s%%`s`';print s%`s`

It was pointed out to me that the shortest Python program which produces
itself on stdout is:
-- 
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to