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


Groups > comp.lang.python > #38646

Re: cafebabe python macosx easter egg?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.050
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'python)': 0.05; 'subject:python': 0.11; 'awk': 0.16; 'file;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'bytes': 0.17; 'feb': 0.19; 'java': 0.21; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'probably': 0.29; 'class': 0.29; 'file': 0.32; '11,': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'doing': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'others.': 0.36; 'signature': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'first': 0.61; 'brown': 0.65; 'believe': 0.69; '2013': 0.84; 'signature.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=dHFdsQ4BENjEGM3Hol9z4mjCJy0rQhcwxEXMZUkgudE=; b=fuJ0mPqlU8rG3C4lL7ZwIr6kuoIMZtksqiTVg0xVWVBKGeOrqv2Dw1wMNBG+GMpUNp cEqMgZaqU14qMV15XJERdRJjO+3zrcA7oTWiuxXdHgnmQzGG/oIibLifeU0rUj1kynSa p9DTgXprw6tCKLOsDyO39gKHXB9EfBBoHCYymMYNxTq1dWugNZ1EDUGTp8+0QQhnVs95 //IeFOZ7SXzVsUMvCpEecqj9Cr4zb6VDKmWPeq2z/hyW6SbpUizjBrHuMLxGiP+6zLJv 1hUFIXP93jjqCsCWXksBTA+PKJsFQE+laBWbpj1T06tCBrhjrJKIaKHm4RNCNyUNMdqu jryg==
MIME-Version 1.0
X-Received by 10.52.67.164 with SMTP id o4mr16653vdt.42.1360564215684; Sun, 10 Feb 2013 22:30:15 -0800 (PST)
In-Reply-To <CABRP1o9H4J7GUJ5QGAGOYbOdhcfr5Q3ZKzknJg2pfJHBsyrU7w@mail.gmail.com>
References <CABRP1o9H4J7GUJ5QGAGOYbOdhcfr5Q3ZKzknJg2pfJHBsyrU7w@mail.gmail.com>
Date Mon, 11 Feb 2013 17:30:15 +1100
Subject Re: cafebabe python macosx easter egg?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1625.1360564218.2939.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360564218 news.xs4all.nl 6849 [2001:888:2000:d::a6]:39344
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38646

Show key headers only | View raw


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


Thread

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

csiph-web