[Python-Dev] sys.implementation (original) (raw)
Barry Warsaw barry at python.org
Thu May 10 04:26:41 CEST 2012
- Previous message: [Python-Dev] sys.implementation
- Next message: [Python-Dev] sys.implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 09, 2012, at 05:47 PM, Larry Hastings wrote:
I like Alex Martelli's approach, which I recall was exactly this:
class namespace: def init(**kwargs): self.dict = kwargs
That means all the initializers you pass in to the constructor get turned into members.
Well, "init(self, **kws)", but yeah. :)
-Barry
- Previous message: [Python-Dev] sys.implementation
- Next message: [Python-Dev] sys.implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]