How to create a script that list itself ?

Mike Meyer mwm at
Thu Jan 12 01:43:10 EST 2006

Tim Roberts <timr at> writes:
> It was pointed out to me that the shortest Python program which produces
> itself on stdout is:
> -- 

Which, oddly enough, is also the shortest shell program that produces
itself on stdout.

Mike Meyer <mwm at>
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list