Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90362

Re: anomaly

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <antoon.pardon@rece.vub.ac.be>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:134': 0.05; 'ignored': 0.07; 'none,': 0.07; 'python3': 0.07; 'builtin': 0.09; 'happens.': 0.09; 'override': 0.09; 'that).': 0.09; 'python': 0.11; 'builtins.': 0.16; 'namespace,': 0.16; 'overridden': 0.16; 'overriding': 0.16; 'point!': 0.16; 'wrote:': 0.18; 'pointed': 0.19; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'convenient': 0.24; 'developers': 0.25; 'header:In-Reply-To:1': 0.27; 'you?': 0.31; '(unless': 0.31; 'gary': 0.31; 'url:python': 0.33; 'skip:_ 10': 0.34; 'common': 0.35; 'but': 0.35; 'there': 0.35; 'false': 0.36; 'keyword': 0.36; "didn't": 0.36; 'url:org': 0.36; 'should': 0.36; 'turn': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'according': 0.40; 'url:3': 0.61; "you've": 0.63; 'within': 0.65; 'believe': 0.68; 'pardon': 0.84; 'url:reference': 0.84; 'here."': 0.91; 'besides,': 0.93
X-IronPort-Anti-Spam-Filtered true
X-IronPort-Anti-Spam-Result AqkEAKeUUFWGuA9G/2dsb2JhbABcg2Negx7DM4YFAoF3AQEBAQEBhSwBAQQjVRELGAICBRYLAgIJAwIBAgFFEwgCiCgNs2SOZoRKAQEBBwEBAQEaBIEhihiFDBaCUoFFBZZbhkWBJIYmiziDVSODeW0BgkUBAQE
Date Mon, 11 May 2015 13:39:44 +0200
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.5.0
MIME-Version 1.0
To python-list@python.org
Subject Re: anomaly
References <CAMjeLr--RfnfgWc1hdOcHiEBpq3QwC7SZk-m14wM65JtpbgMLQ@mail.gmail.com> <mailman.318.1431276220.12865.python-list@python.org> <c681b3ce-2727-4aa9-ad8a-369c662395a3@googlegroups.com> <554F9525.5040101@digipen.edu> <5550815E.5080600@rece.vub.ac.be> <miq0vh$tdg$1@ger.gmane.org>
In-Reply-To <miq0vh$tdg$1@ger.gmane.org>
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.352.1431344390.12865.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1431344390 news.xs4all.nl 2913 [2001:888:2000:d::a6]:54528
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:90362

Show key headers only | View raw


Op 11-05-15 om 12:40 schreef Mark Lawrence:
> On 11/05/2015 11:15, Antoon Pardon wrote:
>> Op 10-05-15 om 19:28 schreef Gary Herron:
>>
>>> Common Python thought::  "We're all adults here."    If you want to
>>> override a builtin within your own namespace, who are we to stop you?
>>> Besides, it's still available as __builtins__.int  (unless you've also
>>> overridden that).
>>
>> This is a common python myth. That is selectively used when
>> convenient and
>> ignored when that is convenient.
>>
>> Try overriding None, True or False in python3 and see what happens.
>>
>
> According to
> https://docs.python.org/3/reference/lexical_analysis.html#keywords
> None, True and False are all keywords in Python 3, int isn't as I
> believe has already been pointed out.
>
Which is exactly the point! They were turned into keywords because the
developers didn't want to allow them being overridden. There is no
a priori reason why we should turn "True" into a keyword and allow
"int" in the builtins.

We are only allowed to be adults, for as far as the developers let us.
They allow us to be adults with regards to "int" but they don't allow
us to be adults with regards to "True".

Defending "int" being overridable by declating "We're all adults" is
being selective.

-- 
Antoon Pardon

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: anomaly Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-10 10:42 -0600
  Re: anomaly Rustom Mody <rustompmody@gmail.com> - 2015-05-10 09:48 -0700
    Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-10 18:21 +0100
    Re: anomaly Gary Herron <gherron@digipen.edu> - 2015-05-10 10:28 -0700
      Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 13:19 +1000
    Re: anomaly boB Stepp <robertvstepp@gmail.com> - 2015-05-10 14:12 -0500
      Re: anomaly Mel Wilson <mwilson@the-wire.com> - 2015-05-11 13:37 +0000
        Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 02:35 +1000
          Re: anomaly Mel Wilson <mwilson@the-wire.com> - 2015-05-11 20:48 +0000
            Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 12:18 +1000
    Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 08:40 +0100
    Re: anomaly Chris Angelico <rosuav@gmail.com> - 2015-05-11 17:44 +1000
    Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-11 12:15 +0200
      Re: anomaly John Ladasky <john_ladasky@sbcglobal.net> - 2015-05-12 17:47 -0700
        Re: anomaly Rustom Mody <rustompmody@gmail.com> - 2015-05-12 17:56 -0700
          Re: anomaly Paul Rubin <no.email@nospam.invalid> - 2015-05-12 19:16 -0700
            Re: anomaly Rustom Mody <rustompmody@gmail.com> - 2015-05-12 19:31 -0700
    Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 11:40 +0100
    Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-11 13:39 +0200
      Re: anomaly Marko Rauhamaa <marko@pacujo.net> - 2015-05-11 14:58 +0300
        Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-11 15:27 +0200
          Re: anomaly Marko Rauhamaa <marko@pacujo.net> - 2015-05-11 17:03 +0300
            Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 07:56 -0700
              Re: anomaly Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-05-11 20:32 -0400
            Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-12 13:34 +0200
          Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 01:44 +1000
            Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 09:17 -0700
            Re: anomaly Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-05-11 20:33 -0400
            Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-12 14:31 +0200
      Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 22:34 +1000
        Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-11 15:38 +0200
        Re: anomaly Chris Angelico <rosuav@gmail.com> - 2015-05-12 00:13 +1000
        Re: anomaly Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-05-12 17:37 +1200
        Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-12 13:55 +0200
          Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 23:56 +1000
            Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-12 08:34 -0700
              Re: anomaly Chris Angelico <rosuav@gmail.com> - 2015-05-13 01:43 +1000
                Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-12 20:39 -0700
              Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-12 17:19 +0100
                Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-13 08:19 -0700
              Re: anomaly Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-12 11:22 -0500
                Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-13 13:58 +1000
              Re: anomaly Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-12 12:07 -0600
            Re: anomaly Terry Reedy <tjreedy@udel.edu> - 2015-05-12 16:23 -0400
            Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-13 09:07 +0200
          Re: anomaly Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-05-13 12:19 +1200
            Re: anomaly Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-05-13 09:23 +0200
        Re: anomaly Gary Herron <gherron@digipen.edu> - 2015-05-12 09:07 -0700
    Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 12:47 +0100
    Re: anomaly boB Stepp <robertvstepp@gmail.com> - 2015-05-11 07:43 -0500
    Re: anomaly boB Stepp <robertvstepp@gmail.com> - 2015-05-11 07:26 -0500
  Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-10 17:48 -0700
    Re: anomaly Gary Herron <gherron@digipen.edu> - 2015-05-10 18:07 -0700
      Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-10 18:18 -0700
        Re: anomaly Chris Angelico <rosuav@gmail.com> - 2015-05-11 11:53 +1000
          Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-10 19:09 -0700
          Re: anomaly Rustom Mody <rustompmody@gmail.com> - 2015-05-10 19:12 -0700
            Re: anomaly Chris Angelico <rosuav@gmail.com> - 2015-05-11 12:20 +1000
        Re: anomaly BartC <bc@freeuk.com> - 2015-05-11 12:55 +0100

csiph-web