Problem of Readability of Python
Steven Bethard
steven.bethard at gmail.com
Wed Oct 10 17:40:21 EDT 2007
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
More information about the Python-list
mailing list