GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Re: PEP 335: Overloadable Boolean Operators

[Python-Dev] Re: PEP 335: Overloadable Boolean Operators

Fredrik Lundh fredrik at pythonware.com
Mon Sep 13 22:47:40 CEST 2004

  • Previous message: [Python-Dev] Re: ANN: PEP 335: Overloadable Boolean Operators
  • Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Lib string.py, 1.73, 1.74
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Greg Ewing wrote:

> To permit short-circuiting, processing of the 'and' and 'or' operators
> is split into two phases.  Phase 1 occurs after evaluation of the first
> operand but before the second.  If the first operand defines the
> appropriate phase 1 method, it is called with the first operand as
> argument.  If that method can determine the result without needing the
> second operand, it returns the result, and further processing is
> skipped.

nice.

+1 from here (but only +0 on the method names).

</F> 




  • Previous message: [Python-Dev] Re: ANN: PEP 335: Overloadable Boolean Operators
  • Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Lib string.py, 1.73, 1.74
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.