Re: Can we create an_object = object() and add attribute like fora class?
- From: "Fredrik Lundh" <fredrik@xxxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 01:49:22 +0200
Pierre Rouleau wrote:
I can understand the design decision not to give object a __dict__, but
I wonder if i'd be a good idea to have a class that derives from object
and has a __dict__ to be in the standard library.
so you can replace one line of code in some of your programs with
an import statement ?
cute.
</F>
.
- Follow-Ups:
- Re: Can we create an_object = object() and add attribute like fora class?
- From: Pierre Rouleau
- Re: Can we create an_object = object() and add attribute like fora class?
- References:
- Can we create an_object = object() and add attribute like for a class?
- From: Pierre Rouleau
- Re: Can we create an_object = object() and add attribute like for a class?
- From: Alex Martelli
- Re: Can we create an_object = object() and add attribute like for a class?
- From: Pierre Rouleau
- Can we create an_object = object() and add attribute like for a class?
- Prev by Date: Re: best way to determine sequence ordering?
- Next by Date: Re: best way to determine sequence ordering?
- Previous by thread: Re: Can we create an_object = object() and add attribute like for a class?
- Next by thread: Re: Can we create an_object = object() and add attribute like fora class?
- Index(es):