[Raymond Hettinger] > > I think it unwise to allow x to be any expression. Besides altering > > existing semantics, it leads to code redundancy and to a fragile > > construct (where the slightest alteration of any of the expressions > > triggers a silent reversion to O(n) behavior).
[Gerrit Holl] > What would happen if 'x' were to be an object whose class has a __eq__ > that is defined in an odd way, e.g. having side effects? Every molecule in your body would simultaneously implode at the speed of light. Raymond _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com