Mercurial > cpython-lru_cache-weakref
annotate Lib/this.py @ 28646:193b8aec00ce legacy-trunk
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
work. This includes some more code that used to be part of pgen in
the main parser; I'm okay with that. I'll see if the Windows build
needs work next.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Apr 2003 14:55:42 +0000 |
| parents | 17a56e1c6ff8 |
| children | 8ae88db7843c |
| rev | line source |
|---|---|
|
21889
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
1 s = """Gur Mra bs Clguba, ol Gvz Crgref |
| 21891 | 2 |
|
21889
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
3 Ornhgvshy vf orggre guna htyl. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
4 Rkcyvpvg vf orggre guna vzcyvpvg. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
5 Fvzcyr vf orggre guna pbzcyrk. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
6 Pbzcyrk vf orggre guna pbzcyvpngrq. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
7 Syng vf orggre guna arfgrq. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
8 Fcnefr vf orggre guna qrafr. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
9 Ernqnovyvgl pbhagf. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
10 Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
11 Nygubhtu cenpgvpnyvgl orngf chevgl. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
12 Reebef fubhyq arire cnff fvyragyl. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
13 Hayrff rkcyvpvgyl fvyraprq. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
14 Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
15 Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
16 Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
17 Abj vf orggre guna arire. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
18 Nygubhtu arire vf bsgra orggre guna *evtug* abj. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
19 Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
20 Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn. |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
21 Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!""" |
| 21891 | 22 |
|
21889
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
23 d = {} |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
24 for c in (65, 97): |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
25 for i in range(26): |
|
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
26 d[chr(i+c)] = chr((i+13) % 26 + c) |
| 21891 | 27 |
|
21889
19834cd101d9
Python 10 was a success, commemorate it\!
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
28 print "".join([d.get(c, c) for c in s]) |
