How could I implement a virtual method and override it in python?
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Wed Sep 14 18:47:07 EDT 2016
On Thursday, September 15, 2016 at 10:18:09 AM UTC+12, wesley.... at iugome.com wrote:
> Helper.py:
>
> def Foo( *args ):
> print ("This is a callback")
>
> def Run:
> Foo()
>
>
> MyModule.py:
>
> import Helper
>
> def Foo( *args ):
> print ("I want to be the new callback")
Overrides and subclassing applies to classes, not modules.
More information about the Python-list
mailing list