[Python-checkins] python/dist/src/Lib this.py,1.2,1.3

perky at users.sourceforge.net perky at users.sourceforge.net
Thu Feb 5 21:52:17 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11893

Modified Files:
	this.py 
Log Message:
Simple is better than complex.


Index: this.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/this.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** this.py	8 Feb 2002 20:41:34 -0000	1.2
--- this.py	6 Feb 2004 02:52:15 -0000	1.3
***************
*** 21,28 ****
  Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
  
! d = {}
! for c in (65, 97):
!     for i in range(26):
!         d[chr(i+c)] = chr((i+13) % 26 + c)
! 
! print "".join([d.get(c, c) for c in s])
--- 21,23 ----
  Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
  
! print s.decode('rot_13')




More information about the Python-checkins mailing list