[Patches] [ python-Patches-541924 ] this.py too verbose

noreply@sourceforge.net noreply@sourceforge.net
Wed, 10 Apr 2002 14:31:29 -0700


Patches item #541924, was opened at 2002-04-10 05:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=541924&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Duncan Booth (duncanb)
>Assigned to: Tim Peters (tim_one)
Summary: this.py too verbose

Initial Comment:
The 'Easter Egg' file this.py might be regarded as 
something of an advert for Python, but its 
implementation is excessively verbose as it rolls its 
own rot13 decoding code when Python already has 
perfectly usable rot13 coding built in.

The attached context diff replaces the 5 lines 
currently used to decode the Zen string with a single 
line:
  print s.decode('rot13')


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2002-04-10 17:31

Message:
Logged In: YES 
user_id=31435

Sorry, Guido deliberately refused to use rot13.  He wants 
it to be obscure.  I told him that I instantly recognized 
the by-hand implementation of rot13, but had no idea 
what .decode('rot13') might do.  He wasn't swayed <wink>.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-10 14:11

Message:
Logged In: YES 
user_id=21627

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=541924&group_id=5470