Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'warnings': 0.05; 'subject:when': 0.07; 'python': 0.08; 'bug,': 0.09; 'deliberately': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'not?': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'programmer': 0.10; 'am,': 0.12; '16,': 0.15; '"i\'m': 0.16; 'harsh.': 0.16; 'highlighting': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'semanchuk': 0.16; 'subject:builtin': 0.16; 'such.': 0.16; 'wrote:': 0.16; 'language': 0.17; '>>>': 0.18; 'to:name:python- list': 0.18; '(like': 0.21; 'sound': 0.21; 'header:In-Reply-To:1': 0.22; 'variable': 0.24; 'there.': 0.24; 'aug': 0.24; 'code': 0.25; 'fine': 0.26; "i'm": 0.27; 'problem': 0.28; 'not.': 0.30; "skip:' 10": 0.30; 'subject:?': 0.31; 'changes': 0.31; 'changing': 0.31; 'cases': 0.32; 'word.': 0.32; 'this.': 0.32; 'yet': 0.32; "what's": 0.33; 'to:addr:python-list': 0.33; 'regardless': 0.34; 'header:User-Agent:1': 0.34; 'things': 0.34; 'all.': 0.34; 'advocate': 0.34; 'unless': 0.36; 'file': 0.36; 'skip:" 10': 0.36; 'opposed': 0.37; 'using': 0.37; 'something': 0.37; 'could': 0.38; 'think': 0.38; 'strong': 0.38; 'should': 0.38; 'subject:: ': 0.39; "there's": 0.39; 'meaning': 0.39; 'to:addr:python.org': 0.39; 'case': 0.39; "i'd": 0.40; 'might': 0.40; "it's": 0.40; 'where': 0.40; 'received:websitewelcome.com': 0.64; 'sincerely': 0.64; 'believe': 0.65; 'received:184': 0.67; '"yes,': 0.84; '11:41': 0.84; 'message?': 0.84; 'received:gateway14.websitewelcome.com': 0.84; 'serious.': 0.84; 'alone.': 0.93; 'further,': 0.93 Date: Tue, 16 Aug 2011 09:19:58 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: python-list Subject: Re: Why no warnings when re-assigning builtin names? References: <4e49c89a$0$30001$c3e8da3$5496439d@news.astraweb.com> <4e49fcd7$0$29974$c3e8da3$5496439d@news.astraweb.com> <2A3EB048-1F10-46E8-973F-9BBD303E7B9F@semanchuk.com> <4E4A8F94.50706@stoneleaf.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:3838 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313510619 news.xs4all.nl 23848 [2001:888:2000:d::a6]:48449 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11572 Philip Semanchuk wrote: > On Aug 16, 2011, at 11:41 AM, Ethan Furman wrote: >> Philip Semanchuk wrote: >>> If we are to eschew warnings in >>> cases where they might be highlighting something harmless, then we would >>> have no warnings at all. >> >> Sounds good to me. ;) Keep such things in the IDE's, and then those >> who desire such behavior can have it there. Do not clutter Python with >> such. > > You wink, yet you sound serious. The smiley is an attempt to not sound harsh. > What's with the mixed message? Do you honestly advocate removing all > warnings from Python, or not? I sincerely would like to know what you think. I think warnings should be reserved for language changes and such (like DeprecationWarning, RuntimeWarning, and FutureWarning), not for possible programmer mistakes. >> What makes you think it's unintentional? file makes a good variable name... > > "Unintentional" as in, "I'm using file as a variable name because it's handy" > as opposed to intentional as in "Yes, I am deliberately changing the meaning > of this builtin". That's not what 'unintentional' means. Further, there's no way to tell whether it was or was not from the code alone. Unless it caused a bug, in which case I'd be willing to call it unintentional. ;) >> I don't see that as a problem that Python needs to solve. > > "need" is a strong word. Python will be fine regardless of whether this changes > or not. I believe Python could be improved; that's all I'm arguing. Python can be improved -- I don't see 'hand-holding' as an improvement. IDEs and lints can do this. ~Ethan~