cafebabe python macosx easter egg?
Chris Angelico
rosuav at gmail.com
Mon Feb 11 01:30:15 EST 2013
On Mon, Feb 11, 2013 at 5:10 PM, Rodrick Brown <rodrick.brown at gmail.com> wrote:
> $ hexdump -n4 -C $(which python) | awk '{print $2 $3 $4 $5 }'
I believe that's used as a file signature. All you're doing is looking
at the first four bytes of the file; 0xCAFEBABE is used as a signature
by Java class files, and some others. You can probably find the same
signature in other programs on your system.
ChrisA
More information about the Python-list
mailing list