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


Groups > comp.lang.python > #72453

Re: Strange Behavior

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ikorot01@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; ';-)': 0.03; 'suppose': 0.07; 'agree,': 0.09; 'input,': 0.09; 'processing,': 0.09; 'cc:addr:python-list': 0.11; "wouldn't": 0.14; '5:30': 0.16; 'bugs.': 0.16; 'guilty': 0.16; 'naming': 0.16; 'applies': 0.16; 'wrote:': 0.18; 'bit': 0.19; '>>>': 0.22; 'input': 0.22; 'cc:addr:python.org': 0.22; 'fine': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'least': 0.26; 'certain': 0.27; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'on,': 0.29; '(this': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'crash': 0.31; "d'aprano": 0.31; 'fixing': 0.31; 'steven': 0.31; 'file': 0.32; 'url:python': 0.33; 'minimal': 0.33; "i'd": 0.34; 'problem': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; '+0200,': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'wrong': 0.37; 'too': 0.37; 'two': 0.37; 'thank': 0.38; 'tired': 0.38; 'files': 0.38; 'pm,': 0.38; 'does': 0.39; 'called': 0.40; 'url:mail': 0.40; 'how': 0.40; "you're": 0.61; 'you.': 0.62; 'name': 0.63; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'photo': 0.78; 'fifty': 0.84; 'heh.': 0.84; 'photoshop,': 0.84; 'unique.': 0.84; 'imagine': 0.93
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 :cc:content-type; bh=lEaiAp2Fziuvzkong9vdbCxKg+5+f9Y8f0zfzAWYc+w=; b=bCNiZxV9pBCHiEX1sc40cvSz2Ajab2uTkMZKsY35BWyWUBz4hdvqdD5zdVZT7KnMI9 iHIdAfQXQUXRu6bRThopgLRlSRLjFsAiZmKNs3gwUcthT+TQKy2ttL+xvpFfmyhBo75N 4sjVzorB8ECOUeNxD5XQyyoTGtfM4Z+66a+xwEGCfVZMw226vsCHYs1+YfNJKn+cSNXW lA++Pl9VKS/pOGs7ObobD4e/Cril2v+AU3lfd3qChYcg+alvAAgXGLedB7Z7h9ZuZimJ KEpCDPeR9/LtdwrG3mqlADCxk6S/l+Cs6gYusJ2A8oE2qV64ecgTX9WWgFk0/MYRN/UP 1teA==
MIME-Version 1.0
X-Received by 10.220.18.134 with SMTP id w6mr33502689vca.5.1401756592156; Mon, 02 Jun 2014 17:49:52 -0700 (PDT)
In-Reply-To <CAPTjJmp6Kiyk66-=s7bfig-mfRCd-8ij+ZFp7cbuOA+3cFEw-Q@mail.gmail.com>
References <CANYcpZy3qZHRORFPTnvPcSV+uU2MHHPPcKuDXXuRvjNJBnKJKg@mail.gmail.com> <mailman.10571.1401732331.18130.python-list@python.org> <538d1532$0$29978$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmp6Kiyk66-=s7bfig-mfRCd-8ij+ZFp7cbuOA+3cFEw-Q@mail.gmail.com>
Date Mon, 2 Jun 2014 17:49:52 -0700
Subject Re: Strange Behavior
From Igor Korot <ikorot01@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
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.10581.1401756954.18130.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401756954 news.xs4all.nl 2841 [2001:888:2000:d::a6]:35502
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72453

Show key headers only | View raw


On Mon, Jun 2, 2014 at 5:30 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Tue, Jun 3, 2014 at 10:22 AM, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> wrote:
>> On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote:
>>
>>> I invoked the wrong bug.py :/ , works fine now (this happens to me when
>>> im a bit tired sometimes...).
>>
>> Clarity in naming is an excellent thing. If you have two files called
>> "bug.py", that's two too many.
>>
>> Imagine having fifty files called "program.py". Which one is which? How
>> do you know? Programs should be named by what they do (think of Word,
>> which does word processing, or Photoshop, which does photo editing), or
>> when that isn't practical, at least give them a unique and memorable name
>> (Outlook, Excel). The same applies to files demonstrating bugs.
>
> Heh. I agree, but I've been guilty of this exact problem myself.
> Suppose you have a program that segfaults when given certain input, so
> you take the input that crashes it, and progressively simplify it
> until you have a minimal test-case. What do you call the file that
> you're editing? What if you have a few different variants? I've had a
> few called "boom" and "boom2" and "booooooom" and so on, because
> there's really nothing else to call it - if I knew what the cause of
> the crash was, I wouldn't be naming the testcase files, I'd be fixing
> the problem.


test1, test2, test3, .... testn.
At least it will be unique. ;-)

Thank you.

>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list

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


Thread

Re: Strange Behavior robertw89@googlemail.com - 2014-06-02 20:05 +0200
  Re: Strange Behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-03 00:22 +0000
    Re: Strange Behavior Chris Angelico <rosuav@gmail.com> - 2014-06-03 10:30 +1000
    Re: Strange Behavior Igor Korot <ikorot01@gmail.com> - 2014-06-02 17:49 -0700
    Choosing good names for things is difficult (was: Strange Behavior) Ben Finney <ben@benfinney.id.au> - 2014-06-03 10:57 +1000
      Re: Choosing good names for things is difficult (was: Strange Behavior) Rustom Mody <rustompmody@gmail.com> - 2014-06-02 19:06 -0700
        Re: Choosing good names for things is difficult (was: Strange Behavior) Chris Angelico <rosuav@gmail.com> - 2014-06-03 13:33 +1000
    Re: Strange Behavior Peter Otten <__peter__@web.de> - 2014-06-03 10:01 +0200
      Re: Strange Behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-03 11:44 +0000

csiph-web