True/False

Andrew Clover and-google at doxdesk.com
Thu Apr 24 09:17:30 EDT 2003


Anthony Baxter <anthony at interlink.com.au> wrote:

> Wasn't there also some talk of making None, True and False keywords (for
> possible performance gains)?

In this case I guess we're looking at something like:

  try:
    True
  except NameError:
    exec 'False, True= 0, 1'
    def bool(c):
      if c:
        return True
      return False

Any objections?

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/




More information about the Python-list mailing list