python coding contest

Steven D'Aprano steve at REMOVETHIScyber.com.au
Sun Dec 25 19:10:41 EST 2005


On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
>> I'm envisioning lots of convoluted one-liners which
>> are more suitable to a different P-language... :-)
> I feel that python is more beautiful and readable, even if you write
> short programs.
> 
>> How about """best compromize between shortness and readibility
>> plus elegance of design"""?
> I would love to choose those criteria for future events. But I'm not
> aware of any algorithm that is capable of creating a ranking upon them.


What is your algorithm for determining "shortest" program? Are you
counting tokens, lines or characters? Does whitespace count?


-- 
Steven.




More information about the Python-list mailing list