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
This commit is contained in:
Robin Dunn
2002-12-13 22:04:22 +00:00
parent 13b14ee5ad
commit 2a29de09fc

View File

@@ -245,6 +245,11 @@ class Publisher:
# hiding the class object so it can't be instantiated any more. From # hiding the class object so it can't be instantiated any more. From
# this point forward any calls to Publisher() will invoke the __call__ # this point forward any calls to Publisher() will invoke the __call__
# of this instance which just returns itself. # 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() Publisher = Publisher()