Re: Can we create an_object = object() and add attribute like fora class?

2006-04-29 Thread Fredrik Lundh
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

Re: Can we create an_object = object() and add attribute like fora class?

2006-04-29 Thread Pierre Rouleau
Fredrik Lundh wrote: 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

Re: Can we create an_object = object() and add attribute like fora class?

2006-04-29 Thread Alex Martelli
Pierre Rouleau [EMAIL PROTECTED] wrote: Fredrik Lundh wrote: 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.