![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: __call__
From: tiissa <tiissa@nonfree.fr>
Date: Sat May 28 2005 - 22:13:02 CEST
TK wrote:
It _does_ work. It just don't do what you expect. That's different till
Let's see:
> >>> class Test(object):
You first define a class whose members can be called.
> >>> Test()
Then you build an instance of these class. Fine.
If you want to call this instance you have to tell python:
>>> class Test:
|