Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'assignment': 0.07; 'definition,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'denotes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'least': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'external': 0.29; 'second,': 0.31; 'class': 0.32; 'cases': 0.33; 'but': 0.35; 'being': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'ian': 0.60; 'received:173': 0.61; 'times': 0.62; 'name': 0.63; 'occur': 0.65; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: unicode as valid naming symbols Date: Mon, 31 Mar 2014 16:12:08 -0400 References: <5331D902.3030902@gmail.com> <53321819$0$29994$c3e8da3$5496439d@news.astraweb.com> <53393BA4.2080305@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396296746 news.xs4all.nl 2911 [2001:888:2000:d::a6]:35526 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69443 On 3/31/2014 1:40 PM, Ian Kelly wrote: > Second, at least in the case of decorators, while I don't dispute that > they can harm readability, I think that in the majority of cases they > actually help it. That's because the @ syntax placed before a > function or class clearly denotes that the construct is being > decorated by something. The alternative to the syntax is to place an > assignment like "f = decorate(f)" *after* the definition, where it is > much less prominent. Plus, it means writing and reading the name 3 times instead of 1. This is not much of an issue for 'f', but it is for names like 'modify_x07_with_qz46pt'. Names like this occur when interfacing to external systems that dictate the names needed (as when interfacing Python to Objective-C on Macs). -- Terry Jan Reedy