help with calling a static method in a private class

lallous lallous at lgwm.org
Tue Sep 14 16:30:50 CEST 2010


How can I keep the class private and have the following work:

[code]
class __internal_class(object):
    @staticmethod
    def meth1(s):
        print "meth1:", s

    @staticmethod
    def meth2(s):
        print "meth2:",
        __internal_class.meth1(s)

x = __internal_class()

x.meth2('sdf')
[/code]

Thanks



More information about the Python-list mailing list