Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'static': 0.04; 'classes,': 0.05; 'subject:Python': 0.06; 'attribute': 0.07; 'attributes': 0.09; 'ide': 0.09; 'occasionally': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'def': 0.12; 'jan': 0.12; 'function?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.18; 'looked': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'right.': 0.26; 'pass': 0.26; 'least': 0.26; 'gets': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'code': 0.31; 'but': 0.35; 'idle': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'ian': 0.60; 'complete': 0.62; 'frustrated': 0.68; 'surprise': 0.74; 'completion': 0.78; 'received:fios.verizon.net': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Python Iterables struggling using map() built-in Date: Wed, 10 Dec 2014 23:17:40 -0500 References: <004e01d01173$e1641c10$a42c5430$@gmail.com> <5484e3d8$0$13013$c3e8da3$5496439d@news.astraweb.com> <54866372$0$12991$c3e8da3$5496439d@news.astraweb.com> <54878f8a$0$13010$c3e8da3$5496439d@news.astraweb.com> <54881159$0$2817$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418271490 news.xs4all.nl 2908 [2001:888:2000:d::a6]:40091 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82336 On 12/10/2014 3:32 PM, Ian Kelly wrote: > So Idle gets it right. At least for static methods of classes, which > isn't very surprising. Does it complete a function attribute of a > function? >>> def f(): pass >>> f.a='attr' >>> f. as possible completion. > Having used Komodo IDE for a number of years and been occasionally > frustrated by its code completion, it would not surprise me in the least > if it failed to pull attributes of functions into its completion database. I do not think Idle has a static database. But I have not looked at the completion code yet to see exactly how it works (and how it might be improved). -- Terry Jan Reedy