def __repr__(self):
        """
        Call L{dns._compactRepr} to generate a string representation.
        """
        return dns._compactRepr(
            self,
            alwaysShow='alwaysShowField'.split(),
            fieldNames='field1 field2 alwaysShowField'.split(),
            flagNames='flagTrue flagFalse'.split(),
            sectionNames='section1 section2'.split()
        )

        Call L{dns._compactRepr} to generate a string representation.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py