Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41885

Re: Help me pick an API design (OO vs functional)

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 <rosuav@gmail.com>
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 <dd54c915-9c81-4fa2-8b4a-99e8b45a2f5d@googlegroups.com>
References <68da956e-ebe0-4f58-92cd-f7ffff0075b4@googlegroups.com> <mailman.3727.1364292472.2939.python-list@python.org> <dd54c915-9c81-4fa2-8b4a-99e8b45a2f5d@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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3738.1364299470.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, Mar 26, 2013 at 10:52 PM, Michael Herrmann
<michael.herrmann@getautoma.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Help me pick an API design (OO vs functional) Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-03-26 11:07 +0100
  Re: Help me pick an API design (OO vs functional) Michael Herrmann <michael.herrmann@getautoma.com> - 2013-03-26 04:52 -0700
    Re: Help me pick an API design (OO vs functional) Chris Angelico <rosuav@gmail.com> - 2013-03-26 22:57 +1100
      Re: Help me pick an API design (OO vs functional) Michael Herrmann <michael.herrmann@getautoma.com> - 2013-03-26 05:20 -0700
  Re: Help me pick an API design (OO vs functional) Michael Herrmann <michael.herrmann@getautoma.com> - 2013-03-26 04:52 -0700

csiph-web