Re: What does % mean/does in this context?

2008-02-05 Thread Mike Hjorleifsson
At first glance it looks like a replace for _button_cart with the dictionary items listed in the curly braces and stuffing them into a list item (cartitems) On Feb 2, 8:47 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > for item in cart.values(): > > v = _button_cart % {"idx": idx,

Re: What does % mean/does in this context?

2008-02-02 Thread Tim Chase
> for item in cart.values(): > v = _button_cart % {"idx": idx, > "itemname": item.name, > "amount": item.cost, > "quantity": item.quantity,} > cartitems.append(v) > > > What d

What does % mean/does in this context?

2008-02-02 Thread Marcelo de Moraes Serpa
Take the following piece of code: for item in cart.values(): v = _button_cart % {"idx": idx, "itemname": item.name, "amount": item.cost, "quantity": item.quantity,} cartitems.a