Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:209.85.223': 0.03; 'splitting': 0.09; 'cases': 0.15; "'s')": 0.16; 'fine.': 0.16; 'gpg': 0.16; 'skip:s 130': 0.16; 'world!")': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'shell': 0.18; 'are:': 0.20; 'all,': 0.21; 'import': 0.21; 'fine,': 0.22; 'split': 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'subject:please': 0.27; 'message- id:@mail.gmail.com': 0.27; 'fri,': 0.30; 'getting': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'pm,': 0.35; 'too.': 0.35; 'received:209.85': 0.35; 'michael': 0.36; 'but': 0.36; 'should': 0.36; 'bad': 0.37; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'first': 0.61; 'kind': 0.61; 'skip:n 10': 0.63; 'other.': 0.64; 'dear': 0.66; 'it\xe2\x80\x99s': 0.84; 'don\xe2\x80\x99t': 0.91; 'url:tk': 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:to :content-type:content-transfer-encoding; bh=cG3xffQgqH9zsmYFroBoaCOqqXI5tHl8oNZZnBQDmLY=; b=UcEvGmxSF9DJvD7SdBD4R427SQKu2tW/I7+SBP/qHQWqJ+BDhFv0JkBCIMYEsIfxAc O9Jf+whWwm7itw8unWEgeoB2c5txYD7dRyHnCoJNAc5rsSRjdkBlRMjP9AmrSugpzvA+ TVJbhijfUD2aUmMbB8cv4gB1i0+6yXbvKeVTx9BsCggizJQ7HeNw+/RrKFS0TFeJ1QY3 YYBDCPHUwF9M9lVw7kuwHL3637lDM4GB86nXjeOJoY23omzuweBwrYP2ZlgG4JZps95f pFMnis0ct0PKqhy6WZ4cYFwFGA5Prxh719AhQPoSe+lcO+nDMgFpkiUcl0tD5dYMn9/5 HxaA== MIME-Version: 1.0 In-Reply-To: References: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> <818c157c-1395-441d-ad99-955a31b0d523@googlegroups.com> <780646bd-4caf-4080-b549-cf30a6df0fdf@googlegroups.com> Date: Fri, 23 Nov 2012 17:42:59 +0100 Subject: Re: 10 sec poll - please reply! From: Kwpolska To: python-list@python.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353688988 news.xs4all.nl 6960 [2001:888:2000:d::a6]:33684 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33852 On Fri, Nov 23, 2012 at 2:42 PM, Michael Herrmann wrote: > Dear all, > > the emails are getting kind of long so to ask you briefly: What do you th= ink of splitting `type` into two functions `press` and `enter`? Their use c= ases are: > press(CTRL + 'a') > press(ENTER) > press(ALT + 'f', 's') > enter("Hello World!") > enter("test.txt", into=3D"File name") > > Thanks, > Michael First of, please don=E2=80=99t top-post. Second of, the type=E2=80=94enter= split a bad idea. It would require me to think whether I should use one or the other. type() is perfectly fine, because Automa is never going to be used as from automa import *. And if it is, it=E2=80=99s in your shell = for non-Pythonistas. And also, my general thoughts: type() is just fine. Unless you want to call it simulate_pressing_keys_on_the_keyboard_without_getting_a_mechani= cal_arm_out_of_the_screen_and_pressing_the_keys_with_it(), but then you will need to create simulate_using_the_mouse_without_getting_a_mechanical_arm_out_of_the_screen= _and_moving_the_mouse_or_pressing_its_buttons_with_it(), too. -- Kwpolska stop html mail | always bottom-post www.asciiribbon.org | www.netmeister.org/news/learn2quote.html GPG KEY: 5EAAEA16