[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ideas
Subject: [Python-ideas] Proposal to add new built-in struct (was: Add
From: tjreedy () udel ! edu (Terry Reedy)
Date: 2008-06-02 3:59:47
Message-ID: g1vr7j$tm7$1 () ger ! gmane ! org
[Download RAW message or body]
"Greg Ewing" <greg.ewing at canterbury.ac.nz> wrote in
message news:4835FBA4.8020206 at canterbury.ac.nz...
| 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.
I agree, perhaps even Record .., but in any case in the collections module.
Something like this has been the subject of enough c.l.p posts to make a
case for something in the stdlib, but not in builtins. An implementation
in Python also serves as a model for variations.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic