Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'gui': 0.11; 'library': 0.15; 'both.': 0.16; 'clashes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'world!")': 0.16; 'wrote:': 0.17; 'url:com)': 0.22; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'subject:please': 0.27; 'thoughts': 0.27; 'developing': 0.28; 'header:X-Complaints- To:1': 0.28; 'name?': 0.29; 'this.': 0.29; "i'm": 0.29; 'function': 0.30; 'could': 0.32; 'automation': 0.33; 'function.': 0.33; 'picking': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'built-in': 0.35; 'received:org': 0.36; 'michael': 0.36; 'but': 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'release': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'between': 0.63; 'here': 0.65; 'difficulty': 0.65; 'press': 0.71; 'distinguish': 0.84; 'received:pacbell.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: emile Subject: Re: 10 sec poll - please reply! Date: Tue, 20 Nov 2012 08:21:20 -0800 References: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-69-226-129-65.dsl.pltn13.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 In-Reply-To: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353428498 news.xs4all.nl 6843 [2001:888:2000:d::a6]:37667 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33633 On 11/20/2012 04:18 AM, Michael Herrmann wrote: > Hi, > > I'm developing a GUI Automation library (http://www.getautoma.com) and am having difficulty picking a name for the function that simulates key strokes. I currently have it as 'type' but that clashes with the built-in function. Example uses of 'type': > > type(ENTER) > > type("Hello World!") > > type(CTRL + 'a') > > What, in your view, would be the most intuitive alternative name? > > Here are my thoughts so far: I could call it 'press' I have several tools that distinguish between press and release for this. You may want to consider having both. Emile