Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'caller': 0.09; 'subject:design': 0.09; 'api': 0.11; 'subject:Help': 0.11; "'s')": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:API': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'michael': 0.29; 'am,': 0.29; 'possibility': 0.29; 'message-id:@mail.gmail.com': 0.30; 'open': 0.33; 'subject: (': 0.35; 'received:209.85': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'mar': 0.68; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=7H4GEF2JdSaCFqD5LK+O99AOycC2uWnv9rBByORTNn0=; b=InZgXd88ruSxxjAPRhYuGidmoGEkqpc1fvBOlUbwjT2k2lo0x8fFIQcQgkZQzcF594 Ck2WiawZ+8rtRrPgdcWrZ4v21ZDJrqcA6EEO07d9mgCNCGHAgPWCsUznrmJaisdtNKsk WAHV2qRDT+QkVk03O0Uc4KWAYjRBNELMuaiWZDmvBQUGz1uayMjMCMas6zTS4R6Q1dbC IpBkk8/K7w7c9Bec1IKGr/01O+X9msiQhc8HWU6udvlvj5gHp/5RWDnh/Fe9be9L17Rq trdJfLwB3SIawDGEEty/E3b4xqelvY7aoxG7S5zWlHyqJ04LX8t1KazHHKP/DTE39ovW 0iCA== MIME-Version: 1.0 X-Received: by 10.220.103.7 with SMTP id i7mr19575898vco.7.1364311017471; Tue, 26 Mar 2013 08:16:57 -0700 (PDT) In-Reply-To: References: <68da956e-ebe0-4f58-92cd-f7ffff0075b4@googlegroups.com> <01a290d9-6a59-45ad-bc30-e09d13aa7799@googlegroups.com> Date: Wed, 27 Mar 2013 02:16:57 +1100 Subject: Re: Help me pick an API design (OO vs functional) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364311020 news.xs4all.nl 6957 [2001:888:2000:d::a6]:42806 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41911 On Wed, Mar 27, 2013 at 1:59 AM, Michael Herrmann wrote: > save_dialogue = press(CTRL + 's') Does every single API need to then consider the possibility of focus changing? How does the press() function know that this will (or might - if the file's already been named, Ctrl-S won't open a dlg) change focus? How does the caller know? ChrisA