[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Curiosity stirkes me on 'import this'.

Daniel Fetchinson

3/8/2010 10:53:00 AM

> I took a look at the 'this' module to see where the file is stored. This is
> probably old news to some people, but was new to me.
>
> print this.s
> Gur Mra bs Clguba, ol Gvz Crgref
>
> Ornhgvshy vf orggre guna htyl.
> Rkcyvpvg vf orggre guna vzcyvpvg.
> Fvzcyr vf orggre guna pbzcyrk.
> Pbzcyrk vf orggre guna pbzcyvpngrq.
> Syng vf orggre guna arfgrq.
> Fcnefr vf orggre guna qrafr.
> Ernqnovyvgl pbhagf.
> Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
> Nygubhtu cenpgvpnyvgl orngf chevgl.
> Reebef fubhyq arire cnff fvyragyl.
> Hayrff rkcyvpvgyl fvyraprq.
> Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff.
> Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg.
> Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu.
> Abj vf orggre guna arire.
> Nygubhtu arire vf bsgra orggre guna *evtug* abj.
> Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn.
> Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
> Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!
>
> And some other attributes in 'this' module as well, that decodes the string.
> I'm curious. Was this encoded purely for fun?

Yes.

Cheers,
Daniel




--
Psss, psss, put it down! - http://www.cafepress.com...
1 Answer

Ben Finney

3/8/2010 11:34:00 AM

0

Daniel Fetchinson <fetchinson@googlemail.com> writes:

> > I'm curious. Was this encoded purely for fun?
>
> Yes.

For some more fun, try measuring the â??thisâ?? module source code against
the principles in the Zen.

--
\ â??Leave nothing to chance. Overlook nothing. Combine |
`\ contradictory observations. Allow yourself enough time.� |
_o__) â??Hippocrates |
Ben Finney