Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:design': 0.09; 'subject:Help': 0.11; '"from': 0.16; '"global"': 0.16; 'does,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:API': 0.16; 'top-level': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'module,': 0.24; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'anyone': 0.31; 'subject: (': 0.35; 'received:209.85': 0.35; 'problem.': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'simply': 0.61; 'mar': 0.68; '26,': 0.68; 'presumably': 0.84; '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=aKpdZYaXr/Nexcxkzn/D7On146zkXrjPK9b2oGvZ1oo=; b=uj7eXvwfYiyCElw2WqDWvqjXNqauz+ygzOlYgjdAT1sQWGnC4rl8JbE7GNzISwombD BQNWEOHm+WcgldxCsmnlzPwjEjmhY2PL9zTWthYXttSxVr9PqmFbMn18SBCWWIe99Yqy fU2OW70U1iF/FfqfQU8TcNuPtnelqNG1CJBMpdmXvrHAv9VtKLCgPSNBlYsHNcnrRddb 4Yc6durI5RvC0HpX1sf1/ZHIJ1Euy49Z+niKjp/TURbi1JA4/tv/F/BibiXL6cqz4fjh Eom+MnhKlRloVEzqRRPxUgTr56FirkKP3ZW3+QbG1zdrjke0crtDEeCQoc8+KufcSfLz 9j0g== MIME-Version: 1.0 X-Received: by 10.52.88.197 with SMTP id bi5mr16192620vdb.58.1364299042015; Tue, 26 Mar 2013 04:57:22 -0700 (PDT) In-Reply-To: References: <68da956e-ebe0-4f58-92cd-f7ffff0075b4@googlegroups.com> Date: Tue, 26 Mar 2013 22:57:21 +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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364299470 news.xs4all.nl 6937 [2001:888:2000:d::a6]:40126 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41885 On Tue, Mar 26, 2013 at 10:52 PM, Michael Herrmann wrote: > Doesn't the IPython do auto-completion for "global" functions? Even if it does, it'll be polluted with every other global. Methods don't have that problem. On the flip side, since presumably this is (will be) a module, anyone who wants autocomplete of its top-level functions can simply "import module" instead of "from module import *", which will do the same namespacing. ChrisA