Re: What are new-style classes?

2005-08-31 Thread Terry Hancock
On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote: The customary way is to use class new_class(object):. There's no advantage in using __metaclass__ except that you can set it globally for all classes in that module (which can be confusing on its own). My comment mostly

Re: What are new-style classes?

2005-08-31 Thread Reinhold Birkenfeld
Terry Hancock wrote: On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote: The customary way is to use class new_class(object):. There's no advantage in using __metaclass__ except that you can set it globally for all classes in that module (which can be confusing on its own).

Re: What are new-style classes?

2005-08-31 Thread Steve Holden
Reinhold Birkenfeld wrote: Terry Hancock wrote: On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote: The customary way is to use class new_class(object):. There's no advantage in using __metaclass__ except that you can set it globally for all classes in that module (which can be

Re: What are new-style classes?

2005-08-31 Thread Reinhold Birkenfeld
Steve Holden wrote: Reinhold Birkenfeld wrote: Terry Hancock wrote: On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote: The customary way is to use class new_class(object):. There's no advantage in using __metaclass__ except that you can set it globally for all classes in that

Re: What are new-style classes?

2005-08-31 Thread Terry Hancock
On Wednesday 31 August 2005 12:14 pm, Reinhold Birkenfeld wrote: Steve Holden wrote: Reinhold Birkenfeld wrote: My comment mostly referred to new-style classes must be declared as a subclass of a new-style class, which is not true. Nonsense. Given the rest of your post, I assume

Re: What are new-style classes?

2005-08-30 Thread Colin J. Williams
Reinhold Birkenfeld wrote: Terry Hancock wrote: On Sunday 28 August 2005 04:47 am, Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could

Re: What are new-style classes?

2005-08-30 Thread Reinhold Birkenfeld
Colin J. Williams wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! New style classes are becoming the standard

Re: What are new-style classes?

2005-08-29 Thread Jan Danielsson
Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! In short: They have inherited object from

What are new-style classes?

2005-08-28 Thread Vaibhav
I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: What are new-style classes?

2005-08-28 Thread Robert Kern
Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! There's a link on the left sidebar of

Re: What are new-style classes?

2005-08-28 Thread Steve Holden
Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! Older Pythons have a dichotomy between

Re: What are new-style classes?

2005-08-28 Thread Terry Hancock
On Sunday 28 August 2005 04:47 am, Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me? Thanks! New style

Re: What are new-style classes?

2005-08-28 Thread Reinhold Birkenfeld
Terry Hancock wrote: On Sunday 28 August 2005 04:47 am, Vaibhav wrote: I recently heard about 'new-style classes'. I am very sorry if this sounds like a newbie question, but what are they? I checked the Python Manual but did not find anything conclusive. Could someone please enlighten me?