Greg Ewing schrieb:
Brandon Mintern wrote:
This is a proposal to add a new built-in named struct:
struct(**kwargs) Return a struct object which has the attributes given in kwargs.
I think I'd prefer 'record', to avoid any potential confusion with the struct module, which does something quite different.
Also, my Pascal background makes the term 'record' seem more high-level and therefore Pythonic to me.
In the past, people have also suggested 'namespace' for the same concept.