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


Groups > comp.lang.python > #66652

Re: Import order question

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 <python.list@tim.thechases.com>
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 <python.list@tim.thechases.com>
To python-list@python.org
Subject Re: Import order question
In-Reply-To <CAPTjJmpDubYwLv8j=pc3MEr110Rdw3oiUcUyrdSu=mBeOMXJHg@mail.gmail.com>
References <53020843.5010804@shopzeus.com> <851tz16fzt.fsf@benfinney.id.au> <53025198.1060000@shopzeus.com> <mailman.7110.1392666057.18130.python-list@python.org> <c25d98d8-ed6b-492a-85e7-4a241589f2ef@googlegroups.com> <mailman.7124.1392757348.18130.python-list@python.org> <b9cfd88b-32cc-4259-b269-08e99ff483b6@googlegroups.com> <CAPTjJmpDubYwLv8j=pc3MEr110Rdw3oiUcUyrdSu=mBeOMXJHg@mail.gmail.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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7130.1392761835.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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


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


Thread

Re: Import order question Ben Finney <ben+python@benfinney.id.au> - 2014-02-18 06:40 +1100
  Re: Import order question Rick Johnson <rantingrickjohnson@gmail.com> - 2014-02-18 12:41 -0800
    Re: Import order question Chris Angelico <rosuav@gmail.com> - 2014-02-19 08:02 +1100
      Re: Import order question Rick Johnson <rantingrickjohnson@gmail.com> - 2014-02-18 13:44 -0800
        Re: Import order question Chris Angelico <rosuav@gmail.com> - 2014-02-19 08:49 +1100
          Re: Import order question Grant Edwards <invalid@invalid.invalid> - 2014-02-18 22:44 +0000
        Re: Import order question Tim Chase <python.list@tim.thechases.com> - 2014-02-18 16:17 -0600
          Re: Import order question Grant Edwards <invalid@invalid.invalid> - 2014-02-18 22:45 +0000
          Re: Import order question Rick Johnson <rantingrickjohnson@gmail.com> - 2014-02-18 14:49 -0800
        Re: Import order question Rotwang <sg552@hotmail.co.uk> - 2014-02-18 23:28 +0000
          Re: Import order question Rick Johnson <rantingrickjohnson@gmail.com> - 2014-02-18 15:41 -0800
            Re: Import order question Rotwang <sg552@hotmail.co.uk> - 2014-02-19 01:09 +0000
            Re: Import order question Steven D'Aprano <steve@pearwood.info> - 2014-02-19 07:32 +0000
          Re: Import order question MRAB <python@mrabarnett.plus.com> - 2014-02-19 00:18 +0000
        Re: Import order question Chris Angelico <rosuav@gmail.com> - 2014-02-19 12:57 +1100
        Re: Import order question Steven D'Aprano <steve@pearwood.info> - 2014-02-19 07:32 +0000
          Re: Import order question Chris Angelico <rosuav@gmail.com> - 2014-02-19 18:59 +1100
          Re: Import order question Roy Smith <roy@panix.com> - 2014-02-19 08:28 -0500

csiph-web