Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:Python': 0.06; '21,': 0.07; 'cc:addr:python-list': 0.11; 'wrote': 0.14; 'foot': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'generators.': 0.16; 'macros': 0.16; 'readability': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'feb': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'example.': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'nearly': 0.26; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; "d'aprano": 0.31; 'extensively': 0.31; 'piece': 0.31; 'shoot': 0.31; 'steven': 0.31; 'linux': 0.33; 'ago': 0.33; 'fri,': 0.33; 'programmers': 0.33; 'subject:the': 0.34; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; '+0200,': 0.36; 'doing': 0.36; "didn't": 0.36; 'application': 0.37; 'pm,': 0.38; 'does': 0.39; 'how': 0.40; 'remove': 0.60; 'wonderful': 0.60; 'new': 0.61; 'hear': 0.63; 'forward': 0.65; 'day': 0.76; 'yourself': 0.78; 'language!': 0.84; 'sarcasm,': 0.84; 'system),': 0.84; 'to:none': 0.92; 'joy,': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=HTerVubex+CfugAayJALwh/Yw1WFTcrwmUDGdN/xAJM=; b=hK9CAWg+C9xwozsQuD9NNX2W6yZrgmD7VaKbRroUZHL84LbTXpMYzWjtYY8bHs31AR i86ILoJYBf5/WAa4QD+y6BZx/hOmsEmzjL6wnloFWXRO3W/cYv0k4MEVEsdcNcguiZEh d6oUrG4jG7ATWWrrwXdEmkgRSfMcpkAOx9Idkf2wba3EmR2EY1fM0ApRjR0By0vkzuqU P/dIGMZ3d3mS445O9LtSa8S8csD5VLNC5SLO0JA/lhpS2VBiYjMLahPJdnp6gA0bqcJ9 g3SebTuR0KU9GR9Y6oDakEqBN2l1HupX3MMn77uJ77LofOxVdm2OCorNoXQ1YZG6yJO4 L/+w== MIME-Version: 1.0 X-Received: by 10.66.129.133 with SMTP id nw5mr7603593pab.98.1392970878158; Fri, 21 Feb 2014 00:21:18 -0800 (PST) In-Reply-To: <87y515dj6z.fsf@elektro.pacujo.net> References: <87mwhm6q3e.fsf@elektro.pacujo.net> <5306f95d$0$29985$c3e8da3$5496439d@news.astraweb.com> <87y515dj6z.fsf@elektro.pacujo.net> Date: Fri, 21 Feb 2014 19:21:18 +1100 Subject: Re: Commonly-used names in the Python standard library From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392970887 news.xs4all.nl 2847 [2001:888:2000:d::a6]:54171 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66812 On Fri, Feb 21, 2014 at 6:21 PM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote: >>> I'm looking forward to the day when every application can add its own >>> keywords as is customary in Lisp. >> >> And what a wonderful day that will be! Reading any piece of code you >> didn't write yourself -- or wrote a long time ago -- will be an >> adventure! Every script will have it's own exciting new set of >> keywords doing who knows what, which makes every script nearly it's >> own language! Oh joy, I cannot wait! >> >> That's sarcasm, by the way. > > I don't hear Lispers or C programmers complaining. Yes, you can shoot > yourself in the foot with macro trickery, but macros can greatly enhance > code readability and remove the need for code generators. That's why > they are used extensively in Linux kernel code and GOOPS (Guile's object > system), for example. How does C let you create new keywords? ChrisA