cancrizan
After a reread of Douglas Hofstadter’s “Crab Canon” I felt the (not entirely inexplicable) urge to revisit this palindromic quine.
Here is another Pythonic palindrome, with lines rather than characters as units. And in lieu of mere self-replication, it actually performs the almost-useful task of determining whether its input is palindromic.
import sys r, s = "%s is", sys.argv[1] sys.stdout.write(r % s) r = "%s a palindrome.\n" s = ["n't",""][int(s==s[::-1])] r = "%s a palindrome.\n" sys.stdout.write(r % s) r, s = "%s is", sys.argv[1] import sysComments (0)