Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Oscar Benjamin Newsgroups: comp.lang.python Subject: Re: A mistake which almost went me mad Date: Thu, 3 Mar 2016 16:29:01 +0000 Lines: 18 Message-ID: References: <56d81044$0$19756$426a74cc@news.free.fr> <20160303054822.342fb513@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de kaL/fqiGJfIVPSoavnxNXgLZMHRSJRvVDOlZClJNUTSw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'installed.': 0.05; 'cc:addr:python-list': 0.09; 'subject:which': 0.09; 'to:addr:python.list': 0.09; 'to:addr:tim.thechases.com': 0.09; 'to:name:tim chase': 0.09; '2016': 0.16; 'cc:name:python list': 0.16; 'naming': 0.16; 'nick': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'somehow.': 0.16; 'wrote:': 0.16; 'language': 0.19; 'student': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'somewhere': 0.24; 'tim': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'script': 0.25; "i've": 0.25; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; 'chase': 0.29; 'implicitly': 0.29; "i'm": 0.30; 'creating': 0.30; 'fixed': 0.31; 'surprised': 0.33; 'received:google.com': 0.35; 'too': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'doing': 0.38; 'received:209': 0.38; 'names': 0.38; 'easy': 0.60; 'collection': 0.60; 'times': 0.63; 'march': 0.64; 'oscar': 0.84; 'mistake': 0.91; 'novice': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8kbNTcV4I/z7H3Qy88R9kGinvXUfnQX/YQf0FsOMUkY=; b=ozgHDYUegUCjB60HykZD4LSkU2l8pVEOxaQffJd1za3InJ7Tm4q4Lni4Rc7fX+U921 Uqk5qU3zA+xUUEaXHcs08mKYFQr8NhPlChrEtORnwv4wAiaSb2xLoHD2ctO+iSAOCT0i UD+UovN7uBbjl83hGnRNwz3hDuZdMSljfE/Va12KpgHzksssnzgk5r2O7GNvJmqP08Qj j5+Plc3ihMvDpBzEy1ysFkWXET0vI6HkChOAtUSHJ7xVghmC72O4zNZ06owVPbywQJ3b i+SCfni4jG+LXfmEySWhR2iyRmTzonP9WS2BsONFnSz+XlSc69beB2APKrlJUMxRwyZq yjSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8kbNTcV4I/z7H3Qy88R9kGinvXUfnQX/YQf0FsOMUkY=; b=ImayQ9tQ8jEH42K9W4Nl4VI004gYs7WLFiLFa4zFSTIoQQ7ts3FCXAMCyuruwTdi88 Oflg0A85Eq/TcqlzX0Dt5aAfSfuXL4VpKfpEyXqHS2gWsTuRLySJZcvd4sEedRse9SOE IED1MAsx+zeQKW0aaK1e8LZ7H+KkOCdofd6kDG1dDyXWXLoVBO8YITy9xLsGpinb+cF4 Otaai0OVC0UtmpVBne82nMl7fqaDMnDIu/zSfeCAuBll/8DwL2N4U73IV4Rp/pdOdkqF 4vdD8RLPMSBX4Pu/VaN95uj5fs3jYsUxami8gb/F23Eg4LQh4CqI8p6lILjRi9LQIHVq WCyQ== X-Gm-Message-State: AD7BkJJEXME5OQ2+7Z88nAtiFSi8GfE3zeyGj/PRA3JQ40QEVVgR8IobaFliJ2AypGBgMSr4ZQiYZqv0HuNiKw== X-Received: by 10.112.181.196 with SMTP id dy4mr1372562lbc.42.1457022561611; Thu, 03 Mar 2016 08:29:21 -0800 (PST) In-Reply-To: <20160303054822.342fb513@bigbox.christie.dr> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103977 On 3 March 2016 at 11:48, Tim Chase wrote: > On 2016-03-03 10:43, Nick Sarbicki wrote: >> The number of times I've had to correct a student for naming their >> script "turtle.py". >> >> And the number of times I've caught myself doing it... > > I'm surprised at the number of times I find myself creating an > "email.py" DESPITE KNOWING BETTER EVERY SINGLE TIME. This mistake is too easy to make and should be fixed in the language somehow. There's no way that a novice user can know which module names are implicitly "reserved" by being used somewhere in the stdlib or the collection of 3rd party modules that they may happen to have installed. -- Oscar