How to implement and call C++ class static function
Vincent Marchetti
vincem at en.com
Wed Nov 21 06:00:34 EST 2001
In article <mailman.1006280269.2057.python-list at python.org>, "Roman
Yakovenko" <romany at actimize.com> wrote:
> For example
>
> class CBlaBla
> {
> static int Foo(){ return 0; }
> };
>
>
> ....
> CBlaBla::Foo();
>
> Thanks for the help. Roman.
I don't know if there's a more Pythonish way, but I do this:
def __FooImp__():
return 0
class CBlaBla:
...
Foo = __FooImp__
...
More information about the Python-list
mailing list