python html 2 image (png)
joe Li
joehust at gmail.com
Thu Oct 26 03:06:38 EDT 2006
**class Bunch(object):
def __init__(self, **fields):
self.__dict__ = fields
p = Bunch(x=2.3, y=4.5)
print p
print p.__dict__
I dont' understand the usage of the double * here, could anyone explain it
for me? thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061026/2e58c23f/attachment.html>
More information about the Python-list
mailing list