Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'lines,': 0.07; 'subject:question': 0.10; "wouldn't": 0.14; '"ed"': 0.16; '-tkc': 0.16; 'ed.': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'jumped': 0.16; ':-)': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'handles': 0.22; 'sort': 0.25; 'least': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'xml': 0.29; 'code': 0.31; 'lines': 0.31; 'that.': 0.31; 'file': 0.32; 'class': 0.32; 'probably': 0.32; 'another': 0.32; 'text': 0.33; 'trouble': 0.34; 'problem': 0.35; "can't": 0.35; 'editor': 0.35; 'c++': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'files': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'skip:u 10': 0.60; 'most': 0.60; 'simple': 0.61; "you're": 0.61; 'telling': 0.64; 'containing': 0.69; 'received:50.22': 0.84 Date: Tue, 18 Feb 2014 16:17:48 -0600 From: Tim Chase To: python-list@python.org Subject: Re: Import order question In-Reply-To: References: <53020843.5010804@shopzeus.com> <851tz16fzt.fsf@benfinney.id.au> <53025198.1060000@shopzeus.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Importance: low X-Priority: 5 (Lowest) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392761835 news.xs4all.nl 2914 [2001:888:2000:d::a6]:33689 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66652 On 2014-02-19 08:49, Chris Angelico wrote: > > Are you telling me you're willing to search through a single > > file containing 3,734 lines of code (yes, Tkinter) looking > > for a method named "destroy" of a class named "OptionMenu" > > At my last job, I had a single C++ file of roughly 5K lines, and > it wasn't at all unmanageable. Probably wouldn't have been a > problem to have another order of magnitude on that. What sort of > wimpy text editor are you using that you can't find what you're > looking for in a single large file? Even the venerable "ed" handles files of those sizes without batting an eye. I just opened a 2MB XML file (50k lines) in ed and jumped all around in it with no trouble at all. It's as simple as 1;/class OptionMenu/;/def destroy/ in most cases. If your editor can't help you do simple things like that, I recommend you find an editor that is at least as good as ed. :-) -tkc