class MyClass(object):

    def __init__(self, logger=None):
        self.logger = logger

def test(self, logger=_sentinel):
    pass
How to use named parameters in Python methods that are defaulting to a class level value?