From 2a29de09fc265da34a6e81203d4f69af427bda3b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 13 Dec 2002 22:04:22 +0000 Subject: [PATCH] Added comment about derivation problem. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/pubsub.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wxPython/wxPython/lib/pubsub.py b/wxPython/wxPython/lib/pubsub.py index 7e7dfdecbf..254706258b 100644 --- a/wxPython/wxPython/lib/pubsub.py +++ b/wxPython/wxPython/lib/pubsub.py @@ -245,6 +245,11 @@ class Publisher: # hiding the class object so it can't be instantiated any more. From # this point forward any calls to Publisher() will invoke the __call__ # of this instance which just returns itself. +# +# The only flaw with this approach is that you can't derive a new +# class from Publisher without jumping through hoops. If this ever +# becomes an issue then a new Sing;eton implementaion will need to be +# employed. Publisher = Publisher()