Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'context': 0.07; 'explicit': 0.07; 'subject:design': 0.09; 'to:addr:comp.lang.python': 0.09; 'window.': 0.09; 'wrong,': 0.09; 'url:blog': 0.10; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'wrote': 0.14; 'posted': 0.15; '"with"': 0.16; "'a',": 0.16; 'aren\x92t': 0.16; 'pythonistas': 0.16; 'subject:API': 0.16; 'there!': 0.16; 'world!")': 0.16; 'wrote:': 0.18; 'platforms': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'header:User- Agent:1': 0.23; 'questions:': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; "we'd": 0.29; 'related': 0.29; 'comments': 0.31; '25,': 0.31; 'indentation': 0.31; 'though.': 0.31; 'this.': 0.32; 'probably': 0.32; 'monday,': 0.33; 'subject: (': 0.35; "can't": 0.35; 'tool': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'version': 0.36; 'entry': 0.36; 'thanks': 0.36; 'should': 0.36; 'too': 0.37; 'manager': 0.38; 'users': 0.40; 'skip:u 10': 0.60; 'most': 0.60; 'march': 0.61; 'course': 0.61; 'kind': 0.63; 'such': 0.63; 'our': 0.64; 'love': 0.65; 'charset:windows-1252': 0.65; 'reply': 0.66; 'price': 0.69; 'obvious': 0.74; 'p.s.:': 0.84; 'ps.': 0.84; 'ugly,': 0.84; '2013': 0.98 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:path:newsgroups:date:in-reply-to:complaints-to :injection-info:nntp-posting-host:references:user-agent :x-google-web-client:x-google-ip:mime-version:message-id:subject :from:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=L3X1E415oxyUhh17IbNgOHMo/m6WELngWQ3Xy8xyvgY=; b=Didte1I9Cysw4lLxMnzZmxpDpZUkJ7BzoLhuWua3x8svbtGVEMLMAGfwjZyVEH9uCE PizdNI6f5UjHvqZN2IyID1oSAGboSNK9aHhKO1+lwvR0Bb8zePoTQw7RekGF9/XGYbNk +pmC7oh2DAI0Zu85Fc9t4fSDZRgPqn3SkRy+V/L/c1HQTZsoMxPqWzUaI6XiSdmOUUIR CR6mzEuTuqZcKY529S+9lw/BP6ksYMc0CFojLymHMIJOTu50/6KF3nCFwmdUOYYG81Xt pxl8G0Yn31gvf3s57RBAYgON0D/YiA4tpSc17APWy8OP2oDLctQIbAZ87OqBlcoTE8G7 xjow== X-Received: by 10.49.41.65 with SMTP id d1mr813825qel.11.1364244496038; Mon, 25 Mar 2013 13:48:16 -0700 (PDT) Newsgroups: comp.lang.python Date: Mon, 25 Mar 2013 13:48:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.68.221.197; posting-account=oknH1QoAAABqzbD_5ziFTvLQsqNk2LbU References: <68da956e-ebe0-4f58-92cd-f7ffff0075b4@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 89.68.221.197 MIME-Version: 1.0 Subject: Re: Help me pick an API design (OO vs functional) From: Michael Herrmann To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQn0TowK1piliTon51ksIJVcNAyA2jKRFlfiR6l8smjJm5gw0QqAZWNTzS71gTUaH5dlyU0D Cc: python-list@python.org, Michael Herrmann 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: , Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364244506 news.xs4all.nl 6882 [2001:888:2000:d::a6]:40678 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41832 Hi Kwpolska, thanks for your reply (as last time I posted here!).=20 On Monday, March 25, 2013 8:42:25 PM UTC+1, Kwpolska wrote: > ... >=20 > > notepad_1 =3D start("Notepad") > > notepad_2 =3D start("Notepad") > > with notepad_1: > > write("Hello World!") > > press(CTRL + 'a', CTRL + 'c') > > with notepad_2: > > press(CTRL + 'v') >=20 > That=92s ugly, and don=92t forget that your users aren=92t Pythonistas mo= st > of the time. I kind of like the context manager solution because the indentation makes i= t very obvious what happens in which window. You are right about our target= group though. Also, the "with" is not as explicit as it probably should be= .=20 > ... > PS. do you plan a version for non-Windows OSes? Also, =8099 is too expen= sive. We'd of course love to support other platforms but don't currently have the= resources to do this. We actually just wrote a blog entry about this and s= ome related questions: http://www.getautoma.com/blog/automa-faq If we have = something wrong, do let us know in the comments over there! It's very hard work building such an automation tool and also we have to li= ve off something. Unfortunately, we can't make the price any lower. P.S.: First-time bottom-posting!