Re: lambda
From: Steve Holden (steve_at_holdenweb.com)
Date: 01/17/05
- Next message: Peter Maas: "Re: (objects as) mutable dictionary keys"
- Previous message: Steve Holden: "Re: Writing huge Sets() to disk"
- In reply to: Antoon Pardon: "Re: lambda"
- Next in thread: Antoon Pardon: "Re: lambda"
- Reply: Antoon Pardon: "Re: lambda"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 17 Jan 2005 07:21:16 -0500
Antoon Pardon wrote:
> Op 2005-01-17, Steve Holden schreef <steve@holdenweb.com>:
>
>>Antoon Pardon wrote:
>>[...]
>>
>>>>"A foolish consistency is the hobgoblin of little minds". Rules are made
>>>>to be broken.
>>>
>>>
>>>Like only use immutables as dictionary keys.
>>>
>>
>>Fair enough, but don;t go advising newbies to do this.
>
>
> How about something like this.
>
> Because of the extra precautions one has to take when
> using mutables as hash keys, we advise newbies
> to stick with immutable keys until they have gathered
> enough knowledge and experience to adequatly weight
> the pro and cons of a mutable key solution against
> an immutable key solution.
>
There you go with the minutiae again. How about:
"Don't use mutables as hash keys"?
regards
Steve
-- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119
- Next message: Peter Maas: "Re: (objects as) mutable dictionary keys"
- Previous message: Steve Holden: "Re: Writing huge Sets() to disk"
- In reply to: Antoon Pardon: "Re: lambda"
- Next in thread: Antoon Pardon: "Re: lambda"
- Reply: Antoon Pardon: "Re: lambda"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|