Bjoern Schliessmann wrote: > Kevin wrote: >> Am I missing something, or am I the only one who explicitly >> declares structs in python? > > Yes -- you missed my posting :)
Actually, your posting just used dicts normally. Kevin is creating a prototype dict with a certain set of keys, and then copying that dict and filling in the keys each time he creates a new instance. It's basically a poor man's OOP. STeVe -- http://mail.python.org/mailman/listinfo/python-list