Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.051 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; '16,': 0.03; 'lines,': 0.07; 'python': 0.11; 'check.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interpreter,': 0.16; 'least.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'split': 0.19; 'installation': 0.23; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'lines': 0.31; 'decimal': 0.31; 'problem': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'opposed': 0.36; 'wrong': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'flat': 0.60; 'today': 0.64; 'here': 0.66; 'containing': 0.69; 'pike': 0.84; 'subject:Global': 0.91; 'rick': 0.93; '2013': 0.98 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; bh=LbXJqaz0fvTdi3EnPAlvQmc5abyxQ87TazbNfWH6KOk=; b=OHsDGEizYqz/4xYYrJwut84SgOr7RkmHIuB2ayHq+i6qJ9FCU2LOYiGMexJ+YeE91G 7xZ78ojt9Z81crwesx3n/hBXvP3kkWF4Li1vu0LNcQSYWQSWXj2Fvbe7FD1LAWkR7fII YNQCZO6hk89RxGtbJJnBjg4sa0ZNhUqB7j/ursoJJwZ27Fk6nDiULwDyrK/DVHRX/Ocw GtQ0zhtHrQ3a/cIVLHHPPbrWB0dZnByR9ptCDLINfXk5zuAvvBiVMQMzdEazAy16Lrog 2sWlEYbYhTJAKwaSRTmSXFkYiEKH2WDTPwGdb/335Xpt435drWaPtYIgb0atTY6RMw0M M7zg== MIME-Version: 1.0 X-Received: by 10.68.14.40 with SMTP id m8mr139002pbc.30.1384575598657; Fri, 15 Nov 2013 20:19:58 -0800 (PST) In-Reply-To: <21450235-0e30-41c3-8d97-d253d6d13371@googlegroups.com> References: <7b97786a-2aaf-454c-8c3a-1c19d20d4345@googlegroups.com> <2373cb88-c3e8-46ee-bf0c-82bb69c97226@googlegroups.com> <5284393c$0$29975$c3e8da3$5496439d@news.astraweb.com> <528464af$0$29971$c3e8da3$5496439d@news.astraweb.com> <5285d8f4$0$29975$c3e8da3$5496439d@news.astraweb.com> <21450235-0e30-41c3-8d97-d253d6d13371@googlegroups.com> Date: Sat, 16 Nov 2013 15:19:58 +1100 Subject: Re: PyMyth: Global variables are evil... WRONG! 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384575602 news.xs4all.nl 15931 [2001:888:2000:d::a6]:43306 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59590 On Sat, Nov 16, 2013 at 3:01 PM, Rick Johnson wrote: > Let's see... Tkinter's design today is a single module > containing a staggering: > > 155,626 chars > > 3,733 lines Also: I see nothing wrong with a single module having 3-4K lines in it. Hilfe, the Pike REPL/interactive interpreter, is about that long and it's not a problem to maintain. The Python decimal module (as opposed to CDecimal) is twice that, in the installation I have here to check. My primary C++ module from work was about 5K lines, I think - of that order, at least. Python modules don't need to be split up into tiny fragments. Flat is better than nested. ChrisA