Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38646
| References | <CABRP1o9H4J7GUJ5QGAGOYbOdhcfr5Q3ZKzknJg2pfJHBsyrU7w@mail.gmail.com> |
|---|---|
| Date | 2013-02-11 17:30 +1100 |
| Subject | Re: cafebabe python macosx easter egg? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1625.1360564218.2939.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: cafebabe python macosx easter egg? Chris Angelico <rosuav@gmail.com> - 2013-02-11 17:30 +1100
csiph-web