Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'ignored': 0.07; 'none,': 0.07; 'python3': 0.07; 'builtin': 0.09; 'happens.': 0.09; 'lawrence': 0.09; 'override': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'that).': 0.09; 'python': 0.11; 'language.': 0.14; 'builtins.': 0.16; 'namespace,': 0.16; 'overridden': 0.16; 'overriding': 0.16; 'point!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'pointed': 0.19; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'convenient': 0.24; 'developers': 0.25; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'you?': 0.31; '(unless': 0.31; '>>>>': 0.31; 'gary': 0.31; 'url:python': 0.33; 'skip:_ 10': 0.34; "can't": 0.35; '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; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'according': 0.40; 'url:3': 0.61; "you've": 0.63; 'our': 0.64; 'charset:windows-1252': 0.65; 'within': 0.65; 'believe': 0.68; 'bothered': 0.68; 'pardon': 0.84; 'url:reference': 0.84; 'received:89': 0.85; 'here."': 0.91; 'besides,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: anomaly Date: Mon, 11 May 2015 12:47:24 +0100 References: <554F9525.5040101@digipen.edu> <5550815E.5080600@rece.vub.ac.be> <55509500.8020102@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-169-199.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <55509500.8020102@rece.vub.ac.be> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431344854 news.xs4all.nl 2851 [2001:888:2000:d::a6]:57246 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90364 On 11/05/2015 12:39, Antoon Pardon wrote: > 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. > If you say so but I disagree and can't be bothered to say anything else. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence