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

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Adding to a List and displaying quantity in the list
Date 2012-07-10 20:30 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <jti3d7$q8e$1@reader1.panix.com> (permalink)
References <e16d39fa-161b-409e-9b6b-0238ee262bbd@googlegroups.com>

Show all headers | 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