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


Groups > comp.lang.python > #25155

Re: Adding to a List and displaying quantity in the list

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Adding to a List and displaying quantity in the list
Date Tue, 10 Jul 2012 20:30:31 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 15
Message-ID <jti3d7$q8e$1@reader1.panix.com> (permalink)
References <e16d39fa-161b-409e-9b6b-0238ee262bbd@googlegroups.com>
NNTP-Posting-Host panix2.panix.com
X-Trace reader1.panix.com 1341952231 26894 166.84.1.2 (10 Jul 2012 20:30:31 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Tue, 10 Jul 2012 20:30:31 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:25155

Show key headers only | View raw


In <e16d39fa-161b-409e-9b6b-0238ee262bbd@googlegroups.com> Shamefaced <manengstudent@gmail.com> writes:

>         else:
>             print("%8.3f %s: Waited too long %6.3f" % (now()/60, self.name, wait) + " time units have passed - Customer has left")
>             leavelist.append(self.acquired)

What is self.acquired?  Judging from earlier code it appears to be a
function, but here you're appending it to leavelist.  Did you really mean
to append a function object to leavelist?

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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


Thread

Adding to a List and displaying quantity in the list Shamefaced <manengstudent@gmail.com> - 2012-07-10 12:15 -0700
  Re: Adding to a List and displaying quantity in the list John Gordon <gordon@panix.com> - 2012-07-10 20:30 +0000
    Re: Adding to a List and displaying quantity in the list Shamefaced <manengstudent@gmail.com> - 2012-07-10 13:51 -0700

csiph-web