[Python-3000-checkins] r45652 - in python/branches/p3yk

Fred L. Drake, Jr. fdrake at acm.org
Tue Apr 25 22:30:39 CEST 2006


On Tuesday 25 April 2006 16:19, Neil Schemenauer wrote:
 > Yes, I know what YAGNI means.  The example that immediately comes to
 > mind is ZODB and Durus.  They use 8-byte binary strings to represent
 > object IDs.  Memory efficiency is important.
 >
 > Another example would be using a SHA-1 hash as a key.  I don't
 > recall if I have written such code but message digests are so common
 > I don't think you can call YAGNI.

Yeah, we generally need both.  These are important use cases for immutable 
binary data.  It doesn't need a corresponding constructor in __builtin__ 
(IMO), but it's a common type to need.


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>


More information about the Python-3000-checkins mailing list