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


Groups > comp.lang.python > #19183

Re: can some one help me with my code. thanks

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed20.multikabel.net!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.075
X-Spam-Evidence '*H*': 0.85; '*S*': 0.00; '21,': 0.09; 'def': 0.13; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'planet,': 0.16; 'wrote:': 0.16; '>>>': 0.18; 'jan': 0.19; 'subject:help': 0.21; 'maybe': 0.21; 'input': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'sat,': 0.25; 'pm,': 0.26; 'variable': 0.27; 'bit': 0.28; 'message-id:@mail.gmail.com': 0.28; 'odd': 0.28; 'problem': 0.29; '(and': 0.29; 'fri,': 0.30; 'subject:some': 0.30; 'quite': 0.31; "isn't": 0.32; 'to:addr:python-list': 0.33; 'too': 0.34; 'location,': 0.34; 'inventory': 0.36; 'received:google.com': 0.37; 'subject:can': 0.37; 'steven': 0.38; 'received:209.85': 0.38; 'subject:with': 0.38; 'bin': 0.38; 'data,': 0.39; 'johnson': 0.39; 'called': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'your': 0.61; 'world.': 0.63; 'real-world': 0.64; 'subject:. ': 0.64; 'number.': 0.66; 'care': 0.70; 'subject:one': 0.77; 'physical': 0.79; 'subject:thanks': 0.84; 'warehouse,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wQuu1RP4M6UvxwCq+xUrSR2WsdUmJVIoYCEAn7TMHc0=; b=WmDAvDjywFpRHg6Pd6wec0kYR+G8ugSHVa57mkDdds0zz32ov/jnrkXR1aYv+fElkv CCUS7+jKrSD8YPX8GygBXioTSweM34WqoxGxOd+MuJ2OT5YVZdhptrPRgpCwGiuE71KO QeIltkDqWAJxYJQGGHk3JjhxgZo6EJxlYmnhU=
MIME-Version 1.0
In-Reply-To <4f1a2197$0$29987$c3e8da3$5496439d@news.astraweb.com>
References <feda1516-e842-4456-bbfb-2b9cdbe84e0f@u2g2000vbe.googlegroups.com> <38c1fdd1-6bd1-4e4c-b0c7-ea47f75c9e86@b23g2000yqn.googlegroups.com> <4f1a2197$0$29987$c3e8da3$5496439d@news.astraweb.com>
Date Sat, 21 Jan 2012 15:03:18 +1100
Subject Re: can some one help me with my code. thanks
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.12
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.4903.1327118602.27778.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327118602 news.xs4all.nl 6861 [2001:888:2000:d::a6]:39724
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19183

Show key headers only | View raw


On Sat, Jan 21, 2012 at 1:23 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Fri, 20 Jan 2012 16:21:30 -0800, Rick Johnson wrote:
>> Your variable names need a bit more thought
>>
>>> def average(bin):
>>
>> What is a "bin"? Maybe you shoulc have called this a "lst" eh?
>
> "Bin" is a standard English world. You know, like "rubbish bin" or
> "recycling bin".

Or my first thought: stock location. Inventory software often doesn't
care whether your physical stock is organized by shelf, box,
warehouse, planet, or secret-space-on-Firefly-class-ship; just number
each location, and that's the bin number. (And no, that isn't like
"PIN number".) It's then quite logical to want various stats to be
per-bin, which would lead exactly to the OP's problem - including the
odd notation of input data, all too likely in a real-world scenario.

ChrisA

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


Thread

can some one help me with my code. thanks Tamanna Sultana <tamannas.rahman@gmail.com> - 2012-01-20 10:49 -0800
  Re: can some one help me with my code. thanks Terry Reedy <tjreedy@udel.edu> - 2012-01-20 14:46 -0500
  Re: can some one help me with my code. thanks Tim Chase <python.list@tim.thechases.com> - 2012-01-20 14:17 -0600
  Re: can some one help me with my code. thanks Terry Reedy <tjreedy@udel.edu> - 2012-01-20 16:26 -0500
    Re: can some one help me with my code. thanks Jon Clements <joncle@googlemail.com> - 2012-01-20 17:30 -0800
  Re: can some one help me with my code. thanks Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-20 16:21 -0800
    Re: can some one help me with my code. thanks Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-21 02:23 +0000
      Re: can some one help me with my code. thanks Chris Angelico <rosuav@gmail.com> - 2012-01-21 15:03 +1100
        Re: can some one help me with my code. thanks Tamanna Sultana <tamannas.rahman@gmail.com> - 2012-01-23 05:47 -0800
      Re: can some one help me with my code. thanks Tamanna Sultana <tamannas.rahman@gmail.com> - 2012-01-23 05:47 -0800

csiph-web