Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38646 > unrolled thread

Re: cafebabe python macosx easter egg?

Started byChris Angelico <rosuav@gmail.com>
First post2013-02-11 17:30 +1100
Last post2013-02-11 17:30 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: cafebabe python macosx easter egg? Chris Angelico <rosuav@gmail.com> - 2013-02-11 17:30 +1100

#38646 — Re: cafebabe python macosx easter egg?

FromChris Angelico <rosuav@gmail.com>
Date2013-02-11 17:30 +1100
SubjectRe: cafebabe python macosx easter egg?
Message-ID<mailman.1625.1360564218.2939.python-list@python.org>
On Mon, Feb 11, 2013 at 5:10 PM, Rodrick Brown <rodrick.brown@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web