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
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
* [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
___
is there a difference between:
class foo:
and
class foo():
or between these function definitions:
def bar():
and
def bar:
?
thanks in advance
E.
-
Станете част от Европейското On-line семейство!
Регистрирайте .EU домейн на изключителна цена от 15,90 лв.!
w