Re: [Numpy-discussion] basic python questions

2007-04-04 Thread Bill Baxter
On 4/5/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: Ok, I got another hopefully easy question: Why this: class Point(object): ... Instead of the style that's used in the Python tutorial in the 'classes' chapter: class Point: ...

Re: [Numpy-discussion] basic python questions

2007-04-04 Thread Robert Kern
Bill Baxter wrote: On 4/5/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: Ok, I got another hopefully easy question: Why this: class Point(object): ... Instead of the style that's used in the Python tutorial in the 'classes' chapter: class Point:

Re: [Numpy-discussion] basic python questions

2007-04-04 Thread Bill Baxter
On 4/5/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: On 4/5/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: Ok, I got another hopefully easy question: Why this: class Point(object): ... Instead of the style that's used in the Python

Re: [Numpy-discussion] basic python questions

2007-04-04 Thread Alan G Isaac
On Wed, 04 Apr 2007, Eric Firing apparently wrote: Key point: properties work with new-style classes but fail silently and mysteriously with classic classes. Or making the same point a little more generally, descriptors only work for new-style classes:

Re: [Numpy-discussion] basic python questions

2007-04-04 Thread Sebastian Haase
On 4/4/07, Bill Baxter [EMAIL PROTECTED] wrote: On 4/5/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: Ok, I got another hopefully easy question: Why this: class Point(object): ... Instead of the style that's used in the Python tutorial in the