Re: [Tutor] it is about definitions

2007-01-16 Thread Kent Johnson
Andreas Kostyrka wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [070116 15:19]: >> is there a difference between: >> >> class foo: >> >> and >> >> class foo(): > This is a SyntaxError. In Python 2.5 it is allowed and creates an old-style class, the same as if the parentheses are omitted. Kent

Re: [Tutor] it is about definitions

2007-01-16 Thread Danny Yoo
On Tue, 16 Jan 2007, Andreas Kostyrka wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [070116 15:19]: >> >> is there a difference between: >> >> class foo: >> >> and >> >> class foo(): > This is a SyntaxError. Hi Andreas, We should ask Emilia why she's asking this question. This particular

Re: [Tutor] it is about definitions

2007-01-16 Thread Andreas Kostyrka
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [070116 15:19]: > > is there a difference between: > > class foo: > > and > > class foo(): This is a SyntaxError. > > or between these function definitions: > > def bar(): > > and > > def bar: This too. Andreas ___