Skip to content

gramkraxor/pyquine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python3, more like cat

When imported, pyquine prints the source of the main module.

There's the standard:

import quine

But pyquine supports any source file that manages to import it:

#!/usr/bin/env python3
"""This is my quine. It prints its own source."""

import quine

It's cheating, but that's the point. Because PyPI deserves a good quine variation of the "import X" meme.

xkcd #353: Python