What does % mean/does in this context?
Marcelo de Moraes Serpa
celoserpa at gmail.com
Fri Feb 1 13:56:26 EST 2008
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.append(v)
What does the % operator is doing there?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080201/e36a718b/attachment.html>
More information about the Python-list
mailing list