(topicMap: Mapping[str, str], topicMgr: TopicManager)
Create notification topics. These are used when some of the notification flags have been set to True (see
    pub.setNotificationFlags(). The topicMap is a dict where key is the notification type, and value is the topic
    name to create. Notification type is a string in ('send', 'subscribe', 'unsubscribe', 'newTopic', 'delTopic',
    'deadListener').
Create notification topics. These are used when some of the notification flags have been set to True (see
    pub.setNotificationFlags(). The topicMap is a dict where key is the notification type, and value is the topic
    name to create. Notification type is a string in ('send', 'subscribe', 'unsubscribe', 'newTopic', 'delTopic',
    'deadListener').
Create notification topics . These are used when some of the notification flags have been set to True ( see pub . setNotificationFlags () . The topicMap is a dict where key is the notification type and value is the topic name to create . Notification type is a string in ( send subscribe unsubscribe newTopic delTopic deadListener ) .
def _createTopics(topicMap: Mapping[str, str], topicMgr: TopicManager):
    """
    Create notification topics. These are used when some of the notification flags have been set to True (see
    pub.setNotificationFlags(). The topicMap is a dict where key is the notification type, and value is the topic
    name to create. Notification type is a string in ('send', 'subscribe', 'unsubscribe', 'newTopic', 'delTopic',
    'deadListener').
    """

    def newTopic(_name, _desc, _required=None, **argsDocs):
        topic = topicMgr.getOrCreateTopic(_name)
        topic.setDescription(_desc)
        topic.setMsgArgSpec(argsDocs, _required)

    newTopic(
        _name=topicMap['subscribe'],
        _desc='whenever a listener is subscribed to a topic',
        topic='topic that listener has subscribed to',
        listener='instance of pub.Listener containing listener',
        newSub='false if listener was already subscribed, true otherwise')

    newTopic(
        _name=topicMap['unsubscribe'],
        _desc='whenever a listener is unsubscribed from a topic',
        topic='instance of Topic that listener has been unsubscribed from',
        listener='instance of pub.Listener unsubscribed; None if listener not found',
        listenerRaw='listener unsubscribed')

    newTopic(
        _name=topicMap['send'],
        _desc='sent at beginning and end of sendMessage()',
        topic='instance of topic for message being sent',
        stage='stage of send operation: "pre" or "post" or "in"',
        listener='which listener being sent to')

    newTopic(
        _name=topicMap['newTopic'],
        _desc='whenever a new topic is defined',
        topic='instance of Topic created',
        description='description of topic (use)',
        args='the argument names/descriptions for arguments that listeners must accept',
        required='which args are required (all others are optional)')

    newTopic(
        _name=topicMap['delTopic'],
        _desc='whenever a topic is deleted',
        name='full name of the Topic instance that was destroyed')

    newTopic(
        _name=topicMap['deadListener'],
        _desc='whenever a listener dies without having unsubscribed',
        topic='instance of Topic that listener was subscribed to',
        listener='instance of pub.Listener containing dead listener')
def _createTopics ( topicMap : Mapping [ str , str ] , topicMgr : TopicManager ) : def newTopic ( _name , _desc , _required = None , * * argsDocs ) : topic = topicMgr . getOrCreateTopic ( _name ) topic . setDescription ( _desc ) topic . setMsgArgSpec ( argsDocs , _required ) newTopic ( _name = topicMap [ 'subscribe' ] , _desc = 'whenever a listener is subscribed to a topic' , topic = 'topic that listener has subscribed to' , listener = 'instance of pub.Listener containing listener' , newSub = 'false if listener was already subscribed, true otherwise' ) newTopic ( _name = topicMap [ 'unsubscribe' ] , _desc = 'whenever a listener is unsubscribed from a topic' , topic = 'instance of Topic that listener has been unsubscribed from' , listener = 'instance of pub.Listener unsubscribed; None if listener not found' , listenerRaw = 'listener unsubscribed' ) newTopic ( _name = topicMap [ 'send' ] , _desc = 'sent at beginning and end of sendMessage()' , topic = 'instance of topic for message being sent' , stage = 'stage of send operation: "pre" or "post" or "in"' , listener = 'which listener being sent to' ) newTopic ( _name = topicMap [ 'newTopic' ] , _desc = 'whenever a new topic is defined' , topic = 'instance of Topic created' , description = 'description of topic (use)' , args = 'the argument names/descriptions for arguments that listeners must accept' , required = 'which args are required (all others are optional)' ) newTopic ( _name = topicMap [ 'delTopic' ] , _desc = 'whenever a topic is deleted' , name = 'full name of the Topic instance that was destroyed' ) newTopic ( _name = topicMap [ 'deadListener' ] , _desc = 'whenever a listener dies without having unsubscribed' , topic = 'instance of Topic that listener was subscribed to' , listener = 'instance of pub.Listener containing dead listener' )