Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'indicating': 0.05; 'completeness': 0.07; 'correct.': 0.07; 'parameter': 0.07; 'received:155': 0.09; 'wrong,': 0.09; 'api,': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'keys.': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'world!")': 0.16; 'wrote:': 0.17; 'typing': 0.17; 'module': 0.19; 'to:name:python-list@python.org': 0.20; 'import': 0.21; 'keys': 0.22; 'somebody': 0.23; 'received:169.254': 0.24; 'header:In-Reply-To:1': 0.25; 'accuracy': 0.27; 'subject:please': 0.27; 'initial': 0.28; "d'aprano": 0.29; 'far,': 0.29; 'steven': 0.29; 'strings,': 0.29; 'received:169': 0.29; 'function': 0.30; 'header:Received:8': 0.30; 'sense': 0.31; "aren't": 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'nov': 0.35; 'doing': 0.35; 'except': 0.36; 'michael': 0.36; 'should': 0.36; 'too': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; '(for': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'called': 0.39; 'your': 0.60; 'further': 0.61; 'personally': 0.61; 'information,': 0.63; 'url:email': 0.63; 'our': 0.65; 'legal': 0.65; 'subject': 0.66; 'purchase': 0.67; 'believe': 0.69; 'sale': 0.76; 'received:169.254.8': 0.84; 'replies.': 0.84; 'target.': 0.84 X-DKIM: OpenDKIM Filter v2.1.3 sz4.jpmchase.com qAKL8dZJ010688 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1353445719; bh=PXUQhyREh5/GaIgUow7/zuckVn/VAtm9GKcns4q68Us=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=DH/P+5EXUS0nf+i9Ux+DQ8BI2MicOIhfVvO2C7N7DfMB75OHufG2E+1Szvb2BoOcM cIHeYmYB1dwBAfY8WoN1fWK5tzOdU7Iaxa8ThjgmCO1T74rfxJKbSScqzkriGb4gkj gSvYjufL6j86tlBc/wRDvDltYv41iwAgK3MO00kU= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: 10 sec poll - please reply! Thread-Topic: 10 sec poll - please reply! Thread-Index: AQHNxzsLIj4VOpW5hEeP8CxXgEz2bpfzNdoA Date: Tue, 20 Nov 2012 21:08:24 +0000 References: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> <7290a127-97e1-4032-98ae-6e602b87b74b@googlegroups.com> <50abadf3$0$29987$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <50abadf3$0$29987$c3e8da3$5496439d@news.astraweb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 1353447438 news.xs4all.nl 6941 [2001:888:2000:d::a6]:39014 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33666 Steven D'Aprano wrote:=0D=0A> =0D=0A> On Tue, 20 Nov 2012 07:18:42 -0800, M= ichael Herrmann wrote:=0D=0A> =0D=0A> > Thanks again for your further repli= es=2E So far, it's 4 votes for=0D=0A> > 'send_keys' and 1 vote for 'type'= =2E=0D=0A> >=0D=0A> > Regarding 'send_keys': To me personally it makes sens= e to send keys _to_=0D=0A> > something=2E However, in our API, send_keys wo= uld not be called on an=0D=0A> > object or with a parameter indicating the = target=2E It would just be=0D=0A> >=0D=0A> > send_keys(ENTER)=0D=0A> > send= _keys("Hello World!")=0D=0A> > send_keys(CTRL + 'a')=0D=0A> =0D=0A> =0D=0A>= "send_keys" is wrong, because you aren't sending keys=2E You're sending=0D= =0A> strings, except you aren't actually sending strings either, because=0D= =0A> "send" does not make sense without a target=2E You're automating the t= yping=0D=0A> of strings, including control characters=2E=0D=0A=0D=0Asimulat= e_keypress=0D=0Asimulate_key(s)_down=0D=0Asend_kb_press=0D=0Afake_typing=0D= =0Asend_char(s)=0D=0A=0D=0A> =0D=0A> I believe that your initial instinct f= or the name of this function was=0D=0A> correct=2E It automates typing, so = you should call it "type" or (for those=0D=0A> paranoid about shadowing the= built-in, "type_str"=2E=0D=0A> =0D=0A=0D=0AI can too easily see somebody d= oing from module import * =0D=0AOR from module import type=2E=0D=0A=0D=0A= =0D=0A~Ramit=0D=0A=0D=0A=0D=0A=0D=0AThis email is confidential and subject = to important disclaimers and=0D=0Aconditions including on offers for the pu= rchase or sale of=0D=0Asecurities, accuracy and completeness of information= , viruses,=0D=0Aconfidentiality, legal privilege, and legal entity disclaim= ers,=0D=0Aavailable at http://www=2Ejpmorgan=2Ecom/pages/disclosures/email= =2E