lambda

Antoon Pardon apardon at forel.vub.ac.be
Mon Jan 17 10:20:01 EST 2005


Op 2005-01-17, John Lenton schreef <john at grulic.org.ar>:
>
>
> --vni90+aGYgRvsTuO
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Mon, Jan 17, 2005 at 11:41:20AM +0000, Antoon Pardon wrote:
>> Op 2005-01-17, Steve Holden schreef <steve at holdenweb.com>:
>> > Antoon Pardon wrote:
>> > [...]
>> >>>"A foolish consistency is the hobgoblin of little minds". Rules are ma=
> de=20
>> >>>to be broken.
>> >>=20
>> >>=20
>> >> Like only use immutables as dictionary keys.
>> >>=20
>> > Fair enough, but don;t go advising newbies to do this.
>>=20
>> How about something like this.
>>=20
>> 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.
>
> knowledgeable and experienced users know when to ignore the rules.

Then why seems there to be so few acknowledgement that these rules
may indeed be broken by users. My experience is that anyone who suggests
so runs the risk of being branded a (python) heretic.

-- 
Antoon Pardon



More information about the Python-list mailing list